Template:Pp-template/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{pp-meta |type={{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}} |semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef<!--fallback value-->}} |small={{{small|yes}}} |demospace={{{demospace|}}} |demolevel={{#ifeq:{{PAGENAME}}/{{NAMESPACE}}|{{SUBPAGENAME}}/{{ns:Template}}|{{{demolevel|undefined}}}|{{#ifeq:{{lc:{{SUBPAGENAME}}}}|sandbo...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <!-- This is the documentation for Template:Pp-template --> | ||
== Usage == | |||
The '''{{PAGENAME}}''' template is used to display protection information for pages. It adjusts its output based on the page's protection level, namespace, and other parameters. | |||
=== Parameters === | |||
* '''type''': The type of protection (e.g., semi, full, move). | |||
* '''small''': Controls whether the small version of the protection icon is displayed (default: yes). | |||
* '''demospace''': The demonstration namespace. | |||
* '''demolevel''': The demonstration protection level. | |||
* '''expiry''': The expiry of the protection (not used in this template). | |||
* '''dispute''': Whether the protection is due to a dispute (default: no). | |||
* '''icon-text''': Custom text for the protection icon. | |||
* '''reason-text''': Custom text for the reason of protection. | |||
* '''categories''': Custom categories for the template. | |||
== Examples == | |||
<syntaxhighlight lang="html"> | |||
{{Pp-template | |||
|type=semi | |||
|small=no | |||
|demospace=Template | |||
|demolevel=autoconfirmed | |||
}} | |||
</syntaxhighlight> | |||
== Categories == | |||
This template automatically categorizes pages based on their protection level: | |||
* [[:Category:Semi-protected templates]] | |||
* [[:Category:Move-protected templates]] | |||
* [[:Category:Protected templates]] | |||
== See Also == | |||
* [[Protection policy]] | |||
* [[Template messages/Protection]] | |||
* [[High-risk templates]] | |||
<noinclude> | <noinclude> | ||
[[Category:Template documentation|Pp-template]] | |||
</noinclude> | </noinclude> |
Latest revision as of 14:31, 21 July 2024
Usage
The Pp-template/doc template is used to display protection information for pages. It adjusts its output based on the page's protection level, namespace, and other parameters.
Parameters
- type: The type of protection (e.g., semi, full, move).
- small: Controls whether the small version of the protection icon is displayed (default: yes).
- demospace: The demonstration namespace.
- demolevel: The demonstration protection level.
- expiry: The expiry of the protection (not used in this template).
- dispute: Whether the protection is due to a dispute (default: no).
- icon-text: Custom text for the protection icon.
- reason-text: Custom text for the reason of protection.
- categories: Custom categories for the template.
Examples
{{Pp-template
|type=semi
|small=no
|demospace=Template
|demolevel=autoconfirmed
}}
Categories
This template automatically categorizes pages based on their protection level: