Template:Protection
Due to the sensitive nature of this template and the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots. Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment. For more information, please see this article's talk page. |
Summary[edit]
This template places a padlock on protected pages and adds them to the appropriate category or categories from the following list:
You can also view a list of protected pages using the Protected pages feature, which is more functional in a number of ways, but does not alphabetize results and does not include section protection.
Parameters[edit]
The first two parameters must be one of: full, semi, section or site. For convenience, autoconfirmed and sysop will also work (equivalent to semi and full, respectively). Note that site pages will not be categorized and section pages will not display a lock icon at the top of the page.
Parameter | Scope | Description |
---|---|---|
1 or edit | optional | Edit protection level of the page. |
2 or move | optional | Move protection level of the page. Defaults to the edit protection level if not specified. If specified on its own, no lock icon will be displayed at the top of the page. In the rare event that a page is edit-protected, but not move-protected, this parameter must be added as blank. Currently, all move-protected pages are categorized into Move Protection regardless of their move-protection level. |
nestlevel | optional | By default, the Protection template will only take effect on a page that it is directly transcluded onto in order to prevent pages from being marked as protected when they're not. If this template is used inside other templates, it will be necessary to adjust the level appropriately. See MetaTemplate: NESTLEVEL for more details. |
Example[edit]
{{Protection|semi}}
Placed on a semi-protected page, this would add a silver lock (File:Padlock18-silver.png) to the top right of the page and categorize it into Semi Protection and Move Protection.
{{Protection|move=full}}
Placed on a move-protected page, this would only categorize it into Move Protection.
See Also[edit]
{{TemProtect}}