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
Create sandbox version of {{protected}}
 
Use <onlyinclude> and {{subst:InitDoc}}
Line 1: Line 1:
{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}}
<onlyinclude>{{#switch:{{{demo-edit|{{PROTECTIONLEVEL:edit}}}}}


| sysop=
| sysop=
   {{#ifeq:{{{icon}}}|no||<indicator name="protected">[[File:Full-protection-shackle-block.svg|20px|link=Special:MyLanguage/Commons:Protection policy|{{{{tSwitch|protected/text}}|img-text1}}]]</indicator>}}
   {{#ifeq:{{{icon}}}|no||<indicator name="protected">[[File:Full-protection-shackle-block.svg|20px|link=Special:MyLanguage/Commons:Protection policy|{{ {{tSwitch|protected/text}}|img-text1}}]]</indicator>}}
   <table class="protected" style="direction: {{dir|{{int:Lang}}}}; background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
   <table class="protected" style="direction: {{dir|{{int:Lang}}}}; background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
   <tr>
   <tr>
   <td style="padding-right:4px; padding-left:4px;">[[File:Full-protection-shackle-block.svg|40px|link=COM:P|Protected]]</td>
   <td style="padding-right:4px; padding-left:4px;">[[File:Full-protection-shackle-block.svg|40px|link=COM:P|Protected]]</td>
   <td>'''{{{{tSwitch|protected/text}}|text1}} {{#if:{{{1|}}}|{{{{tSwitch|protected/text}}|reason|reason={{{1}}}}}|{{{{tSwitch|protected/text}}|default-reason}}}}'''<br /><span style="font-size:90%;">{{{note|{{{{tSwitch|protected/text}}|text2}} }}}</span></td>
   <td>'''{{ {{tSwitch|protected/text}}|text1}} {{#if:{{{1|}}}|{{ {{tSwitch|protected/text}}|reason|reason={{{1}}}}}|{{ {{tSwitch|protected/text}}|default-reason}}}}'''<br /><span style="font-size:90%;">{{{note|{{ {{tSwitch|protected/text}}|text2}} }}}</span></td>
   </tr>
   </tr>
   </table>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}
   </table>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:6}}=[[Category:Protected files]]|{{ns:2}}|{{ns:3}}|{{ns:10}}=|[[Category:Protected pages]]}} }}} }}


| templateeditor=
| templateeditor=
  <indicator name="protected">[[File:Template-protection-shackle-brackets 2.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{{{tSwitch|protected/text}}|img-text1}}]]</indicator>
  <indicator name="protected">[[File:Template-protection-shackle-brackets 2.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{ {{tSwitch|protected/text}}|img-text1}}]]</indicator>


| autoconfirmed=
| autoconfirmed=
   <indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{{{tSwitch|protected/text}}|img-text2}}]]</indicator>
   <indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{ {{tSwitch|protected/text}}|img-text2}}]]</indicator>


| #default=
| #default=
Line 21: Line 21:


     | sysop=
     | sysop=
       <indicator name="protected">[[File:Upload-protection-shackle.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{{{tSwitch|protected/text}}|img-text3}}]]</indicator>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Upload protected files]]}}} }}
       <indicator name="protected">[[File:Upload-protection-shackle.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{ {{tSwitch|protected/text}}|img-text3}}]]</indicator>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Upload protected files]]}}} }}


     | autoconfirmed=
     | autoconfirmed=
       <indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{{{tSwitch|protected/text}}|img-text4}}]]</indicator>
       <indicator name="protected">[[File:Semi-protection-shackle.svg|20px|link=Special:MyLanguage/Commons:Protection policy||{{ {{tSwitch|protected/text}}|img-text4}}]]</indicator>


     | #default={{ifsandbox||
     | #default={{ifsandbox||
       <div class="error">{{{{tSwitch|protected/text}}|error-text}}</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }}}}
       <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]]}}} }}}}
   |{{ifsandbox||<div class="error">{{ {{tSwitch|protected/text}}|error-text}}</div>{{#if:{{{demo-edit|}}}{{{demo-upload|}}}||{{{category|[[Category:Unprotected pages using protection templates]]}}} }}}}
   }}
   }}
}}<noinclude>
}}</onlyinclude>
{{documentation}}
{{Documentation/sandbox}}
</noinclude>
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->

Revision as of 12:56, 21 August 2021

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