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

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}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.