Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Protection banner: Difference between revisions

From the Lonsdale Battalion wiki
Content deleted Content added
simplify Protection:makeProtectionCategory and update the comments
use the config to set the padlock "right" propery, and remove the Padlock:setRight method
Line 793: Line 793:
self._imageAlt = blurbObj:makeAltText()
self._imageAlt = blurbObj:makeAltText()
self._imageLink = blurbObj:makeLinkText()
self._imageLink = blurbObj:makeLinkText()
self._right = cfg.padlockPositions[action]
end
or cfg.padlockPositions.default

or '55px'
function Padlock:setRight(px)
self._right = px
end
end


Line 804: Line 803:
:addClass('metadata topicon nopopups')
:addClass('metadata topicon nopopups')
:attr('id', 'protected-icon')
:attr('id', 'protected-icon')
:css{display = 'none', right = self._right or '55px'}
:css{display = 'none', right = self._right}
:wikitext(self:renderImage())
:wikitext(self:renderImage())
return tostring(root)
return tostring(root)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.