Difference between revisions of "Template:Ambox/core"
Jump to navigation
Jump to search
Joelmartin (talk | contribs) m (Text replacement - "<tvar|(.*)>" to "") |
Joelmartin (talk | contribs) m (Undo revision 10234 by Joelmartin (talk)) Tag: Undo |
||
Line 1: | Line 1: | ||
− | + | <table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}" role="presentation"> | |
− | {{#switch:{{{image|}}} | + | <tr>{{#switch:{{{image|}}} |
|blank | |blank | ||
− | + | |none = <td class="mbox-empty-cell"></td> | |
− | {{#if:{{{image|}}} | + | |#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}} |
|{{{image}}} | |{{{image}}} | ||
|[[File:{{#switch:{{{type|}}} | |[[File:{{#switch:{{{type|}}} | ||
Line 14: | Line 14: | ||
|notice|#default = Ambox notice.png | |notice|#default = Ambox notice.png | ||
}}|40x40px|link=|alt=]] | }}|40x40px|link=|alt=]] | ||
− | + | }}</div></td> | |
− | + | }}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}} | |
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}} | |{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}} | ||
|{{{talk}}} | |{{{talk}}} | ||
Line 25: | Line 25: | ||
}}. | }}. | ||
}} | }} | ||
− | {{#if:{{{date|}}} | + | }} {{{fix|}}}</span>{{#if:{{{date|}}} |
− | + | | <small>''({{{date}}})''</small> | |
− | {{#switch:{{{imageright|}}} | + | }}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}} |
|none = | |none = | ||
|= | |= | ||
− | + | |#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td> | |
− | + | }}</tr></table><noinclude> | |
{{documentation}} | {{documentation}} | ||
+ | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
+ | </noinclude> |
Latest revision as of 17:14, 21 December 2019
![]() |
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 {{ambox}}, while {{ambox}} does parameter preprocessing. Thus simplifying the code in {{ambox/core}}.
For more documentation see {{ambox}}.