Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Protected/sandbox: Difference between revisions

Template page
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=
   {{#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>}}<!--
   {{#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=
   {{#ifeq:{{{icon}}}|no||<indicator name="protected">[[File:Full-protection-shackle-block.svg|20px|link=Special:MyLanguage/Commons:FULL|{{ {{tSwitch|protected/text}}|img-text1}}]]</indicator>}}<!--
   {{#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=
<indicator name="protected">[[File:Template-protection-shackle-brackets 2.svg|20px|link=Special:MyLanguage/Commons:TP|{{ {{tSwitch|protected/text}}|img-text1}}]]</indicator>
  {{#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/Commons:SEMI|{{ {{tSwitch|protected/text}}|img-text2}}]]</indicator>
   {{#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=

Revision as of 16:53, 21 August 2021

Cookies help us deliver our services. By using our services, you agree to our use of cookies.