Difference between revisions of "Template:Pp-template"

From Arkaz
Jump to: navigation, search
(New page: <noinclude>{{pp-template|small=yes}} </noinclude>{{#ifeq:{{{small|}}}{{{expiry|}}}|yes | <div style="position:absolute; z-index:100; right:20px; top:10px; height:10px; width:300px;"></div>...)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{pp-template|small=yes}}
+
<includeonly>{{pp-meta
</noinclude>{{#ifeq:{{{small|}}}{{{expiry|}}}|yes
+
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
|
+
  |semi
<div style="position:absolute; z-index:100; right:20px; top:10px; height:10px; width:300px;"></div>
+
  |autoconfirmed=semi
<div style="position:absolute; z-index:100; right:10px; top:10px;" class="metadata" id="administrator">
+
  |administrator
<imagemap>
+
  |full
Image:Padlock.svg|20px
+
  |sysop=indef
default [[Wikipedia:Protection policy|This high-risk template or image included in one has been protected from editing to prevent vandalism]]
+
  |#default=indef<!--fallback value-->}}
desc none
+
|small={{{small|yes}}}
</imagemap>
+
|demospace={{{demospace|}}}
</div>
+
|demolevel={{{demolevel|undefined}}}
|
+
|expiry=<!--not applicable-->
<table class="messagebox protected" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
+
|dispute=no
<tr>
+
|icon-text=This {{#ifeq:{{NAMESPACE}}|{{ns:6}}|image, included in a high-risk template or message,|high-risk template}} is indefinitely {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
<td valign="middle" > [[Image:Padlock.svg|45px| ]]</td>
+
  |semi
<td>
+
  |autoconfirmed=semi-
'''This {{#switch:{{NAMESPACE}}
+
  |administrator
   |{{ns:image}}=image, used in one or more [[Wikipedia:High-risk templates|high-risk templates]] and/or [[Special:Allmessages|system messages]],
+
  |full
 +
  |sysop
 +
  |#default=<!--fallback value-->}}protected from editing to prevent vandalism.
 +
|reason-text=This {{#switch:{{NAMESPACE}}
 +
   |{{ns:image}}=image, used in one or more [[Wikipedia:High-risk templates|high-risk templates]]{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
 +
  |semi
 +
  |autoconfirmed=
 +
  |administrator
 +
  |full
 +
  |sysop=<nowiki> </nowiki>and/or [[Special:Allmessages|system messages]],
 +
  |#default=<!--fallback value-->}}
 
   |#default=[[Wikipedia:High-risk templates|high-risk template]]
 
   |#default=[[Wikipedia:High-risk templates|high-risk template]]
}} has been [[Wikipedia:This page is protected|protected]] from editing to prevent [[Wikipedia:vandalism|vandalism]].''' <span class="plainlinks">([{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log]).</span> {{howtoedit}}
+
}} has been [[Wikipedia:This page is protected|{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
{{#switch:{{NAMESPACE}}|{{ns:image}}=<small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}
+
  |semi
</td>
+
  |autoconfirmed=semi-
</tr>
+
  |administrator
</table>
+
  |full
}}<includeonly>[[Category:Protected templates|{{PAGENAME}}]]</includeonly><noinclude>
+
  |sysop<!--uses default-->
 
+
  |#default=<!--fallback value-->}}protected]] from editing to prevent [[Wikipedia:Vandalism|vandalism]]. {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
----
+
  |semi
* Use {{tlx|{{lc:{{PAGENAME}}}}}} for the normal template
+
  |autoconfirmed=
* Use {{tlx|{{lc:{{PAGENAME}}}}|small&#61;yes}} for just an icon at the top
+
  |administrator
 
+
  |full
This template is not to be used as a bluff. '''''Only use it on FULLY PROTECTED pages.''''' Please note that only [[Wikipedia:Administrators|administrators]] can protect pages.
+
  |sysop<!--uses default-->
 
+
  |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}}}
{{protection templates}}
+
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Wikipedia {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
 
+
  |semi
{{in category|Protected templates}}
+
  |autoconfirmed=semi-
[[Category:Protection templates|{{PAGENAME}}]]
+
  |administrator
 +
  |full
 +
  |sysop<!--uses default-->
 +
  |#default=<!--fallback value-->}}protected templates|{{PAGENAME}}]]}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
 +
  |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|small=no}}     <!-- Show the large version -->
 +
{{Documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 11:33, 9 March 2009

[edit] 50px Template documentation

Usage

  • Use {{pp-template}} for the normal template (an icon at the top)
  • Use {{pp-template|small=no}} for the large template

This template is not to be used as a bluff. Only use it on FULLY PROTECTED pages. Please note that only administrators can protect pages.

See also

Error creating thumbnail: File missing

+/-

Protection templates Full Semi
Dispute: {{pp-dispute}} N/A
Vandalism: {{pp-vandalism}} {{pp-semi-vandalism}}
High visibility templates: {{pp-template}} {{pp-semi-template}}
User talk of blocked user: {{pp-usertalk}} {{pp-semi-usertalk}}
Spambot target: N/A {{pp-semi-spambot}}
Sockpuppetry: N/A {{pp-semi-sock}}
Generic (other protection): {{pp-protected}} {{pp-semi-protected}}
Scrutiny of the Office: {{pp-office}} N/A
Move protection: {{pp-move}}