"मोड्युल:Protection banner" का संशोधनहरू बिचको अन्तर

switch to using page status indicators for the padlock icons (will switch from the config sandbox in a second)
(accountcreator level is gone)
(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()
return mw.getCurrentFrame():extensionTag{
local root = mw.html.create('div')
name = 'indicator',
root
args = {name = self._indicatorName},
:addClass('metadata topicon nopopups')
:wikitext(content = self:renderImage())
:attr('id', 'protected-icon')
}
:css{display = 'none', right = self._right}
:wikitext(self:renderImage())
return tostring(root)
end
 
"https://ne.wikipedia.org/wiki/विशेष:MobileDiff/525078" बाट अनुप्रेषित