Jump to content

Template:Pp-meta: Difference between revisions

From IdeaWazaWiki
wikademia>Nihiltres
Implementing sandboxed change that adds protection-level detection.
wikademia>Nihiltres
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 15:46, 3 March 2009


[create] Template documentation