Template:Documentation/end box2
From Shadow of the Throne Wiki
								Revision as of 23:04, 13 November 2010 by Plastikspork (Talk) (Refactoring to reduce transclusion depth)
</div>{{#if:
 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: 
   |    
   | Template:Documentation/end box2/doc
   }}
 | yes
 }}{{
   #switch: Template
   | User
   | Template = yes
   }}
 }}
| | }} {{#if:none
 | none
 | [[File:{{#switch:
   | warning    = Cmbox deletion.png
   | editnotice = Imbox notice.png
   | system          
   | #default   = Imbox notice.png
   }}|40x40px|link=|alt=]]
}} | {{#if: {{#if:
|   |    
   | {{#if: {{#ifexist: 
   {{#if: 
   |    
   | Template:Documentation/end box2/doc
   }}
 | yes
 }}
     | 
       The above documentation is transcluded from [[{{#if: 
 | 
 | Template:Documentation/end box2/doc
 }}]]. ([{{fullurl:{{#if: 
 | 
 | Template:Documentation/end box2/doc
 }}|action=edit}} edit] | [{{fullurl:{{#if: 
 | 
 | Template:Documentation/end box2/doc
 }}|action=history}} history]) }} | {{{imageright}}} | 
| | warning | editnotice | system =
| #default =This message box is using an invalid "type=" parameter and needs fixing.
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Documentation/end box2]]
}} }}{{#if:
 {{#switch: Documentation/end box2
 | doc
 | testcases = strange
 }}
| [[Category:Wikipedia pages with strange ((documentation)) usage|Template:Main otherTemplate:Documentation/end box2]]
}}
{{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |#default=indef}}
 |move={{#ifeq:
     {{#switch:{{#ifeq:documentation/end box2/template|documentation/end box2/template|undefined|{{#ifeq:documentation/end box2|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:{{#ifeq:documentation/end box2/template|documentation/end box2/template|undefined|{{#ifeq:documentation/end box2|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |yes|no
   }}
|#default={{#if:
     {{#switch:{{#ifeq:documentation/end box2/template|documentation/end box2/template|undefined|{{#ifeq:documentation/end box2|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |{{#ifeq:{{#switch:
                |semi
                |autoconfirmed=autoconfirmed
                |administrator
                |full
                |sysop=sysop
                |#default=}}
        |{{#switch:{{#ifeq:documentation/end box2/template|documentation/end box2/template|undefined|{{#ifeq:documentation/end box2|sandbox|sysop|undefined}}}}
           |semi
           |autoconfirmed=autoconfirmed
           |administrator
           |full
           |sysop=sysop
           |undefined=
           |#default=}}
        |no|yes
      }}
  |no}}
}}|yes|{{#ifeq:yes|yes|
| Template:Mbox }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:template|file|[[category:{{#switch:
  |semi
  |autoconfirmed=semi-protected
  |administrator
  |full
  |sysop
  |#default=protected}} images|documentation/end box2]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch:
  |semi
  |autoconfirmed=Semi-protected
  |administrator
  |full
  |sysop
  |#default=Protected}} images|Documentation/end box2]]}}}}
