Anonymous user
Module:Protection banner: Difference between revisions
no edit summary
mNo edit summary |
No edit summary |
||
Line 830:
return setmetatable(obj, Padlock)
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()
local root = mw.html.create('
root
:attr('name', 'protected-icon')
▲ :addClass('metadata topicon nopopups')
▲ :attr('id', 'protected-icon')
▲ :css{display = 'none', right = self._right}
:wikitext(self:renderImage())
return tostring(root)
|