Jump to content

Module:High-use: Difference between revisions

fixes
(Avoid categorizing {{used in system}} itself)
(fixes)
Line 123: Line 123:
type_param = "content"
type_param = "content"
local nocat = frame:getParent().args['nocat'] or frame.args['nocat']
local nocat = frame:getParent().args['nocat'] or frame.args['nocat']
local categorise = nocat == '' or require('Module:Yesno')(nocat)
local categorise = (nocat == '' or not require('Module:Yesno')(nocat))
if categorise then
if categorise then
epilogue = frame:preprocess('{{Sandbox other||{{#switch:{{#invoke:Effective protection level|{{#switch:{{NAMESPACE}}|File=upload|#default=edit}}|{{FULLPAGENAME}}}}|sysop|templateeditor|interfaceadmin=|#default=[[Category:Pages used in system messages needing protection]]}}}}}}')
epilogue = frame:preprocess('{{Sandbox other||{{#switch:{{#invoke:Effective protection level|{{#switch:{{NAMESPACE}}|File=upload|#default=edit}}|{{FULLPAGENAME}}}}|sysop|templateeditor|interfaceadmin=|#default=[[Category:Pages used in system messages needing protection]]}}}}')
end
end
elseif (frame.args[1] == "risk" or (count and count >= 100000)) then
elseif (frame.args[1] == "risk" or (count and count >= 100000)) then
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.