Template:Pp-template

From FORwiki

(Difference between revisions)
Jump to: navigation, search
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 high-risk templates{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
   |{{ns:image}}=image, used in one or more high-risk templates{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}

Revision as of 20:34, 6 October 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