Content deleted Content added
Jackmcbarn (talk | contribs) fix whitespace |
No edit summary |
||
Line 5:
local p = {}
local getImageName = require( 'Module:Portal' ).image
local yesno = require( 'Module:Yesno' )
Line 13 ⟶ 12:
if #portals < 1 then return '' end -- Don't display a blank navbox if no portals were specified.
local list = mw.html.create( 'ul' )
if yesno( args.border ) == false then
list
:css( 'padding', '0.1em 1.7em' )
else▼
list
:css( 'margin', '1em 0 0' )
:css( 'border', '1px solid #aaa' )
:css( 'padding', '0.4em 2em' )
end▼
for _, portal in ipairs( portals ) do
list
Line 22 ⟶ 36:
:wikitext( string.format( '[[File:%s|24x21px]]', getImageName{ portal } ) )
:done()
▲ :css( 'font-weight', 'bold' )
▲ :wikitext( string.format( '[[Portal:%s|%s portal]]', portal, portal ) )
▲ end
return tostring(▼
▲ :addClass( 'noprint metadata' )
▲ :css( 'width', '100%' )
▲ :css( 'text-align', 'center' )
▲ :css( 'padding', '1px' )
▲ :css( 'font-size', '88%' )
▲ else
end
end
|