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
multilanguage links
m 52 revisions from en:Template:Pp-protected: Testing new import sources for jeremyb
Línea 1: Línea 1:
{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}}
<includeonly>{{pp-meta
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=full
  |#default=full<!--fallback value-->}}
|small={{{small|}}}
|demospace={{{demospace|}}}
|demolevel={{{demolevel|undefined}}}
|expiry={{{expiry|}}}
|dispute=no
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
|categories={{{categories|
{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
|semi
|autoconfirmed={{#switch: {{{demospace|{{NAMESPACE}}}}}
  | {{ns:2}}
  | {{ns:3}} = [[Category:Wikipedia semi-protected user and user talk pages|{{PAGENAME}}]]
  | {{ns:6}} = [[Category:Semi-protected images|{{PAGENAME}}]]
  | {{ns:4}}
  | {{ns:12}} = [[Category:Semi-protected project pages|{{PAGENAME}}]]
  | {{ns:100}} = [[Category:Semi-protected portals|{{PAGENAME}}]]
  | {{ns:10}} = [[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]
  | {{ns:14}} = [[Category:Wikipedia semi-protected categories|{{PAGENAME}}]]
  | #default = {{talk other|[[Category:Semi-protected talk pages|{{PAGENAME}}]]|[[Category:Wikipedia semi-protected pages|{{PAGENAME}}]]}}}}
|administrator
|full
|sysop={{#switch: {{{demospace|{{NAMESPACE}}}}}
  | {{ns:2}}
  | {{ns:3}} = [[Category:Wikipedia protected user and user talk pages|{{PAGENAME}}]]
  | {{ns:6}} = [[Category:Protected images|{{PAGENAME}}]]
  | {{ns:4}}
  | {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]
  | {{ns:10}} = [[Category:Wikipedia protected templates|{{PAGENAME}}]]
  | {{ns:14}} = [[Category:Wikipedia protected categories|{{PAGENAME}}]]
  | #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Wikipedia protected pages|{{PAGENAME}}]]}}}}}}}}}}}</includeonly><noinclude>
{{pp-protected|demospace=main|categories=no|reason=[[Lorem ipsum|Lorem ipsum dolor sit amet]]}}


| sysop=
{{template doc}}
  {{#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>}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
  <table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
  <tr>
  <td style="padding-right:4px; padding-left:4px;">[[File:Padlock.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>
  </tr>
  </table>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}
 
| autoconfirmed=
  <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>
 
| #default=
  {{#ifeq:{{NAMESPACE}}|{{{demo-ns|{{ns:6}}}}}
  | {{#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 22:20 25 nov 2012