Template:Protected/doc: Difference between revisions
More actions
Changed to use main template instead |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
{{#if:{{PROTECTIONLEVEL:edit}}{{CASCADINGSOURCES}}|{{protected | {{#if:{{PROTECTIONLEVEL:edit}}{{CASCADINGSOURCES}}|{{protected}}}} | ||
}}</includeonly><!-- | }}</includeonly><!-- | ||
--><!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --><!-- | --><!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --><!-- | ||
| Line 73: | Line 73: | ||
| {{tld|protected{{\sandbox}}|I said so}} → {{protected/sandbox|I said so|demo-edit=cascade-sysop|icon=no}} | | {{tld|protected{{\sandbox}}|I said so}} → {{protected/sandbox|I said so|demo-edit=cascade-sysop|icon=no}} | ||
| {{tld|protected{{\sandbox}}|note{{=}}And you can change this too.}} → {{protected/sandbox|note=And you can change this too.|demo-edit=cascade-sysop|icon=no}} | | {{tld|protected{{\sandbox}}|note{{=}}And you can change this too.}} → {{protected/sandbox|note=And you can change this too.|demo-edit=cascade-sysop|icon=no}} | ||
}} | }} | ||
=== {{ll/s|COM:FULL|Fully Protected}} === | === {{ll/s|COM:FULL|Fully Protected}} === | ||
| Line 81: | Line 80: | ||
| {{tld|protected{{\sandbox}}|note{{=}}And you can change this too.}} → {{protected{{\sandbox}}|note=And you can change this too.|demo-edit=sysop|icon=no}} | | {{tld|protected{{\sandbox}}|note{{=}}And you can change this too.}} → {{protected{{\sandbox}}|note=And you can change this too.|demo-edit=sysop|icon=no}} | ||
}} | }} | ||
=== {{ll/s|COM:TP|Template Protected}} === | === {{ll/s|COM:TP|Template Protected}} === | ||
{{unordered list | {{unordered list | ||
| Line 88: | Line 86: | ||
| {{tld|protected{{\sandbox}}|box{{=}}1|note{{=}}And you can change this too.}} → {{protected/sandbox|box=1|note=And you can change this too.|demo-edit=templateeditor|icon=no}} | | {{tld|protected{{\sandbox}}|box{{=}}1|note{{=}}And you can change this too.}} → {{protected/sandbox|box=1|note=And you can change this too.|demo-edit=templateeditor|icon=no}} | ||
}} | }} | ||
=== {{ll/s|COM:TP|Semi-protected}} === | === {{ll/s|COM:TP|Semi-protected}} === | ||
{{unordered list | {{unordered list | ||
| Line 94: | Line 91: | ||
| {{tld|protected{{\sandbox}}|box{{=}}1|I said so}} → {{protected/sandbox|box=1|I said so|demo-edit=autoconfirmed|icon=no}} | | {{tld|protected{{\sandbox}}|box{{=}}1|I said so}} → {{protected/sandbox|box=1|I said so|demo-edit=autoconfirmed|icon=no}} | ||
| {{tld|protected{{\sandbox}}|box{{=}}1|note{{=}}And you can change this too.}} → {{protected/sandbox|box=1|note=And you can change this too.|demo-edit=autoconfirmed|icon=no}} | | {{tld|protected{{\sandbox}}|box{{=}}1|note{{=}}And you can change this too.}} → {{protected/sandbox|box=1|note=And you can change this too.|demo-edit=autoconfirmed|icon=no}} | ||
}} | |||
|2= | |||
=== {{ll/s|COM:FULL|Fully Protected}} === | |||
{{unordered list | |||
| {{tld|protected}} → {{protected|demo-edit=sysop|icon=no}} | |||
| {{tld|protected|I said so}} → {{protected|I said so|demo-edit=sysop|icon=no}} | |||
| {{tld|protected|note{{=}}And you can change this too.}} → {{protected|note=And you can change this too.|demo-edit=sysop|icon=no}} | |||
}} | }} | ||
}}<includeonly>{{Sandbox other|| | }}<includeonly>{{Sandbox other|| | ||
Latest revision as of 23:10, 10 November 2025
General protection template to inform users a page is protected. This template does not protect a page; only administrators can protect pages.
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
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
= cascading full protection from editing.
= full protection from editing.
= template protection from editing.
= autopatroller protection from editing or uploading.
= semi-protection from editing or uploading.
= full protection from uploading (but not editing).
= full protection from moving (but not editing).
Localization
العربية ∙ беларуская (тарашкевіца) ∙ বাংলা ∙ dansk ∙ Deutsch ∙ English ∙ español ∙ فارسی ∙ français ∙ galego ∙ עברית ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ italiano ∙ 日本語 ∙ 한국어 ∙ македонски ∙ മലയാളം ∙ मराठी ∙ မြန်မာဘာသာ ∙ Nederlands ∙ polski ∙ português ∙ português do Brasil ∙ русский ∙ slovenščina ∙ српски / srpski ∙ svenska ∙ ไทย ∙ Türkçe ∙ українська ∙ 中文
This template makes use of {{Autotranslate}} and the translate extension.
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.
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}} →
This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection. - {{protected|I said so}} →
This template has been protected because I said so.
Please discuss changes on the talk page or request unprotection. - {{protected|note=And you can change this too.}} →
This template has been protected from editing to prevent vandalism.
And you can change this too.