Más acciones
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> | <includeonly> | ||
{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}{{PROTECTIONLEVEL:create}} | |||
|<div class="metadata topicon nopopups" id="protected-icon" style="display:none; {{LangDirSwitch|rtl=left|ltr=right}}:55px;">[[File:{{#if:{{PROTECTIONLEVEL:create}} | |||
|Create protect.svg | |||
|{{#switch:{{PROTECTIONLEVEL:edit}} | |||
|autoconfirmed = Semi protect.svg | |||
|sysop = {{#if:{{{expiry|}}} | |||
|Full protect.svg | |||
|{{#ifeq:{{NAMESPACENUMBER}}|10 | |||
| | |{{#ifeq:{{{permanent|}}}|no | ||
| | |Full protect.svg | ||
| | |Permanent protect.svg | ||
| | }} | ||
| | |{{#ifeq:{{{permanent|}}}|yes | ||
| | |Permanent protect.svg | ||
| | |Full protect.svg | ||
{{#switch: | }} | ||
| | }} | ||
| | }} | ||
|#default = {{#if:{{PROTECTIONLEVEL:move}}|Move protect.svg}} | |||
}} | |||
}}<!-- | |||
-->|20px|link={{{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}} | |||
|autconfirmed = 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]] | |||
}}</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> |