More actions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 830: | Line 830: | ||
return setmetatable(obj, Padlock) |
return setmetatable(obj, Padlock) |
||
end |
end |
||
--[[ |
|||
-- function Padlock:__tostring() |
|||
-- local root = mw.html.create('div') |
|||
-- root |
|||
-- :addClass('metadata topicon nopopups') |
|||
-- :attr('id', 'protected-icon') |
|||
-- :css{display = 'none', right = self._right} |
|||
-- :wikitext(self:renderImage()) |
|||
-- return tostring(root) |
|||
-- end |
|||
]]-- |
|||
function Padlock:__tostring() |
function Padlock:__tostring() |
||
local root = mw.html.create('div') |
local root = mw.html.create('div') |
||
root |
root |
||
:addClass('metadata nopopups') |
:addClass('metadata topicon nopopups') |
||
:attr('id', 'protected-icon') |
:attr('id', 'protected-icon') |
||
:css{display = 'none', right = self._right} |
:css{display = 'none', right = self._right} |