Difference between revisions of "Template:Ambox/doc"
m (1 revision) |
(No difference)
|
Latest revision as of 12:35, 14 June 2012
{{#ifeq: doc | doc
|
{{
#ifeq: show | show
| {{
{{#switch:
{{#if:
|
| {{#if:
|
{{#ifeq:|
| talk
|
}}
|
{{#ifeq:template|template talk
| talk
| template
}}
}}
}}
| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox
}}
| type = notice
| image = 40px
| imageright =
| class =
| style =
| textstyle =
| text = This is a documentation subpage for Template:Ambox.
It contains usage information, categories, interlanguage links and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template |template page|article}}}}}}}}.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
}}
}}{{
#if:
|
| {{#ifexist:Template:Ambox|[[Category:{{
#switch: Template
| Template = Template
| User = User
| #default = Wikipedia
}} documentation pages]]|}}
}}
| }} {{#ifeq:|yes
|
{{#ifeq:{{#if:| {{{smallimage}}} | }}|none | | }}{{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none
||
}}
}}
{{#if:{{#if:| {{{smallimage}}} | }}
| {{#if:| {{{smallimage}}} | }}
| [[Image:{{#switch:content
| speedy = Imbox speedy deletion.png
| delete = Imbox deletion.png
| content = Imbox content.png
| style = Edit-clear.svg
| move = Imbox move.png
| protection = Imbox protection.png
| notice
| #default = Imbox notice.png
}} | {{#ifeq:yes|yes
| 30x30px
| 40x40px
}}|link=|alt=]]
}} | {{#if:| {{{smalltext}}} | This template is used on {{#if: 1,000,000+ | 1,000,000+ |a very large number of}} pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in the template's [[{{#ifeq:doc|doc| Template:Ambox | Template:Ambox/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ambox | Template:Ambox/doc }}/testcases|/testcases]] subpages, or in your own user space. The tested changes can then be added in one single edit to the template. Please consider discussing any changes on {{#if: Wikipedia talk:Article message boxes |Wikipedia talk:Article message boxes |the [[{{#ifeq:doc|doc| Template talk:Ambox | Template talk:Ambox/doc }}|talk page]]}} before implementing them. }} |
{{#if: | {{{smallimageright}}} | }} |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}
|
{{#ifeq:|none | | }}{{#if: | {{#ifeq:|none
||
}}
}}
{{#if:
|
| [[Image:{{#switch:content
| speedy = Imbox speedy deletion.png
| delete = Imbox deletion.png
| content = Imbox content.png
| style = Edit-clear.svg
| move = Imbox move.png
| protection = Imbox protection.png
| notice
| #default = Imbox notice.png
}} | {{#ifeq:|yes
| 30x30px
| 40x40px
}}|link=|alt=]]
}} | This template is used on {{#if: 1,000,000+ | 1,000,000+ |a very large number of}} pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in the template's [[{{#ifeq:doc|doc| Template:Ambox | Template:Ambox/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ambox | Template:Ambox/doc }}/testcases|/testcases]] subpages, or in your own user space. The tested changes can then be added in one single edit to the template. Please consider discussing any changes on {{#if: Wikipedia talk:Article message boxes |Wikipedia talk:Article message boxes |the [[{{#ifeq:doc|doc| Template talk:Ambox | Template talk:Ambox/doc }}|talk page]]}} before implementing them. |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}} }}
{{#if: | }}{{#if: | }}{{#if: | }}{{#if: Message boxmeta-templates| }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t)| }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#switch: |none |off= |#default=}}
| {{{topimage}}}{{#if: |
{{{topcaption}}} }} |
| {{{pretitle}}} |
| Message box meta-templates |
|---|
| {{{image}}}{{#if: |
{{{caption}}} }} |
| {{{above}}} |
| {{{heading1}}} |
|
|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} (t) |
| {{{heading2}}} |
| {{{content2}}} |
| {{{heading3}}} |
| {{{content3}}} |
| {{{heading4}}} |
| {{{heading5}}} |
| {{{content5}}} |
| {{{heading6}}} |
| {{{content6}}} |
| {{{heading7}}} |
| {{{content7}}} |
| {{{heading8}}} |
| {{{content8}}} |
| {{{heading9}}} |
| {{{content9}}} |
| {{{heading10}}} |
| {{{content10}}} |
| {{{heading11}}} |
| {{{content11}}} |
| {{{heading12}}} |
| {{{content12}}} |
| {{{heading13}}} |
| {{{content13}}} |
| {{{heading14}}} |
| {{{content14}}} |
| {{{heading15}}} |
| {{{content15}}} |
| {{{heading16}}} |
| {{{content16}}} |
| {{{heading17}}} |
| {{{content17}}} |
| {{{heading18}}} |
| {{{content18}}} |
| {{{heading19}}} |
| {{{content19}}} |
| {{{heading20}}} |
| {{{content20}}} |
| {{{heading21}}} |
| {{{content21}}} |
| {{{heading22}}} |
| {{{content22}}} |
| {{{heading23}}} |
| {{{content23}}} |
| {{{heading24}}} |
| {{{content24}}} |
| {{{heading25}}} |
| {{{content25}}} |
| {{{heading26}}} |
| {{{content26}}} |
| {{{heading27}}} |
| {{{content27}}} |
| {{{heading28}}} |
| {{{content28}}} |
| {{{heading29}}} |
| {{{content29}}} |
| {{{heading30}}} |
| {{{content30}}} |
| {{{heading31}}} |
| {{{content31}}} |
| {{{heading32}}} |
| {{{content32}}} |
| {{{heading33}}} |
| {{{content33}}} |
| {{{heading34}}} |
| {{{content34}}} |
| {{{heading35}}} |
| {{{content35}}} |
| {{{below}}} |
This is the {{Ambox}} or Article message box meta-template.
It is used to build article message box templates such as {{wikify}}. It offers several different colours, uses default images if no image parameter is given and it has some other features.
This meta-template uses the ambox CSS classes in MediaWiki:Common.css. The classes can also be used directly in a wikitable if special functionality is needed. See the how-to guide for that.
Usage
Simple usage example:
{{Ambox | text = Some text.}}
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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}}}
|Some text.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#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 = | Some text.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
Complex example:
{{Ambox
| name = Name of template
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
| type = style
| small = left
| image = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]]
| smallimage = [[File:Emblem-question-yellow.svg|20px|alt=Question mark]]
| textstyle = color: red; font-weight: bold; font-style: italic;
| text = Text for a big box, for the top of articles.
| talk = {{{talk|}}}
| smalltext = Text for the top of article sections.
| date = {{{date|}}}
| category = A name of a category to use for monthly categories
| all = A category which all articles will be placed in
}}
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:left|left
|
{{#switch:{{#if:20px |20px |40px }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:20px
|20px
|40px
}}
| {{#if:20px
|20px
|40px
}}
| [[File:{{#switch:style
| 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:Text for the top of article sections.
|Text for the top of article sections. |Text for a big box, for the top of articles.}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:20px
|20px |40px }}
| blank = }}
|
{{#switch:40px | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:40px
| 40px
| [[File:{{#switch:style
| 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 = | Text for a big box, for the top of articles.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:40px | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
But you are not really supposed to use red bold italic text.
Article message box types
The following examples use different type parameters but use no image parameters thus they use the default images for each type.
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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
| 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}}}
|type=speedy – Speedy deletion issues, such as {{db-g1}} and {{db-g3}}.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:speedy
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:speedy
| 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 = | type=speedy – Speedy deletion issues, such as {{db-g1}} and {{db-g3}}.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:speedy
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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:delete
| 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}}}
|type=delete – Deletion issues, such as {{afd}} and {{prod}}.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:delete
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:delete
| 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 = | type=delete – Deletion issues, such as {{afd}} and {{prod}}.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:delete
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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:content
| 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}}}
|type=content – Content issues, such as {{POV}} and {{globalize}}.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:content
| 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 = | type=content – Content issues, such as {{POV}} and {{globalize}}.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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:style
| 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}}}
|type=style – Style issues, such as {{cleanup}} and {{wikify}}.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:style
| 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 = | type=style – Style issues, such as {{cleanup}} and {{wikify}}.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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:notice
| 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}}}
|type=notice – Article notices, such as {{current}} and {{inuse}}.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:notice
| 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 = | type=notice – Article notices, such as {{current}} and {{inuse}}.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:notice
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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:move
| 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}}}
|type=move – Merge, split and transwiki proposals, such as {{split}} and {{copy to wiktionary}}.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:move
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:move
| 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 = | type=move – Merge, split and transwiki proposals, such as {{split}} and {{copy to wiktionary}}.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:move
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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:protection
| 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}}}
|type=protection – Protection notices, such as {{pp-vandalism}} and {{pp-semi-protected}}.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:protection
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:protection
| 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 = | type=protection – Protection notices, such as {{pp-vandalism}} and {{pp-semi-protected}}.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:protection
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
Other images
The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the image parameter to specify an image other than the default images.
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:{{{small}}}|left
|
{{#switch:{{#if: |{{{smallimage}}} |40px }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:
|{{{smallimage}}}
|40px
}}
| {{#if:
|{{{smallimage}}}
|40px
}}
| [[File:{{#switch:content
| 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}}}
|type = content
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|40px
}}
| blank = }}
|
{{#switch:40px | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:40px
| 40px
| [[File:{{#switch:content
| 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 = | type = content image = [[File:Unbalanced scales.svg|40px|link=|alt=]] This image is often used for {{POV}} and similar issues.{{#switch:¬ |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:40px | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:{{{small}}}|left
|
{{#switch:{{#if: |{{{smallimage}}} |50px }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:
|{{{smallimage}}}
|50px
}}
| {{#if:
|{{{smallimage}}}
|50px
}}
| [[File:{{#switch:style
| 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}}}
|type = style
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|50px
}}
| blank = }}
|
{{#switch:50px | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:50px
| 50px
| [[File:{{#switch:style
| 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 = | type = style image = [[File:Wikitext.svg|50px|link=|alt=]] This image is often used for {{wikify}} etc.{{#switch:¬ |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:50px | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:{{{small}}}|left
|
{{#switch:{{#if: |{{{smallimage}}} |50px }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:
|{{{smallimage}}}
|50px
}}
| {{#if:
|{{{smallimage}}}
|50px
}}
| [[File:{{#switch:move
| 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}}}
|type = move
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:move
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|50px
}}
| blank = }}
|
{{#switch:50px | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:50px
| 50px
| [[File:{{#switch:move
| 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 = | type = move image = [[File:Merge-arrows.svg|50px|link=|alt=]] This image is used for {{merge}} etc.{{#switch:¬ |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:move
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:50px | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
More examples
Some other parameter combinations.
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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}}}
|No type and no image given (default)
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#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 = | No type and no image given (default){{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:{{{small}}}|left
|
{{#switch:{{#if: |{{{smallimage}}} |none }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:
|{{{smallimage}}}
|none
}}
| {{#if:
|{{{smallimage}}}
|none
}}
| [[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}}}
|No type and image=none – No image is used and the text uses the whole message box area.
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|none
}}
| blank = }}
|
{{#switch:none | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:none
| none
| [[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 = | No type and image=none – No image is used and the text uses the whole message box area.{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:none | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:{{{small}}}|left
|
{{#switch:{{#if: |{{{smallimage}}} |42px }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} |40px }} | {{#ifeq:{{#if: |{{{smallimageright}}} |40px }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:
|{{{smallimage}}}
|42px
}}
| {{#if:
|{{{smallimage}}}
|42px
}}
| [[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}}}
|image = [[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]]
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|40px
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|40px
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|42px
}}
| blank = }}
|
{{#switch:42px | blank | none =| #default =
}} {{#if:40px | {{#ifeq:40px|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:42px
| 42px
| [[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 = | image = [[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]] imageright = [[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]]{{#switch:¬ |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left = 40px| #default = }} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:42px | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:{{{small}}}|left
|
{{#switch:{{#if: |{{{smallimage}}} |42px }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} |20px }} | {{#ifeq:{{#if: |{{{smallimageright}}} |20px }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:
|{{{smallimage}}}
|42px
}}
| {{#if:
|{{{smallimage}}}
|42px
}}
| [[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}}}
|This article or section documents a current spaceflight.
| {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|20px
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|20px
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|42px
}}
| blank = }}
|
{{#switch:42px | blank | none =| #default =
}} {{#if:20px | {{#ifeq:20px|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:42px
| 42px
| [[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 = | This article or section documents a current spaceflight.
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left = 20px| #default = }} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:42px | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
Parameters
List of all parameters:
{{Ambox
| name = Name of template without the Template: part
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
| type = speedy / delete / content / style / notice / move / protection
| image = none / [[File:...|40px|...]]
| imageright = [[File:...|40px|...]]
| class = A custom CSS class to apply to the box
| style = CSS values
| textstyle = CSS values
| text = The message body text.
| talk = {{{talk|}}}
| small = {{{small|}}} / left
| smallimage = none / [[File:...|20px|...]]
| smallimageright = none / [[File:...|20px|...]]
| smalltext = A shorter message body text.
| preposition = Preposition between category name and month (defaults to "from")
| date = {{{date|}}}
| category = Prefix for monthly categories
| all = Category which all articles will be placed in, if any
| category2 = Second prefix for monthly categories
| all2 = Second category which all articles will be placed in, if any
| category3 = Third prefix for monthly categories
| all3 = Third category which all articles will be placed in, if any
}}
name
- This is the name of the template (without the namespace) and allows the template to have a more useful display on its template page, and to give a specific warning when incorrectly substituted. For example, on Template:Orphan we define
|{{#if:name|name=|}}orphan.
subst
- This should be used in order to detect when the template has been incorrectly substituted. Such pages will be placed in Category:Pages with incorrectly substituted templates
type
- If no type parameter is given the template defaults to type notice. That means it gets a blue side bar.
image
- No parameter = If no image parameter is given the template uses a default image. Which default image it uses depends on the type parameter.
- An image = Should be an image with usual wiki notation. Widths of 40px - 50px are usually about right. (Images over 52 pixels wide will cause padding problems.)
- Often an icon is purely decorative in the W3C sense that it repeats the text. To improve accessibility, it is desirable to not have it be announced by screen readers, as well as to avoid it linking to an irrelevant page. If (and only if) the image license allows this, it can be marked with "
|{{#if:link|link=|}}|{{#if:alt|alt=|}}". For example:image = [[File:Unbalanced scales.svg|40px|link=|alt=]]
- Conversely, an icon that does not use "
|{{#if:link|link=|}}|{{#if:alt|alt=|}}", and which therefore is announced to visually impaired readers, should use an "|{{#if:alt|alt=|}}alt text" parameter that describes the icon. With no|{{#if:link|link=|}}parameter (using the default link), the alt text should describe the icon's visual appearance. For example:image = [[File:Gnome globe current event.svg|40px|alt=Clock over a larger globe]]
- With a nonempty "
|{{#if:link|link=|}}Page" the alt text should describe the icon's function. For example:image = [[File:Purple question mark.svg|40px|link=Special:Random|alt=Random article]]
- An icon whose license requires attribution may have alt text, but must keep the default link. Although public domain images do not require a link, many licenses do require one. Please see Purely decorative images for more information about licensing.
- Often an icon is purely decorative in the W3C sense that it repeats the text. To improve accessibility, it is desirable to not have it be announced by screen readers, as well as to avoid it linking to an irrelevant page. If (and only if) the image license allows this, it can be marked with "
- none = Means that no image is used.
blank= This parameter is now deprecated. If you see it in use, change it to "image=none".
imageright
- No parameter = If no imageright parameter is given then no image is shown on the right side.
- An image = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (Images over 52 pixels width will cause padding problems.) For example:
imageright = [[File:Nuvola apps bookcase.png|40px|alt=Three stacked books]]
- Anything = Any other object that you want to show on the right side.
style
- Optional CSS values used by the entire message box table. Without quotation marks
" "but with the ending semicolons;. For example:style = margin-bottom: 0.5em;
textstyle
- Optional CSS values used by the text cell. For example:
textstyle = text-align: center;
text
- The text displayed in the message.
talk
- If this parameter is passed through it adds the message "More details and relevant discussion can be found on the talk page." The talk parameter can be used in either of the following ways:
|{{#if:talk|talk=|}}SECTION NAME- the link will point to the specified section on the current article's talk page, e.g.|{{#if:talk|talk=|}}Foo|{{#if:talk|talk=|}}FULL PAGE NAME- the link will point to the page name specified (which may include a section anchor), e.g.|{{#if:talk|talk=|}}Talk:Banana#Foo
Categorisation parameters
- date= - pass through the date parameter when using monthly cleanup categories
- category / cat - prefix for monthly categories, e.g. Wikipedia articles needing style editing
- preposition - preposition between category name and month; the default is from
- all - category which all articles will be placed in, e.g. All articles needing style editing
The small parameters
The small article message boxes are meant for the top of sections. Normally they should only contain one or two lines of text.
small
- left = Makes it a smaller left aligned message box. This also makes the default images smaller. Note that any data fed to the smallimage, smallimageright and smalltext parameters is only used if "small=left". To make it so your template also understands the small parameter you can use this code:
small = {{{small|}}}
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:left|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}}}
|small = left
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#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 = | small = left{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}} {{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:left|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:style
| 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}}}
|type = style
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:
|
| [[File:{{#switch:style
| 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 = | type = style small = left{{#switch:¬ |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
- any other value, including blank and no parameter = Default-sized inlined message box. Ignores smallimage, smallimageright and smalltext.
smallimage
- No parameter = If no smallimage parameter is given then this template falls back to use the image parameter. If the image parameter also is empty then a small default image is used.
- An image = Should be an image with usual wiki notation. 20px width is usually about right for boxes with one line of text, while 25px width is usually about right for boxes with two lines of text. For example:
smallimage = [[File:Gnome globe current event.svg|20px|alt=Clock over a larger globe]]
- none = Means that no image is used. This overrides any image fed to image, when "small=left".
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:left|left
|
{{#switch:{{#if:25px |25px |50px }} | blank | none =| #default =
}} {{#if:{{#if: |{{{smallimageright}}} | }} | {{#ifeq:{{#if: |{{{smallimageright}}} | }}|none | | }} }}{{
#switch:left | left =| #default = }}
{{#if:{{#if:25px
|25px
|50px
}}
| {{#if:25px
|25px
|50px
}}
| [[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}}}
|small = left
}} | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:25px
|25px |50px }}
| blank = }}
|
{{#switch:50px | blank | none =| #default =
}} {{#if: | {{#ifeq:|none | | }} }}{{
#switch: | left =| #default = }}
{{#if:50px
| 50px
| [[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 = | small = left image = [[File:Replacement filing cabinet.svg|50px|link=|alt=]] smallimage = [[File:Replacement filing cabinet.svg|25px|link=|alt=]]{{#switch:¬ |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:50px | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
smallimageright
- No parameter = If no smallimageright parameter is given then this template falls back to use the imageright parameter. If the imageright parameter also is empty then no image is shown on the right side.
- An image = Should be an image with usual wiki notation. 20px - 25px width is usually about right. For example:
smallimageright = [[File:Nuvola apps bookcase.png|20px|alt=Three stacked books]]
- Anything = Any other object that you want to show on the right side.
- none = Means that no right side image is used. This overrides any image fed to imageright, when "small=left".
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#ifeq:left|left
|
{{#switch:{{#if: |{{{smallimage}}} | }} | blank | none =| #default =
}} {{#if:{{#if:none |none |50px }} | {{#ifeq:{{#if:none |none |50px }}|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}}}
|small = left
}} | {{#switch:left
| left = {{#if:none
|none
|50px
}}
| #default = {{#if:none
}}|none |50px}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#switch: | blank | none =| #default =
}} {{#if:50px | {{#ifeq:50px|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 = | small = left imageright = [[File:Gnome globe current event.svg|50px|alt=Clock over a larger globe]] smallimageright = none{{#switch:¬ |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left = 50px| #default = }} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
smalltext
- A shorter version of the message body text. If no smalltext parameter is given then this template falls back to use the text parameter.
Technical details
If you need to use special characters in the text parameter then you need to escape them like this:
{{Ambox
| text = <div>
Equal sign = and a start and end brace { } work fine as they are.
But here is a pipe | and two end braces <nowiki>}}</nowiki>.
And now a pipe and end braces <nowiki>|}}</nowiki>.
</div>
}}
{{#ifeq:{{{subst}}}|SUBST
|{{#if:
|<{{#switch:{{{tag}}}
|p=p
|span=span
|div=div
|#default=strong
}} class="error">Template {{{{#if:|subst:}}[[Template:{{{name}}}|{{{name}}}]]{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} has been incorrectly substituted.</{{#switch:{{{tag}}}
|p=p |span=span |div=div |#default=strong
}}>
}}
}}{{#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}}}
|Equal sign = and a start and end brace { } work fine as they are. But here is a pipe | and two end braces }}. And now a pipe and end braces |}}. | {{#switch:left
| left = {{#if:
|{{{smallimageright}}}
|
}}
| #default = {{#if:
}} |{{{smallimageright}}}
|
}} |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch:{{#if:
|{{{smallimage}}}
|
}}
| blank = }}
|
{{#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 = | Equal sign = and a start and end brace { } work fine as they are. But here is a pipe | and two end braces }}. And now a pipe and end braces |}}. |¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| More details and relevant discussion can be found on the talk page.}} |#default = More details and relevant discussion can be found on {{#ifeq:|
|[[{{{talk}}}|]]
|the [[Template talk:Ambox/doc#{{{talk}}}|talk page]]
}}.
}}{{#switch:¬
|¬ =
| = {{#ifeq:{{ safesubst:#if: {{ safesubst:#switch:
|
|File
|MediaWiki
|Category =
|yes
}} | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Ambox/doc}}
}}|Template:| (December 2025)}} |#default = ({{{date}}})
}} | {{#switch:
| left =| #default = |
{{#switch:
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}{{#switch: | blank = }} }}{{#if:
{{#ifeq: | true
| dontcat
}}{{#ifeq: | no
| dontcat
}}{{#switch: ¬
| yes
| ¬ =
| #default = dontcat
}}{{#switch:
| no =
Template:Basepage subpage
| only =
Template:Basepage subpage
}}
| |
{{#switch:
{{#ifeq: | false
|
| {{#ifeq: | yes
|
| {{#ifeq: | yes
|
| {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Ambox/doc }}|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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| 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 = {{#ifeq:Ambox|doc|{{#ifeq:|true
| | }} }}
| help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}
The <div> tags that surround the text in the example above are usually not needed. But if the text contains line breaks then sometimes we get weird line spacing. This especially happens when using vertical dotted lists. Then use the div tags to fix that.
This template uses CSS classes in MediaWiki:Common.css for most of its looks, thus it is fully skinnable.
This template calls {{Ambox/core}} which holds most of the code for {{Ambox}}, while {{Ambox}} itself does parameter preprocessing.
Internally this meta-template uses HTML markup instead of wikimarkup for the table code. That is the usual way we make meta-templates since wikimarkup has several drawbacks. For instance it makes it harder to use parser functions and some special characters in parameters.
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.
For more technical details see the talk page and the "See also" links below. Since this template works almost exactly like {{Tmbox}}, {{Imbox}}, {{Cmbox}} and {{Ombox}} their talk pages and related pages might also contain more details.
See also
There are several meta-templates in the mbox family:
- {{ambox}} – For article message boxes.
- {{cmbox}} – For category message boxes.
- {{imbox}} – For file (image) page message boxes.
- {{mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
- {{ombox}} – For other pages message boxes.
- {{tmbox}} – For talk page message boxes.
Closely related meta-templates:
- {{asbox}} – For article stub message boxes.
- {{dmbox}} – For disambiguation and set index message boxes.
- {{fmbox}} – For header and footer message boxes.
Other pages:
- Wikipedia:Ambox CSS classes – Describes how to use the ambox CSS classes directly in wikitables and HTML tables.
- Wikipedia:Article message boxes – The style guideline for creating article message boxes.
- Wikipedia talk:Article message boxes – For discussion about these matters.