Difference between revisions of "Template:Pp-meta"
(Implementing sandboxed change that adds protection-level detection.) |
(Made protection-level-related features case-insensitive) |
||
Line 1: | Line 1: | ||
− | {{#ifeq:{{#switch:{{{type}}} | + | {{#ifeq:{{#switch:{{lc:{{{type}}}}} |
|move=<!-- | |move=<!-- | ||
-->{{#ifeq: | -->{{#ifeq: | ||
− | {{#switch:{{{demolevel|{{PROTECTIONLEVEL:move}}}}} | + | {{#switch:{{lc:{{{demolevel|{{PROTECTIONLEVEL:move}}}}}}} |
|semi | |semi | ||
|autoconfirmed=autoconfirmed | |autoconfirmed=autoconfirmed | ||
Line 14: | Line 14: | ||
|create=<!-- | |create=<!-- | ||
-->{{#if: | -->{{#if: | ||
− | {{#switch:{{{demolevel|{{PROTECTIONLEVEL:create}}}}} | + | {{#switch:{{lc:{{{demolevel|{{PROTECTIONLEVEL:create}}}}}}} |
|semi | |semi | ||
|autoconfirmed=autoconfirmed | |autoconfirmed=autoconfirmed | ||
Line 26: | Line 26: | ||
|#default<!--includes all other types-->=<!-- | |#default<!--includes all other types-->=<!-- | ||
-->{{#if: | -->{{#if: | ||
− | {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}} | + | {{#switch:{{lc:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}}} |
|semi | |semi | ||
|autoconfirmed=autoconfirmed | |autoconfirmed=autoconfirmed | ||
Line 34: | Line 34: | ||
|#default=<!--fallback value: null | |#default=<!--fallback value: null | ||
-->}} | -->}} | ||
− | |{{#ifeq:{{#switch:{{{disallowlevel|}}} | + | |{{#ifeq:{{#switch:{{lc:{{{disallowlevel|}}}}} |
|semi | |semi | ||
|autoconfirmed=autoconfirmed | |autoconfirmed=autoconfirmed | ||
Line 41: | Line 41: | ||
|sysop=sysop | |sysop=sysop | ||
|#default=<!--fallback value: null-->}} | |#default=<!--fallback value: null-->}} | ||
− | |{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}} | + | |{{#switch:{{lc:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}}} |
|semi | |semi | ||
|autoconfirmed=autoconfirmed | |autoconfirmed=autoconfirmed |
Revision as of 07:46, 3 March 2009
Script error: No such module "documentation".