Module:Portal bar/sandbox: Difference between revisions

Content deleted Content added
use require('strict') instead of require('Module:No globals')
better implementation of nbsp
 
(2 intermediate revisions by 2 users not shown)
Line 61:
header:wikitext(':')
end
local container = nav:tag('divul')
container:addClass(sandboxVersion('portal-bar-content'))
if related then
Line 69:
for _, portal in ipairs( portals ) do
container
:tag( 'spanli' )
:addClass(sandboxVersion('portal-bar-item'))
:wikitext( string.format('<span class="nowrap">[[File:%s|%s]]&nbsp; </span>[[Portal:%s|%s]]',
getImageName(portal,true), size, portal, portal))
end