Template:Protection: Difference between revisions
m (minor) |
(update doc) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation/sandbox|doc = | {{Documentation/sandbox|doc = | ||
Added to pages that have some level of protection. The level of protection is automatically displayed, if there is no protection, nothing will display, apart from the base message. | Added to pages that have some level of protection. The level of protection is automatically displayed, if there is no protection, nothing will display, apart from the base message. | ||
The first parameter is optional and should be used to provide a reason for the protection. | |||
==Usage== | ==Usage== | ||
===Parameters=== | |||
;<code>1</code> | |||
:The reason for the protection. | |||
===Examples=== | |||
<pre>{{Protection}}</pre> | <pre>{{Protection}}</pre> | ||
:'''Produces:''' | :'''Produces:''' | ||
Line 21: | Line 27: | ||
}} | }} | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
==See also== | |||
*{{ll|PZwiki:Mboxes}} | |||
}} | }} | ||
{{ll|Category:Mbox templates}} | {{ll|Category:Mbox templates}} | ||
</noinclude><includeonly>{{Mbox | </noinclude><includeonly>{{Mbox |
Revision as of 07:27, 29 December 2023
Added to pages that have some level of protection. The level of protection is automatically displayed, if there is no protection, nothing will display, apart from the base message.
The first parameter is optional and should be used to provide a reason for the protection.
Usage
Parameters
1
- The reason for the protection.
Examples
{{Protection}}
- Produces:
- OR
{{Protection|This template is consider '''High Risk''' as it is used on multiple pages.}}
- Produces:
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch:{{{1|}}}
| title = This page has been put into protection by a PZwiki [[PZwiki:Administrators|administrator]].
| reason = Reason
| note = Only users in the [[PZwiki:{{PROTECTIONLEVEL:edit}}|{{PROTECTIONLEVEL:edit}}]] [[Special:ListGroupRights|user group]] may edit this page.
| #default = [[Category:Incorrect template usage]]
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.