Template:Pp-template

From FORwiki

(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions not shown)
Line 15: Line 15:
|icon-text=This {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk template}} is indefinitely {{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
|icon-text=This {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk template}} is indefinitely {{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
   |semi
   |semi
-
   |autoconfirmed=semi-protected from editing
+
   |autoconfirmed=
-
   |move=move-protected
+
   |move=
   |administrator
   |administrator
   |full
   |full
   |sysop
   |sysop
-
   |#default=<!--fallback value-->protected from editing}} to prevent vandalism.
+
   |#default=protected from editing}} to prevent vandalism.
|reason-text=This {{#switch:{{NAMESPACE}}
|reason-text=This {{#switch:{{NAMESPACE}}
-
   |{{ns:image}}=image, used in one or more [[FORWiki:High-risk templates|high-risk templates]]{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
+
   |{{ns:image}}=image, used in one or more high-risk templates{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
   |semi
   |semi
   |autoconfirmed=
   |autoconfirmed=
Line 29: Line 29:
   |sysop=<nowiki> </nowiki>and/or [[Special:Allmessages|system messages]],
   |sysop=<nowiki> </nowiki>and/or [[Special:Allmessages|system messages]],
   |#default=<!--fallback value-->}}
   |#default=<!--fallback value-->}}
-
   |#default=[[FORWiki:High-risk templates|high-risk template]]
+
   |#default=high-risk template
-
}} has been [[FORWiki:This page is protected|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
+
}} has been {{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
   |semi
   |semi
   |autoconfirmed=semi-
   |autoconfirmed=semi-
Line 37: Line 37:
   |full
   |full
   |sysop<!--uses default-->
   |sysop<!--uses default-->
-
   |#default=<!--fallback value-->}}protected]]{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop||<nowiki> </nowiki>from editing}} to prevent [[FORWiki:Vandalism|vandalism]]. {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
+
   |#default=<!--fallback value-->}}protected {{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop||<nowiki> </nowiki>from editing}} to prevent vandalism. {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
   |semi
   |semi
-
   |autoconfirmed=
+
   |autoconfirmed
   |administrator
   |administrator
   |full
   |full
Line 56: Line 56:
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>
 +
<noinclude>
 +
[[Category:Templates]]
 +
[[Category:Visual Templates]]
</noinclude>
</noinclude>

Current revision as of 18:34, 24 December 2009

[edit] [purge] Template documentation

Usage

The template will automatically detect the edit protection level (semi or full) of a page, and modify the appearance or categorization in consequence.

  • Use {{pp-template}} for the normal template (an icon at the top)

This template will not be shown on pages that are not protected. Please note that only administrators can protect pages.

Personal tools