Template:Ambox: Difference between revisions
Jump to navigation
Jump to search
Infobox>Davidgothberg New default image: Merge-split-transwiki default.svg |
Infobox>MZMcBride converted to wikisyntax; optimized code |
||
Line 1: | Line 1: | ||
{| class="ambox {{#switch:{{{type|}}} | |||
{{#switch:{{{type|}}} | |serious =ambox-serious | ||
| serious | |content =ambox-content | ||
| content | |style =ambox-style | ||
| style | |merge =ambox-merge | ||
| merge | |notice =ambox-notice | ||
| notice | |#default=ambox-notice | ||
| #default = ambox-notice | }}" | ||
}}" | {{#ifeq:{{{image}}}|none|<!-- image=none -->|<!-- else --> | ||
{{#ifeq:{{{image}}}|none| | {{!}} class="ambox-image" {{!}} <!-- | ||
<!-- image=none --> | |||
|<!-- else --> | |||
-->{{#ifeq:{{{image}}}|blank| | -->{{#ifeq:{{{image}}}|blank| | ||
<!-- image=blank --> | <!-- image=blank --> | ||
|<!-- image != blank --> | |<!-- image != blank --> | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}|{{{image}}}|<!-- No image param --> | ||
{{{image}}} | |||
|<!-- No image param --> | |||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| serious | |serious =[[Image:Stop hand nuvola.svg|40px]] | ||
| content | |content =[[Image:Emblem-important.svg|40px]] | ||
| style | |style =[[Image:Broom icon.svg|40px]] | ||
| merge | |merge =[[Image:Merge-split-transwiki default.svg]] | ||
| notice | |notice =[[Image:Info non-talk.png|40px]] | ||
| #default = [[Image:Info non-talk.png|40px]] | |#default=[[Image:Info non-talk.png|40px]] | ||
}}<!-- End #switch type --> | }}<!-- End #switch type --> | ||
}}<!-- End if image --> | }}<!-- End if image --> | ||
}}<!-- End ifeq image==blank --> | }}<!-- End ifeq image==blank --> | ||
}}<!-- End ifeq image==none --> | }}<!-- End ifeq image==none --> | ||
{{!}} {{{text}}} | |||
{{#if:{{{imageright|}}}| | {{#if:{{{imageright|}}}| | ||
{{!}} class="ambox-imageright">{{{imageright}}} | |||
}} | }} | ||
|}<noinclude> | |||
{{template doc}} | {{template doc}} | ||
<!-- Add categories and inter-wikis to the /doc subpage, not here! --> | <!-- Add categories and inter-wikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |