Content added Content deleted
(Fixing content model) |
m (Changed protection level of Module:Protection banner: High-risk Lua module: RFPP request ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
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._indicatorName = cfg.padlockIndicatorNames[protectionObj.action] |
||
or cfg. |
or cfg.padlockIndicatorNames.default |
||
or ' |
or 'pp-default' |
||
return setmetatable(obj, Padlock) |
return setmetatable(obj, Padlock) |
||
end |
end |
||
function Padlock:__tostring() |
function Padlock:__tostring() |
||
local |
local frame = mw.getCurrentFrame() |
||
-- The nowiki tag helps prevent whitespace at the top of articles. |
|||
root |
|||
local nowiki = frame:extensionTag{name = 'nowiki'} |
|||
:addClass('metadata topicon nopopups') |
|||
local indicator = frame:extensionTag{ |
|||
:attr('id', 'protected-icon') |
|||
name = 'indicator', |
|||
:css{display = 'none', right = self._right} |
|||
args = {name = self._indicatorName}, |
|||
content = self:renderImage() |
|||
return tostring(root) |
|||
} |
|||
return nowiki .. indicator |
|||
end |
end |
||