Module:Portal bar/sandbox: Difference between revisions

Content deleted Content added
error -> warning
condense
Line 46:
local nav = mw.html.create( 'ul' )
:addClass( 'navbox portal-bar noprint metadata' )
:attr( 'role', 'navigation' )
:attr( 'aria-label' , 'Portals' )
Line 127:
end
nav:tag('li'):wikitext('[[Wikipedia:Contents/Portals|Portals]]:')
for _, portal in ipairs( portals ) do
nav
Line 136 ⟶ 137:
:done()
:wikitext( string.format(
'<b>[[Portal:%s|%s portal]]</b>', portal, portal
) )
end