Content deleted Content added
maybe better without hlist? |
use noprint class for border=no, and move the yesno check inside the if statement |
||
Line 11:
function p._main( portals, args )
if #portals < 1 then return '' end -- Don't display a blank navbox if no portals were specified.
local noBorder = yesno( args.border ) == false -- Returns true if args.border is "no", "n", "false", 0 or false.▼
local list = htmlBuilder.create( 'ul' )
for i, portal in ipairs( portals ) do
Line 26 ⟶ 25:
.wikitext( mw.ustring.format( '[[Portal:%s|%s portal]]', portal, portal ) )
end
▲
local root = htmlBuilder.create( 'div' )
root
.addClass( 'noprint' )
.css( 'width', '100%' )
.css( 'text-align', 'center' )
|