Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Module:BSW/MainPage

From the only original and legitimate Battlestar Wiki: the free-as-in-beer, non-corporate, open-content encyclopedia, analytical reference, and episode guide on all things Battlestar Galactica. Accept neither subpar substitutes nor subpar clones.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 267: Line 267:
         local filename = mw.text.trim( content )
         local filename = mw.text.trim( content )
         if filename ~= '' then
         if filename ~= '' then
            -- Use thumb syntax suppressed via frameless|none to avoid
            -- MW adding figure wrapper with extra margins
             rendered_content = frame:preprocess(
             rendered_content = frame:preprocess(
                 '[[File:' .. filename .. '|center|frameless|upright=1.5]]'
                 '[[File:' .. filename .. '|center|frameless|400px]]'
             )
             )
         end
         end
Line 283: Line 281:
             local fn = mw.text.trim( t:getContent() or '' )
             local fn = mw.text.trim( t:getContent() or '' )
             if fn ~= '' and not fn:match( '%[%[' ) then
             if fn ~= '' and not fn:match( '%[%[' ) then
                -- Use [[:File:...]] (colon prefix) to link TO the file page
                 return frame:preprocess( '[[File:' .. fn .. '|' .. label .. ']]' )
                -- rather than [[File:...]] which would transclude/embed the image
                 return frame:preprocess( '[[:File:' .. fn .. '|' .. label .. ']]' )
             end
             end
         end
         end
        -- Fallback: link to the Potd: subpage itself
         return frame:preprocess( '[[' .. potd_page .. '|' .. label .. ']]' )
         return frame:preprocess( '[[' .. potd_page .. '|' .. label .. ']]' )
     end
     end

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | °   · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).

Page included on this page: