Template:Protect: Difference between revisions

(moved small padlock image to float right so doesn't cover up ads)
(Replacing <imagemap> with <indicator>)
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{#ifeq:{{{small|}}}{{{expiry|ʁ}}}|yesʁ
{{#ifeq:{{{small|}}}{{{expiry|ʁ}}}|yesʁ
|
|
<div style="float:right" class="metadata" id="administrator">
<indicator name="foo">[[Image:Padlock.png|20px|link=Grand Theft Wiki:Protection|This page is protected from editing to deal with vandalism]]</indicator>
<imagemap>
Image:Padlock.png|20px
rect 0 0 1000 1000 [[Grand Theft Wiki:Protection|This page has been temporarily protected from editing to deal with vandalism]]
desc none
</imagemap>
</div>
|
|
<table class="messagebox protected" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
{{ambox|type=protection|image=[[Image:Padlock.png|45px|link=Grand Theft Wiki:Protection|This page is protected from editing to pevent vandalism]]|text='''This {{#switch:{{NAMESPACE}}|{{ns:0}}=article|{{ns:image}}=image|#default=page}} is currently [[Grand Theft Wiki:Protection|protected]] from editing {{#if:{{{expiry|}}}|until {{#time:[[F j]], [[Y]]|{{{expiry}}}}} <small>(UTC)</small>}} to prevent [[Grand Theft Wiki:Vandalism|vandalism]].'''<br />
<tr>
<small>Protection is not an endorsement of the current <span class="plainlinks">[{{fullurl:{{FULLPAGENAMEE}}|action=history}} version]</span> <span class="plainlinks">([{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log])</span>.</small>}}
<td valign="center" > [[Image:Padlock.png|45px| ]]</td>
<td>
'''This {{#switch:{{NAMESPACE}}|{{ns:0}}=article|{{ns:image}}=image|#default=page}} is currently [[Grand Theft Wiki:Protection|protected]] from editing {{#if:{{{expiry|}}}|until {{#time:[[F j]], [[Y]]|{{{expiry}}}}} <small>(UTC)</small>}} to deal with [[Grand Theft Wiki:Vandalism|vandalism]].'''<br />
Protection is not an endorsement of the current <span class="plainlinks">[{{fullurl:{{FULLPAGENAMEE}}|action=history}} version]</span> <span class="plainlinks">([{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log])</span>.
</td>
</tr>
</table>
}}
}}
<includeonly>[[Category:Protected|{{PAGENAME}}]]{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Expired Protected|{{PAGENAME}}]]}}</includeonly>
<includeonly>[[Category:Protected|{{PAGENAME}}]]{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Expired Protected|{{PAGENAME}}]]}}</includeonly>

Latest revision as of 00:36, 27 January 2015




  • Use {{Template:Protect}} for the normal template
  • Use {{Template:Protect|small=yes}} for just an icon at the top (recommended)
  • Use {{Template:Protect|expiry={{#time:F j, Y|+1 month}}}} for a specific expiration date
  • Use {{Template:Protect|expiry={{subst:#time:F j, Y|+7 days}}}} for a specific expiration time period

Note that (UTC) will be added automatically.

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.