Difference between revisions of "Template:Ombox/core/doc"
m (1 revision) |
(No difference)
|
Latest revision as of 12:29, 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:Ombox/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:Ombox/core|[[Category:{{
#switch: Template
| Template = Template
| User = User
| #default = Wikipedia
}} documentation pages]]|}}
}}
| }} {{#ifeq:|yes
|
{{#ifeq:{{#if:| {{{smallimage}}} | 40x40px }}|none | | }}{{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none
||
}}
}}
{{#if:{{#if:| {{{smallimage}}} | 40x40px }}
| {{#if:| {{{smallimage}}} | 40x40px }}
| [[Image:{{#switch:style
| 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: 80,000+ | 80,000+ |many}} pages, and changes to it will be widely noticed. Please test any changes in the template's [[{{#ifeq:doc|doc| Template:Ombox/core | Template:Ombox/core/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ombox/core | Template:Ombox/core/doc }}/testcases|/testcases]] subpages, or in a user subpage, and consider discussing changes at {{#if:|[[{{{2}}}]]|the [[{{#ifeq:doc|doc| Template talk:Ombox/core | Template talk:Ombox/core/doc }}|talk page]]}} before implementing them. }} | {{#if: | {{{smallimageright}}} | }} |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}}
|
{{#ifeq:40x40px|none | | }}{{#if: | {{#ifeq:|none
||
}}
}}
{{#if:40x40px
| 40x40px
| [[Image:{{#switch:style
| 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: 80,000+ | 80,000+ |many}} pages, and changes to it will be widely noticed. Please test any changes in the template's [[{{#ifeq:doc|doc| Template:Ombox/core | Template:Ombox/core/doc }}/sandbox|/sandbox]] or [[{{#ifeq:doc|doc| Template:Ombox/core | Template:Ombox/core/doc }}/testcases|/testcases]] subpages, or in a user subpage, and consider discussing changes at {{#if:|[[{{{2}}}]]|the [[{{#ifeq:doc|doc| Template talk:Ombox/core | Template talk:Ombox/core/doc }}|talk page]]}} before implementing them. |
{{#switch:style
| | speedy | delete | content | style | move | protection | notice =
| #default =
}} }}
This is the {{ombox/core}} sub-template.
Do not use this template directly, use {{ombox}} instead.
This template is called from {{ombox}}. It holds most of the code for {{{{#if:ombox|ombox| 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:ombox|ombox| 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:ombox/core|ombox/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 {{ombox}}.