Difference between revisions of "Template:Protection"

From Arcen Wiki
Jump to navigation Jump to search
(yes, as usual the Bootcamp)
 
m (32 revisions: Taken from http://www.uesp.net)
 
(16 intermediate revisions by one other user not shown)
Line 1: Line 1:
yes, as usual the Bootcamp
+
<includeonly><cleanspace>
 +
{{#inherit:topiconsright}}
 +
{{#define:edit|{{{1|}}}}}
 +
{{#define:move|{{{2|{{{edit|}}}}}}}}
 +
</cleanspace>{{#ifeq:{{NESTLEVEL}}|{{{nestlevel|1}}}|{{#switch:{{{edit}}}
 +
|full|sysop=        [[Category:Full Protection  |{{PAGENAME}}]]{{Page Icon|Padlock18.png      |Full Protection          |UESPWiki:Full Protection|18}}
 +
|section=          [[Category:Section Protection|{{PAGENAME}}]]
 +
|semi|autoconfirmed=[[Category:Semi Protection  |{{PAGENAME}}]]{{Page Icon|Padlock18-silver.png|Semi Protection          |UESPWiki:Semi-Protection|18}}
 +
|site=              {{Page Icon|Padlock18-black.png |Site Page: Full Protection|UESPWiki:Full Protection|18}}
 +
}}{{#switch:{{{move}}}
 +
|autoconfirmed|full|move|semi|sysop=[[Category:Move Protection|{{PAGENAME}}]]{{#return:topiconsright}}
 +
}}}}</includeonly><noinclude>{{/Doc}}</noinclude>

Latest revision as of 18:07, 31 January 2015

Summary

This template places a padlock on protected pages and adds them to the appropriate category or categories.

Parameters

Both parameters must be one of: full, semi, section or site. For convenience, autoconfirmed and sysop will also work (equivalent to semi and full, respectively). Note that site pages will not be categorized and section pages will not display a lock icon at the top of the page, nor will they be categorized as move protected.

Protection
Parameter Scope Description

{{#splitargs:Parameters/Line|3}}

Example

{{Protection|semi}}

Placed on a semi-protected page, this would add a silver lock (Padlock18-silver.png) to the top right of the page and categorize it into Category:Semi Protection and Category:Move Protection.

{{Protection|move=full}}

Placed on a move-protected page, this would only categorize it into Category:Move Protection.

See Also

This page is marked for deletion. Reasons could include a nonsense title, superfluous information, irrelevant/lack of material or the article could be outdated/duplicated.