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
Trying to suppress any output if parameter pagename is given and doesn't match the actual pagename
imported>Galahad
m 125 revisiones importadas: Importando desde Wikidata
 
(No se muestran 18 ediciones intermedias de 10 usuarios)
Línea 1: Línea 1:
<includeonly>
{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}}
{{#switch:{{pagename}} | | {{FULLPAGENAME}} =
 
{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}{{PROTECTIONLEVEL:create}}
| sysop=
|<div class="metadata topicon nopopups" id="protected-icon" style="display:none; {{LangDirSwitch|rtl=left|ltr=right}}:55px;">[[File:{{#if:{{PROTECTIONLEVEL:create}}
  {{#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>}}
  |Create protect.svg
  <table class="protected" style="direction: {{dir|{{int:Lang}}}}; background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
|{{#switch:{{PROTECTIONLEVEL:edit}}
  <tr>
  |autoconfirmed = Semi protect.svg
  <td style="padding-right:4px; padding-left:4px;">[[File:Full-protection-shackle-block.svg|40px|link=COM:P|Protected]]</td>
  |sysop        = {{#if:{{{expiry|}}}
  <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>
                  |Full protect.svg
  </tr>
                  |{{#ifeq:{{NAMESPACENUMBER}}|10
  </table>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}
                    |{{#ifeq:{{{permanent|}}}|no
 
                    |Full protect.svg
| templateeditor=
                    |Permanent protect.svg
  <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
| autoconfirmed=
                    |Permanent 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>
                    |Full protect.svg
 
                    }}
| #default=
                    }}
  {{#ifeq:{{NAMESPACE}}|{{{demo-ns|{{ns:6}}}}}
                  }}
  | {{#switch:{{{demo-upload|{{PROTECTIONLEVEL:upload}}}}}
   |#default      = {{#if:{{PROTECTIONLEVEL:move}}|Move protect.svg}}
 
    | 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}}
                                  |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
                                  }}
                  }}
}}]]</div>
|[[Category:Pages with incorrect protection templates]]
}}|#default=}}</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.