This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Template:Pp-meta"

From BZFlagWiki
Jump to: navigation, search
(Removed "small=maybe" case per talk)
(Implementing sandboxed change that adds protection-level detection.)
Line 1: Line 1:
{{#ifeq:{{lc:{{{small|}}}}}|yes|
+
{{#ifeq:{{#switch:{{{type}}}
 +
  |move=<!--
 +
-->{{#ifeq:
 +
      {{#switch:{{{demolevel|{{PROTECTIONLEVEL:move}}}}}
 +
        |semi
 +
        |autoconfirmed=autoconfirmed
 +
        |administrator
 +
        |full
 +
        |sysop=sysop
 +
        |#default=<!--fallback value: null
 +
  -->}}
 +
      |sysop|yes|no
 +
    }}
 +
  |create=<!--
 +
-->{{#if:
 +
      {{#switch:{{{demolevel|{{PROTECTIONLEVEL:create}}}}}
 +
        |semi
 +
        |autoconfirmed=autoconfirmed
 +
        |administrator
 +
        |full
 +
        |sysop=sysop
 +
        |#default=<!--fallback value: null
 +
  -->}}
 +
      |yes|no
 +
    }}
 +
|#default<!--includes all other types-->=<!--
 +
-->{{#if:
 +
      {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
 +
        |semi
 +
        |autoconfirmed=autoconfirmed
 +
        |administrator
 +
        |full
 +
        |sysop=sysop
 +
        |#default=<!--fallback value: null
 +
  -->}}
 +
      |{{#ifeq:{{#switch:{{{disallowlevel|}}}
 +
                |semi
 +
                |autoconfirmed=autoconfirmed
 +
                |administrator
 +
                |full
 +
                |sysop=sysop
 +
                |#default=<!--fallback value: null-->}}
 +
        |{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
 +
            |semi
 +
            |autoconfirmed=autoconfirmed
 +
            |administrator
 +
            |full
 +
            |sysop=sysop
 +
            |#default=<!--fallback value: null
 +
      -->}}
 +
        |no|yes
 +
      }}
 +
  |no}}
 +
}}|yes|{{#ifeq:{{lc:{{{small|}}}}}|yes|
 
<div class="metadata plainlinks topicon" id="protected-icon" style="position:absolute; z-index:100; right:55px; top:10px;">
 
<div class="metadata plainlinks topicon" id="protected-icon" style="position:absolute; z-index:100; right:55px; top:10px;">
 
{{#tag:imagemap|
 
{{#tag:imagemap|
Line 67: Line 120:
 
}}}}}
 
}}}}}
 
}}
 
}}
}}<!--End if small--><includeonly>{{#ifeq:{{lc:{{{categories|no}}}}}|no||{{{categories|}}}}}</includeonly><noinclude>
+
}}|[[Category:Wikipedia pages with incorrect protection templates]]}}<!--End if small--><includeonly>{{#ifeq:{{lc:{{{categories|no}}}}}|no||{{{categories|}}}}}</includeonly><noinclude>
 +
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 14:57, 28 February 2009


[create] Template-info.svg Template documentation