Created page with "{{#ifeq:{{PENDINGCHANGELEVEL}}|review|{{Pp-pc2|small=yes|reason={{{reason|}}}|expiry={{{expiry|}}}}}| {{#if:{{PROTECTIONLEVEL:edit}}|{{Pp-protected|small=yes|reason={{{reason|..."
 
Redirected page to Template:Pp-template
Tag: New redirect
 
Line 1: Line 1:
{{#ifeq:{{PENDINGCHANGELEVEL}}|review|{{Pp-pc2|small=yes|reason={{{reason|}}}|expiry={{{expiry|}}}}}|
#REDIRECT [[Template:Pp-template]]
{{#if:{{PROTECTIONLEVEL:edit}}|{{Pp-protected|small=yes|reason={{{reason|}}}|expiry={{{expiry|}}}}}|
{{#if:{{PENDINGCHANGELEVEL}}|{{Pp-pc1|small=yes|reason={{{reason|}}}|expiry={{{expiry|}}}}}|
{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|{{Pp-move|small=yes|reason={{{reason|}}}|expiry={{{expiry|}}}}}
}}}}}}}}<noinclude>
{{documentation|content=
==Purpose==
This is a shortcut template that automatically detects the current protection level and adds a small padlock icon to the top right corner with the following priority (using only one):
 
#Review protected (pending changes level 2)
#Fully protected or semi-protected
#Pending changes protected (level 1)
#Move protected
#No protection or autoconfirmed move protection (in this case, the template adds absolutely nothing)
 
Please note that this does not automatically add expiry dates (use "expiry=InsertDateHere" like normal to add them). This template ''only'' adds the padlock icon and does not differentiate between protection reasons, so this template is not to be used in place of templates like {{tl|pp-dispute}}.
 
==Usage==
{{tlx|padlock}}<br>
{{tlx|padlock|expiry{{=}}InsertDateHere}}
 
<!-- PLEASE ADD CATEGORIES INSIDE THE NOINCLUDE TAGS -->
[[Category:Top icon protection templates]]
}}</noinclude>

Latest revision as of 21:28, 20 September 2020