Más acciones
change to topicon class. |
merging {{protected files}} into this one, change auto-category |
||
Línea 1: | Línea 1: | ||
{{#switch:{{{demo|<noinclude>sysop</noinclude><includeonly>{{PROTECTIONLEVEL:edit}}</includeonly>}}} | {{#switch:{{{demo-edit|<noinclude>sysop</noinclude><includeonly>{{PROTECTIONLEVEL:edit}}</includeonly>}}} | ||
|sysop= | | sysop= | ||
<div class="topicon" id="protected-icon" style=" | <div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock.svg|20px|Protected|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> | ||
<td style="padding-right:4px; padding-left:4px;">[[File:Padlock.svg|40px|Protected|link=Commons:Page protection]]</td> | <td style="padding-right:4px; padding-left:4px;">[[File:Padlock.svg|40px|Protected|link=Commons:Page protection]]</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> | <td>'''This {{{demo-ns|{{namespace}}}}} has been protected {{#if:{{{1|}}} | because {{{1}}} | from editing to prevent vandalism}}.'''<br /><span style="font-size:90%;">{{{note|{{#ifeq:{{{demo-ns|{{NAMESPACE}}}}} | {{TALKSPACE}} || {{#ifeq:{{{demo-ns|{{NAMESPACE}}}}} | {{ns:user}} || Please discuss changes on the [[{{TALKPAGENAME}}|talk page]] or [[Commons:Administrators' noticeboard/Blocks & protections|request unprotection]].}} }} }}}</span></td> | ||
</tr> | </tr> | ||
</table | </table>{{#if:{{{demo-edit|<noinclude>sysop</noinclude>}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }} | ||
|autoconfirmed= | | autoconfirmed= | ||
<div class="topicon" id="protected-icon" style=" | <div class="topicon" id="protected-icon" style="right: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. {{#if:{{{demo|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}}}} | |#default= | ||
{{#ifeq:{{NAMESPACE}}|{{{demo-ns|{{ns:6}}}}} | |||
| {{#switch:{{{demo-upload|{{PROTECTIONLEVEL:upload}}}}} | |||
|sysop= | |||
<div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-green.svg|20px|link=Commons:Page protection|This page is protected against reuploading.]]</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Upload protected files]]}}} }} | |||
|autoconfirmed= | |||
<div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-silver-medium.svg|20px|link=Commons:Page protection|This page is semi-protected against reuploading.]]</div> | |||
|#default=<div class="error">Error: This page is not currently protected. Please remove the protection template.</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }} | |||
}} | |||
| <div class="error">Error: This page is not currently protected. Please remove the protection template.</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }} | |||
}} | |||
}}<noinclude> | }}<noinclude> | ||
Línea 20: | Línea 33: | ||
---- | ---- | ||
=== Usage === | === Usage === | ||
General protection template to inform users a page is protected. (Note: This does not protect pages. Only | General protection template to inform users a page is protected. (Note: This does not protect pages. Only admins can do that.) | ||
*Adds | *Adds 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]]. | ||
Syntax: <nowiki>{{</nowiki>protected|''give reason here''}}. | Syntax: <nowiki>{{</nowiki>protected|''give reason here''}}. | ||
*If no reason is given the default is "to prevent vandalism." | *If no reason is given the default is "to prevent vandalism." | ||
Línea 28: | Línea 40: | ||
=== Examples === | === Examples === | ||
<nowiki>{{</nowiki>protected}} → {{protected|demo=sysop}} | <nowiki>{{</nowiki>protected}} → {{protected|demo-edit=sysop}} | ||
<nowiki>{{</nowiki>protected|I said so}} → {{protected|I said so|demo=sysop}} | <nowiki>{{</nowiki>protected|I said so}} → {{protected|I said so|demo-edit=sysop-edit}} | ||
<nowiki>{{</nowiki>protected|note=And you can change this too.}} → {{protected|note=And you can change this too.|demo=sysop}} | <nowiki>{{</nowiki>protected|note=And you can change this too.}} → {{protected|note=And you can change this too.|demo-edit=sysop}} | ||
=== See also === | === See also === | ||
*{{Tl| | *{{Tl|permprot}} - for high-risk templates that are indefinitely protected (use on talk page). | ||
*{{Tl|en main page}} - for images on the English Wikipedia's main page. | *{{Tl|en main page}} - for images on the English Wikipedia's main page. | ||
[[Category:Protection templates|{{PAGENAME}}]] | [[Category:Protection templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revisión del 20:29 23 ago 2010
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. Only admins can do that.)
- Adds 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.
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}} →
Error: This page is not currently protected. Please remove the protection template.
{{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
- {{permprot}}
- for high-risk templates that are indefinitely protected (use on talk page).
- {{en main page}}
- for images on the English Wikipedia's main page.