Changes

Jump to navigation Jump to search

Module:Protection banner

54 bytes added, 14:02, 23 March 2015
undo for now - the code looks good, but we will need to change everything over at the same time to avoid it looking like a giant mess
obj._imageAlt = blurbObj:makeBannerText('alt')
obj._imageLink = blurbObj:makeBannerText('link')
obj._indicatorName _right = cfg.padlockIndicatorNamespadlockPositions[protectionObj.action] or cfg.padlockIndicatorNamespadlockPositions.default or 'pp-default55px'
return setmetatable(obj, Padlock)
end
function Padlock:__tostring()
return local root = mw.getCurrentFramehtml.create('div') root :extensionTag{addClass('metadata topicon nopopups') name = :attr('indicatorid','protected-icon') args :css{display = {name 'none', right = self._indicatorName_right}, content = :wikitext(self:renderImage()) }return tostring(root)
end
Anonymous user

Navigation menu