Template:Protected/sandbox: Difference between revisions
Template page
More actions
Add support for separate `upload` and `edit` protection icons |
Add `box` parameter to always show the edit protection message box |
||
| Line 2: | Line 2: | ||
| cascade-sysop= | | cascade-sysop= | ||
{{# | {{#switch:{{lc:{{{icon|}}}}}|no|n|0=|#default=<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 | ||
<!-- Autotranslate parameters: --> | <!-- Autotranslate parameters: --> | ||
| Line 15: | Line 15: | ||
| sysop= | | sysop= | ||
{{# | {{#switch:{{lc:{{{icon|}}}}}|no|n|0=|#default=<indicator name="protected">[[File:Full-protection-shackle-block.svg|20px|link=Special:MyLanguage/COM:FULL|{{ {{tSwitch|protected/text}}|img-text1}}]]</indicator>}}<!-- | ||
-->{{Autotranslate | -->{{Autotranslate | ||
<!-- Autotranslate parameters: --> | <!-- Autotranslate parameters: --> | ||
| Line 28: | Line 28: | ||
| templateeditor= | | templateeditor= | ||
{{#ifexpr:{{yesno|{{{box|}}}|yes=1|no=0}}and{{#switch:{{lc:{{{icon|}}}}}|no|n|0=1|#default=0}}||<indicator name="protected">[[File:Template-protection-shackle-brackets 2.svg|20px|link=Special:MyLanguage/COM:TP|{{ {{tSwitch|protected/text}}|img-text1}}]]</indicator>}}<!-- | |||
-->{{#if:{{yesno|{{{box|}}}}}|<!-- | |||
-->{{Autotranslate | |||
<!-- Autotranslate parameters: --> | |||
| base = Template:Protected/i18n | |||
| lang = {{int:lang}} | |||
<!-- Template parameters: --> | |||
| protlev = {{{demo-edit|templateeditor}}} | |||
| reason = {{{1|}}} | |||
| note = {{{note|}}} | |||
}}<!-- | |||
-->}} | |||
| autoconfirmed= | | autoconfirmed= | ||
<indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link=Special:MyLanguage/ | {{#ifexpr:{{yesno|{{{box|}}}|yes=1|no=0}}and{{#switch:{{lc:{{{icon|}}}}}|no|n|0=1|#default=0}}||<indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link=Special:MyLanguage/COM:SEMI|{{ {{tSwitch|protected/text}}|img-text2}}]]</indicator>}}<!-- | ||
-->{{#if:{{yesno|{{{box|}}}}}|<!-- | |||
-->{{Autotranslate | |||
<!-- Autotranslate parameters: --> | |||
| base = Template:Protected/i18n | |||
| lang = {{int:lang}} | |||
<!-- Template parameters: --> | |||
| protlev = {{{demo-edit|autoconfirmed}}} | |||
| reason = {{{1|}}} | |||
| note = {{{note|}}} | |||
}}<!-- | |||
-->}} | |||
| #default= | | #default= | ||