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
making this template way simpler to use, by just automatically displaying the proper topicon. Pp-meta isn't really necessary on a medium-sized wiki like this
imported>Galahad
m 125 revisiones importadas: Importando desde Wikidata
 
(No se muestran 20 ediciones intermedias de 10 usuarios)
Línea 1: Línea 1:
<includeonly>
{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}}
{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}{{PROTECTIONLEVEL:create}}
 
|<div class="metadata topicon nopopups" id="protected-icon" style="display:none; {{LangDirSwitch|rtl=left|ltr=right}}:55px;">[[File:{{#if:{{PROTECTIONLEVEL:create}}
| sysop=
  |Create protect.svg
  {{#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>}}
|{{#switch:{{PROTECTIONLEVEL:edit}}
  <table class="protected" style="direction: {{dir|{{int:Lang}}}}; background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
  |autoconfirmed = Semi protect.svg
  <tr>
  |sysop        = {{#if:{{{expiry|}}}
  <td style="padding-right:4px; padding-left:4px;">[[File:Full-protection-shackle-block.svg|40px|link=COM:P|Protected]]</td>
                  |Full protect.svg
  <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>
                  |{{#ifeq:{{NAMESPACENUMBER}}|10
  </tr>
                    |{{#ifeq:{{{permanent|}}}|no
  </table>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}
                    |Full protect.svg
 
                    |Permanent protect.svg
| 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>
                    |{{#ifeq:{{{permanent|}}}|yes
 
                    |Permanent protect.svg
| autoconfirmed=
                    |Full protect.svg
  <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=
                  }}
  {{#ifeq:{{NAMESPACE}}|{{{demo-ns|{{ns:6}}}}}
   |#default      = {{#if:{{PROTECTIONLEVEL:move}}|Move protect.svg}}
  | {{#switch:{{{demo-upload|{{PROTECTIONLEVEL:upload}}}}}
 
    | sysop=
      <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=
      <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=
      <div class="error">{{{{tSwitch|protected/text}}|error-text}}</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }}
    }}
   | <div class="error">{{{{tSwitch|protected/text}}|error-text}}</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }}
   }}
   }}
}}<!--
}}<noinclude>
-->|20px|link={{{link|Wikidata:Page protection policy}}}|{{{text|This page {{#switch:{{PROTECTIONLEVEL:create}}
{{documentation}}
|autoconfirmed = can only be created by autoconfirmed users
|sysop        = can only be created by administrators
|#default      = {{#switch:{{PROTECTIONLEVEL:edit}}
                  |autoconfirmed = can only be edited by autoconfirmed users
                  |sysop        = can only be edited by administrators
                  |#default      = {{#switch:{{PROTECTIONLEVEL:move}}
                                  |autconfirmed = can only be moved by autoconfirmed users
                                  |sysop        = can only be moved by administrators
                                  }}
                  }}
}}{{#if:{{{expiry|}}}|<nowiki> </nowiki>until {{#time:F j, Y|{{{expiry}}}}}}}.}}}<!--
-->|alt=Page {{#switch:{{PROTECTIONLEVEL:create}}
|autoconfirmed = semi-protected from being created
|sysop        = fully protected from being created
|#default      = {{#switch:{{PROTECTIONLEVEL:edit}}
                  |autoconfirmed = semi-protected from editing
                  |sysop        = {{#if:{{{expiry|}}}
                                  |fully protected from editing
                                  |{{#ifeq:{{NAMESPACENUMBER}}|10
                                    |{{#ifeq:{{{permanent|}}}|no
                                    |fully protected from editing
                                    |indefinitely protected from editing
                                    }}
                                    |{{#ifeq:{{{permanent|}}}|yes
                                    |indefinitely protected from editing
                                    |fully protected from editing
                                    }}
                                    }}
                                  }}
                  |#default      = {{#switch:{{PROTECTIONLEVEL:move}}
                                  |autoconfirmed = semi-protected from being moved
                                  |sysop        = fully protected from being moved
                                  }}
                  }}
}}]]</div>
|[[Category:Pages with incorrect protection templates]]
}}</includeonly><noinclude>
 
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</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.