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 use <indicator>
m Changed protection level for "Template:Protected": yet cascading protection, but precaution ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Línea 1: Línea 1:
<onlyinclude>{{#switch:{{{pagename|empty}}}|empty|{{FULLPAGENAME}}|=
{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}}
{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}{{PROTECTIONLEVEL:create}}
 
|<span><indicator name="protected">[[File:{{#if:{{PROTECTIONLEVEL:create}}
| sysop=
|Create protect.svg
  {{#ifeq:{{{icon}}}|no||<indicator name="protected">[[File:Padlock.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:Padlock.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
| autoconfirmed=
                    }}
  <indicator name="protected">[[File:Padlock-silver-medium.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>
                    |{{#ifeq:{{{permanent|}}}|yes
 
                    |Permanent protect.svg
| #default=
                    |Full protect.svg
  {{#ifeq:{{NAMESPACE}}|{{{demo-ns|{{ns:6}}}}}
                    }}
  | {{#switch:{{{demo-upload|{{PROTECTIONLEVEL:upload}}}}}
                    }}
 
                  }}
    | sysop=
   |#default      = {{#if:{{PROTECTIONLEVEL:move}}|Move protect.svg}}
      <indicator name="protected">[[File:Padlock-green.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:Padlock-silver.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=Special:MyLanguage/{{{link|Wikidata:Page protection policy}}}|{{{text|This page {{#switch:{{PROTECTIONLEVEL:create}}
{{documentation}}
|autoconfirmed = can only be created by autoconfirmed users
</noinclude>
|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}}
                                  |autoconfirmed = 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
                                  }}
                  }}
}}]]</indicator></span>
|[[Category:Pages with incorrect protection templates]]
}}|#default=}}</onlyinclude>
 
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->

Revisión del 13:42 7 nov 2015

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