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
Fulfilling edit request by Ebraminio. Thanks for helping!
m Changed protection level for "Template:Protected": Widely used template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Línea 1: Línea 1:
{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}}
{{#switch:{{{pagename|empty}}}|empty|{{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||<div class="topicon" id="protected-icon" style="{{#ifeq:{{dir|{{int:Lang}}}}|rtl|left|right}}:10px;">[[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}}]]</div>}}
|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:Padlock.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
| autoconfirmed=
                    |Permanent protect.svg
  <div class="topicon" id="protected-icon" style="{{#ifeq:{{dir|{{int:Lang}}}}|rtl|left|right}}:10px;">[[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}}]]</div>
                    }}
                    |{{#ifeq:{{{permanent|}}}|yes
                    |Permanent protect.svg
                    |Full protect.svg
                    }}
                    }}
                  }}
   |#default      = {{#if:{{PROTECTIONLEVEL:move}}|Move protect.svg}}
   }}
}}<!--
-->|20px|link=Special:MyLanguage/{{{link|Wikidata:Page protection policy}}}|{{{text|This page {{#switch:{{PROTECTIONLEVEL:create}}
|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=}}<noinclude>


| #default=
{{template doc}}
  {{#ifeq:{{NAMESPACE}}|{{{demo-ns|{{ns:6}}}}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
  | {{#switch:{{{demo-upload|{{PROTECTIONLEVEL:upload}}}}}
 
    | sysop=
      <div class="topicon" id="protected-icon" style="{{#ifeq:{{dir|{{int:Lang}}}}|rtl|left|right}}:10px;">[[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}}]]</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Upload protected files]]}}} }}
 
    | autoconfirmed=
      <div class="topicon" id="protected-icon" style="{{#ifeq:{{dir|{{int:Lang}}}}|rtl|left|right}}:10px;">[[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}}]]</div>
 
    | #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>
{{documentation}}
</noinclude>
</noinclude>

Revisión del 12:18 17 dic 2013