Template:Protected/sandbox: Difference between revisions
Template page
More actions
Use {{Autotranslate|base=Template:Protected/i18n}} |
Add support for Cascading Protection |
||
| Line 1: | Line 1: | ||
<onlyinclude>{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}} | <onlyinclude><includeonly>{{#switch:{{{demo-edit|{{#if:{{CASCADINGSOURCES}}|cascade-sysop|{{PROTECTIONLEVEL:edit}}}}}}} | ||
| cascade-sysop= | |||
{{#ifeq:{{{icon}}}|no||<indicator name="protected">[[File:Cascade-protection-shackle-double-chain-link.svg|20px|link=Special:MyLanguage/COM:CASCADE|{{ {{tSwitch|protected/text}}|img-text1}}]]</indicator>}}<!-- | |||
-->{{Autotranslate | |||
<!-- Autotranslate parameters: --> | |||
| base = Template:Protected/i18n | |||
| lang = {{int:lang}} | |||
<!-- Template parameters: --> | |||
| protlev = {{{demo-edit|cascade-sysop}}} | |||
| reason = {{{1|}}} | |||
| note = {{{note|}}} | |||
}}<!-- | |||
-->{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }} | |||
| sysop= | | sysop= | ||
| Line 35: | Line 48: | ||
|{{ifsandbox||<div class="error">{{ {{tSwitch|protected/text}}|error-text}}</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }}}} | |{{ifsandbox||<div class="error">{{ {{tSwitch|protected/text}}|error-text}}</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }}}} | ||
}} | }} | ||
}}</onlyinclude> | }}</includeonly></onlyinclude> | ||
{{Documentation/sandbox}} | {{Documentation/sandbox}} | ||
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | ||