Template:Pp-template

From FORwiki

(Difference between revisions)
Jump to: navigation, search
Line 46: Line 46:
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
   |semi
   |semi
-
   |autoconfirmed=[[Category:FORWiki semi-protected templates|{{PAGENAME}}]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|[[Category:FORWiki move-protected templates|{{PAGENAME}}]]}}
+
   |autoconfirmed={{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|}}
-
   |move=[[Category:FORWiki move-protected templates|{{PAGENAME}}]]
+
   |move=
   |administrator
   |administrator
   |full
   |full
   |sysop<!--uses default-->
   |sysop<!--uses default-->
-
   |#default=[[Category:FORWiki protected templates|{{PAGENAME}}]]<!--fallback value-->}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
+
   |#default=}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|}}}}}}}</includeonly><noinclude>
-
  |semi
+
-
  |autoconfirmed=Semi-protected
+
-
  |administrator
+
-
  |full
+
-
  |sysop<!--uses default-->
+
-
  |#default=Protected<!--fallback value-->}} images|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude>
+
{{pp-template|categories=no}}  <!-- Show the small version -->
{{pp-template|categories=no}}  <!-- Show the small version -->
{{pp-template|small=no}}      <!-- Show the large version -->
{{pp-template|small=no}}      <!-- Show the large version -->

Revision as of 20:27, 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