Template:Protected/sandbox
General protection template to inform users a page is protected. (Note: This does not protect pages. Only admins can do that.)
The template automatically sets the following categories: files to Category:Protected files and everything else except user pages, user talk pages, and templates to Category:Protected pages. If the page is not protected, it will end up in Category:Unprotected pages using protection templates.
Usage
{{protected |1= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | reason | — | from editing to prevent vandalism. | optional |
icon | hide icon | If this parameter has any value, the padlock icon doesn’t appear in the top-right corner. | empty | optional |
note | note | Its default value doesn’t show up on talk pages or user pages (if you specify the parameter, it does so). | Please discuss changes on the talk page or request unprotection. (except talk and user pages) | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: Administrators
Placement: At the top of the page
Relies on:
See also
- {{Mprotected}} - for images included on the Main Page, which are protected because of the cascading protection (but are not protected directly).
- {{Permprot}} - for high-risk templates that are indefinitely protected (use on talk page).
- {{MWheader}} - for MediaWiki pages (use on talk page).
Padlocks
Localization
This template makes use of {{Autotranslate}} and the translate extension. The layout of the template can be found under Template:protected/layout.
Only the text is switched out based on the user's interface, not the whole template (like with {{Autotranslate}}) to avoid unnecessary complexity. Keep in mind this is still a work in progress and new text fields may be added in the future. Additionally, this template stores translation strings in Data:I18n/Protection banner.tab.
Examples
- The message box does not appear on semi-protected pages or upload-only protected files. An icon still appears in the top-right corner.
- {{protected/sandbox}} →
This template has been fully protected because it’s transcluded on one or more cascade protected pages. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|I said so}} →
This template has been cascade protected because I said so. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|note=And you can change this too.}} →
This template has been fully protected because it’s transcluded on one or more cascade protected pages. And you can change this too.
- {{protected/sandbox}} →
This template has been fully protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|I said so}} →
This template has been fully protected because I said so. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|note=And you can change this too.}} →
This template has been fully protected from editing to prevent vandalism. And you can change this too.
- {{protected/sandbox|box=1}} →
This template has been template protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|box=1|I said so}} →
This template has been template protected because I said so. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|box=1|note=And you can change this too.}} →
This template has been template protected from editing to prevent vandalism. And you can change this too.
- {{protected/sandbox|box=1}} →
This template has been semi-protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|box=1|I said so}} →
This template has been semi-protected because I said so. Please discuss changes on the talk page or request unprotection. - {{protected/sandbox|box=1|note=And you can change this too.}} →
This template has been semi-protected from editing to prevent vandalism. And you can change this too.