Template:Protected: Difference between revisions
Template page
More actions
note about talk page shouldn't show up on talk pages (and probably not user pages); also remove user/user_talk pages from category |
m adding padlock icon in upper right corner |
||
| Line 4: | Line 4: | ||
| '''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}}. | from editing to prevent vandalism.}}''' | | '''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}}. | from editing to prevent vandalism.}}''' | ||
<span style="font-size:90%;">{{{note|{{#ifeq:{{NAMESPACE}} | {{TALKSPACE}} || {{#ifeq:{{NAMESPACE}} | {{ns:user}} || Please discuss changes on the [[{{TALKPAGENAME}}|talk page]] or [[Commons:Administrators' noticeboard/Blocks & protections|request unprotection]].}} }}}}}</span> | <span style="font-size:90%;">{{{note|{{#ifeq:{{NAMESPACE}} | {{TALKSPACE}} || {{#ifeq:{{NAMESPACE}} | {{ns:user}} || Please discuss changes on the [[{{TALKPAGENAME}}|talk page]] or [[Commons:Administrators' noticeboard/Blocks & protections|request unprotection]].}} }}}}}</span> | ||
|}<includeonly>{{{category|{{#switch:{{NAMESPACE}} | {{ns:image}}=[[Category:Protected images]] | {{ns:template}}=[[Category:Protected templates|{{PAGENAME}}]] | {{ns:user}}= | {{ns:user_talk}}= | [[Category:Protected pages]] }}}}}</includeonly><noinclude> | |} | ||
<div style="position:absolute; z-index:100; right:10px; top:10px"> | |||
<imagemap> | |||
Image:Padlock.svg|20px|Protected | |||
default [[COM:P|This page is protected against editing.]] | |||
desc none | |||
</imagemap> | |||
</div><includeonly>{{{category|{{#switch:{{NAMESPACE}} | {{ns:image}}=[[Category:Protected images]] | {{ns:template}}=[[Category:Protected templates|{{PAGENAME}}]] | {{ns:user}}= | {{ns:user_talk}}= | [[Category:Protected pages]] }}}}}</includeonly><noinclude> | |||
Revision as of 22:03, 26 November 2008
| This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection. |
Usage
General protection template to inform users a page is protected. (Note: This does not protect pages. Admins can only do that.)
- Adds images to Category:Protected images, templates to Category:Protected templates, and anything else to Category:Protected pages (except user pages and user talk pages).
Syntax: {{protected|give reason here}}.
- If no reason is given the default is "to prevent vandalism."
- The second line doesn't show up on talk pages or user pages (unless the
noteparameter is used).
Examples
{{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. |
See also
- {{Protected image}} - for high-risk images that are indefinitely protected.
- {{Protected template}} - for high-risk templates that are indefinitely protected.
- {{En main page}} - for images on the English Wikipedia's main page.