Content deleted Content added
this is failing now? |
tstyles |
||
Line 46:
local nav = mw.html.create( 'div' )
:addClass( 'portal-bar noprint metadata' )
:attr( 'role', 'navigation' )
:attr( 'aria-label' , 'Portals' )
if yesno( args.border ) == false then
nav
:addClass('portal-bar-unbordered')
else
nav
:addClass( '
end
Line 131 ⟶ 127:
local list = mw.html.create( 'ul' )
for _, portal in ipairs( portals ) do
list
:tag( 'li' )
:tag( 'span' )
:wikitext( string.format(
'[[File:%s|24x21px|alt=]]', getImageName{ portal }
Line 151 ⟶ 143:
:node( list )
return
name = 'templatestyles', args = { src = 'Module:Portal bar/styles.css' }
} .. tostring( nav )
end
|