Content deleted Content added
not needed Tags: Manual revert Reverted |
better implementation of nbsp |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1:
-- This module implements {{portal bar}}.
require('
-- determine whether we're being called from a sandbox
Line 61:
header:wikitext(':')
end
local container = nav:tag('
container:addClass(sandboxVersion('portal-bar-content'))
end
local size = related and '27x25px' or '21x19px'
for _, portal in ipairs( portals ) do
container
:tag( '
:addClass(sandboxVersion('portal-bar-item'))
▲ :addClass(sandboxVersion('portal-bar-logo'))
▲ '[[File:%s|%s]]', getImageName(portal,true), size
▲ :wikitext( string.format('[[Portal:%s|%s]]', portal, portal))
end
|