Template:Protected/sandbox: Difference between revisions
Template page
More actions
Add `box` parameter to always show the edit protection message box |
Always show the edit protection message box when `reason` or `note` is provided |
||
| Line 28: | Line 28: | ||
| templateeditor= | | templateeditor= | ||
{{#ifexpr:{{yesno|{{{box|}}}| | {{#ifexpr:{{#if:{{{1|}}}{{{note|}}}{{yesno|{{{box|}}}}}|1|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|}}}}}|<!-- | -->{{#if:{{{1|}}}{{{note|}}}{{yesno|{{{box|}}}}}|<!-- | ||
-->{{Autotranslate | -->{{Autotranslate | ||
<!-- Autotranslate parameters: --> | <!-- Autotranslate parameters: --> | ||
| Line 42: | Line 42: | ||
| autoconfirmed= | | autoconfirmed= | ||
{{#ifexpr:{{yesno|{{{box|}}}| | {{#ifexpr:{{#if:{{{1|}}}{{{note|}}}{{yesno|{{{box|}}}}}|1|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|}}}}}|<!-- | -->{{#if:{{{1|}}}{{{note|}}}{{yesno|{{{box|}}}}}|<!-- | ||
-->{{Autotranslate | -->{{Autotranslate | ||
<!-- Autotranslate parameters: --> | <!-- Autotranslate parameters: --> | ||