Más acciones
fix examples |
simplify |
||
Línea 1: | Línea 1: | ||
{{# | {{#switch:{{{demo|<noinclude>sysop</noinclude><includeonly>{{PROTECTIONLEVEL:edit}}</includeonly>}}} | ||
|sysop= | |||
<div style="position:absolute; z-index:100; right:10px; top:10px">[[File:Padlock.svg|20px|link=Commons:Page protection|This page is protected against editing.]]</div> | |||
<table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;"> | <table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;"> | ||
<tr> | <tr> | ||
Línea 6: | Línea 8: | ||
<td>'''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}} | from editing to prevent vandalism}}.'''<br /><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></td> | <td>'''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}} | from editing to prevent vandalism}}.'''<br /><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></td> | ||
</tr> | </tr> | ||
</table><includeonly>{{#if:{{{demo|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:file}}=[[Category:Protected images]]|{{ns:user}}|{{ns:user_talk}}=|[[Category:Protected pages]]}}}}}}}</includeonly> | </table><includeonly>{{#if:{{{demo|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:file}}=[[Category:Protected images]]|{{ns:user}}|{{ns:user_talk}}=|[[Category:Protected pages]]}}}}}}}</includeonly> | ||
<div style="position:absolute; z-index:100; right:10px; top:10px">[[File:Padlock-silver-medium.svg|20px|link=Commons:Page protection|This page is semi-protected against editing.]]</div>|<!-- | |autoconfirmed= | ||
--><div class="error">Error: This page is not currently protected. Please remove the protection template. {{{category|[[Category:Unprotected pages using protection templates]]}}}</div> | <div style="position:absolute; z-index:100; right:10px; top:10px">[[File:Padlock-silver-medium.svg|20px|link=Commons:Page protection|This page is semi-protected against editing.]]</div> | ||
|<!--default--><div class="error">Error: This page is not currently protected. Please remove the protection template. {{{category|[[Category:Unprotected pages using protection templates]]}}}</div> | |||
}}<noinclude> | |||
Revisión del 23:31 13 mar 2009
This Plantilla:Namespace 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 and everything 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
note
parameter is used).
Examples
{{protected}} →
This Plantilla:Namespace has been protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. |
{{protected|I said so}} →
This Plantilla:Namespace 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 Plantilla:Namespace 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.
- {{en main page}}
- for images on the English Wikipedia's main page.
- {{permprot}}
- for high-risk templates that are indefinitely protected (use on talk page).