Template:Ambox
{{#ifeq:{{{subst}}}|SUBST
|{{#if: |Template:Error }}
}}{{#ifeq:{{{small}}}|left
|
{{#switch:{{#if: |{{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }} {{#if:{{#if: |{{{smallimage}}} | }} | {{#if: |{{{smallimage}}} | }} | [[File:{{#switch: | speedy = Ambox speedy deletion.png | delete = Ambox deletion.png | content = Ambox content.png | style = Edit-clear.svg | move = Ambox move.png | protection = Ambox protection.png | notice | #default = Ambox notice.png }} | {{#switch:left | left = 20x20px | #default = 40x40px }} |link=|alt=]] }}{{#switch:left | left =| #default = | {{#if:
|{{{smalltext}}} |{{#if: |{{{issue}}} |{{{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]] }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }} {{#if: | | [[File:{{#switch: | speedy = Ambox speedy deletion.png | delete = Ambox deletion.png | content = Ambox content.png | style = Edit-clear.svg | move = Ambox move.png | protection = Ambox protection.png | notice | #default = Ambox notice.png }} | {{#switch: | left = 20x20px | #default = 40x40px }} |link=|alt=]] }}{{#switch: | left =| #default = | {{{issue}}} | {{#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]] }} }}{{#if:
{{#ifeq: | true | dontcat }}{{#ifeq: | no | dontcat }}{{#switch: ¬ | yes | ¬ = | #default = dontcat }}{{#switch: | no = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:Ambox|0|3}} | subsubpage | {{#if:{{#titleparts:Template:Ambox|0|2}} | subpage | basepage }} }} }}
| basepage =
| subpage = dontcat
| subsubpage = dontcat
}}
| only = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:Ambox|0|3}} | subsubpage | {{#if:{{#titleparts:Template:Ambox|0|2}} | subpage | basepage }} }} }}
| basepage = dontcat
| subpage = | subsubpage = }}
}}
| |
{{#switch: {{#ifeq: | false | | {{#ifeq: | yes | | {{#ifeq: | yes | | {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox }}|0|2}} | | }}
}}
}} }} }} | hide = | #default = {{#ifeq: h0#384!5nea+w9 | {{#if: |{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}}
| {{#switch: {{#if: | {{{demospace}}} | {{#if: | {{#ifeq:| | talk | }} | {{#ifeq:template|template talk | talk | template }} }} }}
| main | = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | book = | other | #default =
}}
| {{#iferror: {{#expr: 1 + {{#switch: {{#if: | {{{demospace}}} | {{#if: | {{#ifeq:| | talk | }} | {{#ifeq:template|template talk | talk | template }} }} }}
| main | = {{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}} | talk = | user = | wikipedia = | file | image = | mediawiki = | template = {{#switch:Template:Ambox
|Template:Ambox = |Template: = }}
| help = | category = | portal = | book = | other | #default =
}} }} | {{#switch:
{{#if: | {{{demospace}}} | {{#if: | {{#ifeq:| | talk | }} | {{#ifeq:template|template talk | talk | template }} }} }}
| main | = {{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}}{{#if:
|{{#if: |{{#ifexist:Category: from | | }} |[[Category:]] }}
}}{{#if:
|[[Category:]]
}} | talk = | user = | wikipedia = | file | image = | mediawiki = | template = {{#switch:Template:Ambox
|Template:Ambox = |Template: = }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}