Template:Ambox/core/doc
{{#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/core.
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/core|[[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: 700,000+ | 700,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/core | Template:Ambox/core/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ambox/core | Template:Ambox/core/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/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 = 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: 700,000+ | 700,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/core | Template:Ambox/core/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ambox/core | Template:Ambox/core/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/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 almost all 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}}.