Changes
Jump to navigation
Jump to search
local root = return mw.html.creategetCurrentFrame('div') root :addClass('metadata topicon nopopups')extensionTag{ :attr(name = 'idindicator', 'protected-icon') :cssargs = {display = 'none', right name = self._right_indicatorName}, :wikitext(content = self:renderImage()) return tostring(root)}
switch to using page status indicators for the padlock icons (will switch from the config sandbox in a second)
-- Set constants.
local CONFIG_MODULE = 'Module:Protection banner/config/sandbox'-- *** SWITCH THIS BACK BEFORE UPDATING THE MAIN MODULE ***
--------------------------------------------------------------------------------
obj._imageAlt = blurbObj:makeBannerText('alt')
obj._imageLink = blurbObj:makeBannerText('link')
obj._right _indicatorName = cfg.padlockPositionspadlockIndicatorNames[protectionObj.action] or cfg.padlockPositionspadlockIndicatorNames.default or '55pxpp-default'
return setmetatable(obj, Padlock)
end
function Padlock:__tostring()
end