Template:Pp-semi-template

From FORwiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '<includeonly>{{pp-meta |type={{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}} |semi |autoconfirmed...')
Line 22: Line 22:
   |#default=<!--fallback value-->protected from editing}} to prevent vandalism.
   |#default=<!--fallback value-->protected from editing}} to prevent vandalism.
|reason-text=This {{#switch:{{NAMESPACE}}
|reason-text=This {{#switch:{{NAMESPACE}}
-
   |{{ns:image}}=image, used in one or more [[Wikipedia: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=[[Wikipedia:High-risk templates|high-risk template]]
+
   |#default=high-risk template
-
}} has been [[Wikipedia:This page is protected|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
+
}} has been [[This page is protected|{{#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 [[Wikipedia: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=
Line 43: Line 43:
   |full
   |full
   |sysop<!--uses default-->
   |sysop<!--uses default-->
-
   |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}}}
+
   |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to commons.</small>}}}}
|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:Wikipedia semi-protected templates|{{PAGENAME}}]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]}}
+
   |autoconfirmed
-
   |move=[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]
+
   |move=
   |administrator
   |administrator
   |full
   |full
   |sysop<!--uses default-->
   |sysop<!--uses default-->
-
   |#default=[[Category:Wikipedia protected templates|{{PAGENAME}}]]<!--fallback value-->}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
+
   |#default=<!--fallback value-->}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|
-
  |semi
+
}}}}}}}</includeonly><noinclude>
-
  |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 18:53, 9 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-semi-template}} for the normal template (an icon at the top)
  • Use {{pp-semi-template}} for the large template

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

Personal tools