Module:High-use: Difference between revisions
Avoid categorizing {{used in system}} itself
(Categorize like {{used in system}}) |
(Avoid categorizing {{used in system}} itself) |
||
Line 122: | Line 122: | ||
image = "[[File:Ambox important.svg|40px|alt=Warning|link=]]" | image = "[[File:Ambox important.svg|40px|alt=Warning|link=]]" | ||
type_param = "content" | type_param = "content" | ||
local | local nocat = frame:getParent().args['nocat'] or frame.args['nocat'] | ||
local categorise = nocat == '' or 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]]}}}}}}') |