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
m rm test
imported>Galahad
m 125 revisiones importadas: Importando desde Wikidata
 
(No se muestran 36 ediciones intermedias de 17 usuarios)
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=COM:P|{{{{tSwitch|protected/text}}|img-text1}}]]</div>}}
   {{#ifeq:{{{icon}}}|no||<indicator name="protected">[[File:Full-protection-shackle-block.svg|20px|link={{LangSwitch|en=COM:P|de=Commons:Schutzrichtlinie|fr=Commons:Protection de page|ja=Commons:保護ページ}}|pt=Commons:Proteção de páginas}}|{{{{tSwitch|protected/text}}|img-text1}}]]</indicator>}}
   <table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
   <table class="protected" style="direction: {{dir|{{int:Lang}}}}; 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=COM:P|Protected]]</td>
   <td style="padding-right:4px; padding-left:4px;">[[File:Full-protection-shackle-block.svg|40px|link=COM:P|Protected]]</td>
   <td>'''{{{{tSwitch|protected/text}}|text1}} {{#if:{{{1|}}}|{{{{tSwitch|protected/text}}|reason|reason={{{1}}}}}|{{{{tSwitch|protected/text}}|default-reason}}}}'''<br /><span style="font-size:90%;">{{{note|{{{{tSwitch|protected/text}}|text2}} }}}</span></td>
   <td>'''{{{{tSwitch|protected/text}}|text1}} {{#if:{{{1|}}}|{{{{tSwitch|protected/text}}|reason|reason={{{1}}}}}|{{{{tSwitch|protected/text}}|default-reason}}}}'''<br /><span style="font-size:90%;">{{{note|{{{{tSwitch|protected/text}}|text2}} }}}</span></td>
   </tr>
   </tr>
   </table>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}
   </table>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}
| templateeditor=
<indicator name="protected">[[File:Template-protection-shackle-brackets 2.svg|20px|link={{LangSwitch|en=COM:P|de=Commons:Schutzrichtlinie|fr=Commons:Protection de page|ja=Commons:保護ページ}}|pt=Commons:Proteção de páginas}}||{{{{tSwitch|protected/text}}|img-text1}}]]</indicator>


| autoconfirmed=
| autoconfirmed=
   <div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-silver-medium.svg|20px|link=COM:P||{{{{tSwitch|protected/text}}|img-text2}}]]</div>
   <indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link={{LangSwitch|en=COM:P|de=Commons:Schutzrichtlinie|fr=Commons:Protection de page|ja=Commons:保護ページ}}|pt=Commons:Proteção de páginas}}||{{{{tSwitch|protected/text}}|img-text2}}]]</indicator>


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


     | sysop=
     | sysop=
       <div class="topicon" id="protected-icon" style="right:10px;">[[File:Padlock-green.svg|20px|link=COM:P||{{{{tSwitch|protected/text}}|img-text3}}]]</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Upload protected files]]}}} }}
       <indicator name="protected">[[File:Upload-protection-shackle.svg|20px|link={{LangSwitch|en=COM:P|de=Commons:Schutzrichtlinie|fr=Commons:Protection de page|ja=Commons:保護ページ}}|pt=Commons:Proteção de páginas}}||{{{{tSwitch|protected/text}}|img-text3}}]]</indicator>{{#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=COM:P||{{{{tSwitch|protected/text}}|img-text4}}]]</div>
       <indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link={{LangSwitch|en=COM:P|de=Commons:Schutzrichtlinie|fr=Commons:Protection de page|ja=Commons:保護ページ}}|pt=Commons:Proteção de páginas}}||{{{{tSwitch|protected/text}}|img-text4}}]]</indicator>


     | #default=
     | #default=
Línea 29: Línea 32:
   }}
   }}
}}<noinclude>
}}<noinclude>
 
{{documentation}}
 
----
__NOTOC__
=== 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: <nowiki>{{</nowiki>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 <code>note</code> 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.''
<nowiki>{{</nowiki>protected}} → {{protected|demo-edit=sysop|icon=no}}
 
<nowiki>{{</nowiki>protected|I said so}} → {{protected|I said so|demo-edit=sysop|icon=no}}
 
<nowiki>{{</nowiki>protected|note=And you can change this too.}} → {{protected|note=And you can change this too.|demo-edit=sysop|icon=no}}
 
=== Padlocks ===
* [[File:Padlock.svg|20px]] = full protection from editing.
* [[File:Padlock-silver.svg|20px]] = semi protection from editing or uploading.
* [[File:Padlock-green.svg|20px]] = full protection from uploading (but not editing).
 
=== See also ===
*{{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.
 
[[Category:Protection templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revisión actual - 06:11 29 jun 2020

[ver · editar · actualizar]
Documentación de plantilla
Aún no se han escrito las instrucciones sobre esta plantilla. Añádelas.