Menú alternativo
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «Plantilla:Protected»

De Wikimedia Small Projects
better doc
m m
Línea 2: Línea 2:


| sysop=
| sysop=
   {{#ifeq:{{{icon}}}|no||<div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock.svg|20px|link=Commons:Page protection|This page is protected against editing.]]</div>}}
   {{#ifeq:{{{icon}}}|no||<div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock.svg|20px|link=COM:P|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|link=Commons:Page protection|Protected]]</td>
   <td style="padding-right:4px; padding-left:4px;">[[File:Padlock.svg|40px|link=COM:P|Protected]]</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 [[COM:AN/P|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 [[COM:AN/P|request unprotection]].}} }} }}}</span></td>
   </tr>
   </tr>
   </table><includeonly>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}</includeonly>
   </table>{{#if:{{{demo-edit|}}}{{{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="right:10px;">[[File:Padlock-silver-medium.svg|20px|link=Commons:Page protection|This page is semi-protected against editing.]]</div>
   <div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-silver-medium.svg|20px|link=COM:P|This page is semi-protected against editing.]]</div>


| #default=
| #default=
Línea 18: Línea 18:


     | sysop=
     | 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]]}}} }}
       <div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-green.svg|20px|link=COM:P|This page is protected against reuploading.]]</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Upload protected files]]}}} }}


     | autoconfirmed=
     | autoconfirmed=
       <div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-silver.svg|20px|link=Commons:Page protection|This page is semi-protected against reuploading.]]</div>
       <div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-silver.svg|20px|link=COM:P|This page is semi-protected against reuploading.]]</div>


     | #default=
     | #default=

Revisión del 22:26 23 ago 2010

Error: This page is not currently protected. Please remove the protection template.



Usage

General protection template to inform users a page is protected. (Note: This does not protect pages. Only admins can do that.)

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

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}} →

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}} →

Protected 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.}} →

Protected This Plantilla:Namespace has been protected from editing to prevent vandalism.
And you can change this too.

Padlocks

  • = full protection from editing.
  • = semi protection from editing or uploading.
  • = full protection from uploading (but not editing).

See also

- for high-risk templates that are indefinitely protected (use on talk page).
- for images on the English Wikipedia's main page.