More actions
Content deleted Content added
add hack to prevent indicator tags producing whitespace at the top of articles |
Fixing content model |
||
Line 825: | Line 825: | ||
obj._imageAlt = blurbObj:makeBannerText('alt') |
obj._imageAlt = blurbObj:makeBannerText('alt') |
||
obj._imageLink = blurbObj:makeBannerText('link') |
obj._imageLink = blurbObj:makeBannerText('link') |
||
obj. |
obj._right = cfg.padlockPositions[protectionObj.action] |
||
or cfg. |
or cfg.padlockPositions.default |
||
or ' |
or '55px' |
||
return setmetatable(obj, Padlock) |
return setmetatable(obj, Padlock) |
||
end |
end |
||
function Padlock:__tostring() |
function Padlock:__tostring() |
||
local |
local root = mw.html.create('div') |
||
root |
|||
-- The nowiki tag helps prevent whitespace at the top of articles. |
|||
:addClass('metadata topicon nopopups') |
|||
local nowiki = frame:extensionTag{name = 'nowiki'} |
|||
:attr('id', 'protected-icon') |
|||
local indicator = frame:extensionTag{ |
|||
:css{display = 'none', right = self._right} |
|||
name = 'indicator', |
|||
⚫ | |||
args = {name = self._indicatorName}, |
|||
return tostring(root) |
|||
⚫ | |||
} |
|||
return nowiki .. indicator |
|||
end |
end |
||