Template:Protect: Difference between revisions

mNo edit summary
mNo edit summary
Line 11: Line 11:
|
|
{{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 />
{{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 />
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>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>}}
}}
}}
<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>

Revision as of 22:05, 20 February 2012



  • 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.