Anonymous user
Module:Protection banner: Difference between revisions
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
m (switch back to the main config module) |
(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) |
||
Line 825:
obj._imageAlt = blurbObj:makeBannerText('alt')
obj._imageLink = blurbObj:makeBannerText('link')
obj.
or cfg.
or '
return setmetatable(obj, Padlock)
end
function Padlock:__tostring()
local root = mw.html.create('div')
root
:addClass('metadata topicon nopopups')
:attr('id', 'protected-icon')
content = self:renderImage()▼
:css{display = 'none', right = self._right}
return tostring(root)
end
|