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 PinkAmpersand moved page Template:Pp-protected to Template:Protected: simpler, more intuitive title
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
Línea 1: Línea 1:
<includeonly>{{pp-meta
<includeonly>
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}{{PROTECTIONLEVEL:create}}
  |semi
|<div class="metadata topicon nopopups" id="protected-icon" style="display:none; {{LangDirSwitch|rtl=left|ltr=right}}:55px;">[[File:{{#if:{{PROTECTIONLEVEL:create}}
  |autoconfirmed=semi
|Create protect.svg
  |administrator
|{{#switch:{{PROTECTIONLEVEL:edit}}
  |full
  |autoconfirmed = Semi protect.svg
  |sysop=full
  |sysop        = {{#if:{{{expiry|}}}
  |#default=full<!--fallback value-->}}
                  |Full protect.svg
|small={{{small|yes}}}
                  |{{#ifeq:{{NAMESPACENUMBER}}|10
|demospace={{{demospace|}}}
                    |{{#ifeq:{{{permanent|}}}|no
|demolevel={{{demolevel|undefined}}}
                    |Full protect.svg
|expiry={{{expiry|}}}
                    |Permanent protect.svg
|dispute=no
                    }}
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
                    |{{#ifeq:{{{permanent|}}}|yes
|icon-reason={{#if:{{{icon-reason|{{{reason|}}}}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
                    |Permanent protect.svg
|categories={{{categories|
                    |Full protect.svg
{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
                    }}
  |semi
                    }}
  |autoconfirmed={{#switch: {{{demospace|{{NAMESPACE}}}}}
                  }}
  | {{ns:2}}
  |#default      = {{#if:{{PROTECTIONLEVEL:move}}|Move protect.svg}}
  | {{ns:3}} = [[Category:Semi-protected user and user talk pages|{{PAGENAME}}]]
  }}
  | {{ns:6}} = [[Category:Semi-protected images|{{PAGENAME}}]]
}}<!--
  | {{ns:4}}
-->|20px|link={{{link|Wikidata:Page protection policy}}}|{{{text|This page {{#switch:{{PROTECTIONLEVEL:create}}
  | {{ns:12}} = [[Category:Semi-protected project pages|{{PAGENAME}}]]
  |autoconfirmed = can only be created by autoconfirmed users
  | {{ns:10}} = [[Category:Semi-protected templates|{{PAGENAME}}]]
|sysop        = can only be created by administrators
  | {{ns:14}} = [[Category:Semi-protected categories|{{PAGENAME}}]]
  |#default      = {{#switch:{{PROTECTIONLEVEL:edit}}
  | #default = {{talk other|[[Category:Semi-protected talk pages|{{PAGENAME}}]]|[[Category:Semi-protected pages|{{PAGENAME}}]]}}}}
                  |autoconfirmed = can only be edited by autoconfirmed users
|administrator
                  |sysop        = can only be edited by administrators
|full
                  |#default      = {{#switch:{{PROTECTIONLEVEL:move}}
|sysop={{#switch: {{{demospace|{{NAMESPACE}}}}}
                                  |autconfirmed = can only be moved by autoconfirmed users
  | {{ns:2}}
                                  |sysop        = can only be moved by administrators
  | {{ns:3}} = [[Category:Protected user and user talk pages|{{PAGENAME}}]]
                                  }}
  | {{ns:6}} = [[Category:Protected images|{{PAGENAME}}]]
                  }}
  | {{ns:4}}
}}{{#if:{{{expiry|}}}|<nowiki> </nowiki>until {{#time:F j, Y|{{{expiry}}}}}}}.}}}<!--
  | {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]
-->|alt=Page {{#switch:{{PROTECTIONLEVEL:create}}
  | {{ns:10}} = [[Category:Protected templates|{{PAGENAME}}]]
|autoconfirmed = semi-protected from being created
  | {{ns:14}} = [[Category:Protected categories|{{PAGENAME}}]]
|sysop        = fully protected from being created
  | #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Protected pages|{{PAGENAME}}]]}}}}}}}}}}}</includeonly><noinclude>
|#default     = {{#switch:{{PROTECTIONLEVEL:edit}}
{{pp-protected|demospace=main|categories=no|reason=Lorem ipsum dolor sit amet}}
                  |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}}
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revisión del 20:03 11 abr 2013