Content deleted Content added
Jackmcbarn (talk | contribs) make it return a function that returns a subclass of box |
Jackmcbarn (talk | contribs) set right metatable on derived class members |
||
Line 467:
function box.new(protectionType, args)
local obj = box.superclass.new(protectionType, args)
setmetatable(obj, box)
local boxProtectionLevels = {semi = 'autoconfirmed', template = 'templateeditor', full = 'sysop'}
obj.boxProtectionLevel = boxProtectionLevels[protectionType]
|