Template:Ambox
{{#switch: | left =
{{#switch:{{#if: | {{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }} {{#if:{{#if: | {{{smallimage}}} | }} | {{#if: | {{{smallimage}}} | }} | [[Image:{{#switch: | speedy = Ambox speedy deletion.png | delete = Ambox deletion.png | content = Ambox content.png | style = Ambox style.png | move = Ambox move.png | protection = Ambox protection.png | notice | #default = Ambox notice.png }} | {{#switch:left | left = 20x20px | #default = 40x40px }} ]] }}{{#switch:left | left =| #default = | {{#if:
| {{{smalltext}}} | {{{text}}}}} | {{#switch:left
| left = {{#if: | {{{smallimageright}}} | }}| #default = {{#if:
}}| {{{smallimageright}}} |}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]]
}}{{#switch:{{#if:
| {{{smallimage}}} | }}
| blank = [[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]] }} | #default =
{{#switch: | blank | none =| #default =
}}{{#if: | {{#ifeq:|none
|| }} }}
{{
#switch: | left =| #default = }} {{#if: | | [[Image:{{#switch: | speedy = Ambox speedy deletion.png | delete = Ambox deletion.png | content = Ambox content.png | style = Ambox style.png | move = Ambox move.png | protection = Ambox protection.png | notice | #default = Ambox notice.png }} | {{#switch: | left = 20x20px | #default = 40x40px }} ]] }}{{#switch: | left =| #default = | {{{text}}} | {{#switch:
| left =| #default = |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
[[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]]
}}{{#switch: | blank = [[Category:Wikipedia message box parameter needs fixing|Template:Main otherTemplate:Ambox]] }} }}
{{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
|semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |move={{#ifeq: {{#switch:{{#ifeq:ambox/template|ambox/template|undefined|{{#ifeq:ambox|sandbox|sysop|undefined}}}} |semi |autoconfirmed=autoconfirmed |administrator |full |sysop=sysop |undefined= |#default=}} |sysop|yes|no }} |create={{#if: {{#switch:{{#ifeq:ambox/template|ambox/template|undefined|{{#ifeq:ambox|sandbox|sysop|undefined}}}} |semi |autoconfirmed=autoconfirmed |administrator |full |sysop=sysop |undefined= |#default=}} |yes|no }}
|#default={{#if:
{{#switch:{{#ifeq:ambox/template|ambox/template|undefined|{{#ifeq:ambox|sandbox|sysop|undefined}}}} |semi |autoconfirmed=autoconfirmed |administrator |full |sysop=sysop |undefined= |#default=}} |{{#ifeq:{{#switch: |semi |autoconfirmed=autoconfirmed |administrator |full |sysop=sysop |#default=}} |{{#switch:{{#ifeq:ambox/template|ambox/template|undefined|{{#ifeq:ambox|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|ambox]]}}|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|Ambox]]}}}}
||
|{{#ifexist: {{#switch: Ambox
|sandbox|testcases={{ #rel2abs: ../doc }}
|#default=Template:Ambox/doc
}}
|[[{{fullurl:{{#switch: Ambox |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}}|action=edit}} edit]] [[[:Template:Purge]]]
|[[{{fullurl:{{#switch: Ambox |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}}|action=edit&preload=Template:Documentation/preload}} create]]
}}}} {{#if:|{{{heading}}}|{{#ifeq:Template|Template|File:Template-info.svg Template documentation|Documentation}}}}
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}}
|This documentation is transcluded from [[{{#switch: Ambox |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}}]]. ([{{fullurl:{{#switch: Ambox
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}}|action=edit}} edit] | [{{fullurl:{{#switch: Ambox
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}}|action=history}} history])
}}{{#switch: Ambox |sandbox|testcases= |#default= {{#switch: Template |Template |User= {{#ifexist: Template:Ambox/sandbox |This template has a sandbox ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit]) {{#ifexist: Template:Ambox/testcases |and testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])}} for editors to experiment. |{{#ifexist: Template:Ambox/testcases |This template has testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit]) for editors to experiment.}} }}}}}}
{{#if:|{{{content}}}|{{#ifexist:{{#switch: Ambox
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}} | {{ {{#switch: Ambox
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Ambox/doc
}} }} }}}}