Difference between revisions of "Template:Ambox/core"
Jump to navigation
Jump to search
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "<tvar|(.*)>" to "") |
||
Line 1: | Line 1: | ||
− | + | ||
− | + | {{#switch:{{{image|}}} | |
|blank | |blank | ||
− | + | ||
− | + | {{#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=]] | ||
− | + | ||
− | + | {{#if:{{{talk|}}} | |
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}} | |{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}} | ||
|{{{talk}}} | |{{{talk}}} | ||
Line 25: | Line 25: | ||
}}. | }}. | ||
}} | }} | ||
− | + | {{#if:{{{date|}}} | |
− | + | ||
− | + | {{#switch:{{{imageright|}}} | |
|none = | |none = | ||
|= | |= | ||
− | + | ||
− | + | ||
{{documentation}} | {{documentation}} | ||
− | |||
− |
Revision as of 16:12, 21 December 2019
{{#switch:
|blank
{{#if:
|{{{image}}} |![]()
{{#if: |
{{#if:
{{#switch:
|none = |=
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}}.