Template:Ambox/core/doc
{{#if: |
{{#if:x||
}} |{{#ifeq: doc | doc
|
{{
#ifeq: show | show | {{ {{#switch: {{#if: | | {{#ifeq:template| | main | {{#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 | other | #default = ombox
}}
| type = notice
| image = 40px
| imageright =
| style =
| textstyle =
| text = This is a documentation subpage for Template:Ambox/core (see that page for the {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template | {{ #if: Template | template | article }}}}}} itself).
It contains usage information, categories 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 =
}}
}}{{ #if: | | [[Category:{{ #if: Template | Template | Article }} documentation]] }}
| }} }} {{#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 = Imbox style.png | move = Imbox move.png | protection = Imbox protection.png | notice | #default = Imbox notice.png }} | {{#ifeq:yes|yes|30x30px|40x40px}} ]]}} | {{#if:| {{{smalltext}}} | This template is used on {{#if: 300,000+ | 300,000+ |a very large number of}} pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's [[{{#ifeq:doc|doc| Template:Ambox/core | Template:Ambox/core/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ambox/core | Template:Ambox/core/doc }}/testcases|/testcases]] subpage, or in your own user space. The tested changes can then be added in one single edit to this template. As a courtesy to other users, please discuss any changes at {{#if: Wikipedia talk:Article message boxes |Wikipedia talk:Article message boxes |the [[{{#ifeq:doc|doc| Template talk:Ambox/core | Template talk:Ambox/core/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 = Imbox style.png | move = Imbox move.png | protection = Imbox protection.png | notice | #default = Imbox notice.png }} | {{#ifeq:|yes|30x30px|40x40px}} ]]}} | This template is used on {{#if: 300,000+ | 300,000+ |a very large number of}} pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's [[{{#ifeq:doc|doc| Template:Ambox/core | Template:Ambox/core/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ambox/core | Template:Ambox/core/doc }}/testcases|/testcases]] subpage, or in your own user space. The tested changes can then be added in one single edit to this template. As a courtesy to other users, please discuss any changes at {{#if: Wikipedia talk:Article message boxes |Wikipedia talk:Article message boxes |the [[{{#ifeq:doc|doc| Template talk:Ambox/core | Template talk:Ambox/core/doc }}|talk page]]}} before implementing them. |
{{#switch:content
| | speedy | delete | content | style | move | protection | notice =
| #default =
}} }}
This is the {{ambox/core}} sub-template.
Do not use this template directly, use {{ambox}} instead.
This template is called from {{ambox}}. It holds most of the code for {{{{#if:ambox|ambox| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}, while {{{{#if:ambox|ambox| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} does parameter preprocessing. Thus simplifying the code in {{{{#if:ambox/core|ambox/core| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}.
For more documentation see {{ambox}}.