Difference between revisions of "Template:Pp-meta"
(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 06:57, 28 February 2009
Script error: No such module "documentation".