On November 27th, 2022, the 8,000th article was added to the SuccuWiki!

Template:Pp-template: Difference between revisions

From SuccuWiki - The Wiki of the Succubi
Jump to navigation Jump to search
mNo edit summary
m (1 revision: Trying this for solution)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><noinclude>{{pp-template|small=yes}}
<includeonly>{{pp-meta
</noinclude>{{#ifeq:{{{small|}}}{{{expiry|ʁ}}}|yesʁ
|type={{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{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]]
  |move=move
desc none
  |#default=indef<!--fallback value-->}}
</imagemap>
|small={{{small|yes}}}
</div>
|demospace={{{demospace|}}}
|
|demolevel={{#ifeq:{{PAGENAME}}/{{NAMESPACE}}|{{SUBPAGENAME}}/{{ns:Template}}|{{{demolevel|undefined}}}|{{#ifeq:{{lc:{{SUBPAGENAME}}}}|sandbox|sysop|{{{demolevel|undefined}}}}}}}
<table class="messagebox protected" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
|expiry=<!--not applicable-->
<tr>
|dispute=no
<td valign="middle" > [[Image:Padlock.svg|45px| ]]</td>
|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}}}}}}}
<td>
  |semi
'''This {{#switch:{{NAMESPACE}}
  |autoconfirmed=semi-protected from editing
   |{{ns:image}}=image, used in one or more [[Wikipedia:High-risk templates|high-risk templates]] and/or [[Special:Allmessages|system messages]],
  |move=move-protected
  |administrator
  |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|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
{{#switch:{{NAMESPACE}}|{{ns:image}}=<small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}
  |semi
</td>
  |autoconfirmed=semi-
</tr>
  |move=move-
</table>
  |administrator
}}<includeonly>[[Category:Protected templates|{{PAGENAME}}]]</includeonly><noinclude>
  |full
  |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}}}}}
  |semi
  |autoconfirmed=
  |administrator
  |full
  |sysop<!--uses default-->
  |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}}}
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
  |semi
  |autoconfirmed=[[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]}}
  |move=[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]
  |administrator
  |full
  |sysop<!--uses default-->
  |#default=[[Category:Wikipedia protected templates|{{PAGENAME}}]]<!--fallback value-->}}}}{{#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}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>
</includeonly>

Latest revision as of 11:56, 9 October 2012

[edit] [history] [purge] Documentation icon Template documentation

This is the {{pp-template}} protection notice.

It is used on protected templates and on protected file (image) pages.

This template does not show on pages that are not protected, instead it reports an error. Please note that only administrators can protect pages, this template only informs about the protection status of the page.

This template should usually not be manually placed on template pages, since it is automatically loaded by the {{Documentation}} template of protected template pages. Protected templates (both semi and full) should preferably have a documentation subpage (/doc) so that any editor can update the documentation, categories and interwiki links of the template.

This template automatically detects the edit protection level (semi or full) of a page, and if it is on a template or file page, and modifies its appearance and how it categorizes the page.

  • Use {{pp-template}} for the normal appearance (a small icon at the top).
  • Use {{pp-template|small=no}} for the large message box. On file pages we recommend using the large box. (It is usually a good idea to also add the nocommons box on protected image pages, to remind people that protected images should not be deleted even if there is a backup copy on Commons.)

When {{pp-template}} is added to a protected template, it should be placed inside <noinclude>...</noinclude> tags (otherwise, every page which uses the template will load the protection notice, which will result in an error message). On file (image) pages the <noinclude></noincluce> tags are not necessary.