Module:Portal bar/sandbox: Difference between revisions

Content deleted Content added
style the logo
Tag: Reverted
better implementation of nbsp
 
(7 intermediate revisions by 4 users not shown)
Line 1:
-- This module implements {{portal bar}}.
 
require('Module:No globalsstrict')
 
-- determine whether we're being called from a sandbox
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('&nbsp;<span class="nowrap">[[File:%s|%s]] </span>[[Portal:%s|%s]]', portal, portal))
:tag('span')
getImageName(portal,true), size, portal, portal))
:addClass(sandboxVersion('portal-logo-item'))
:wikitext(string.format('[[File:%s|%s]]', getImageName(portal,true), size))
:done()
:wikitext( string.format('&nbsp;[[Portal:%s|%s]]', portal, portal))
end