1{{#ifeq:{{{subst}}}|SUBST
2 |{{#if:{{{name|}}}
3  |{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
4 }}
5}}{{#ifeq:{{{small}}}|left
6 |{{ambox/core
7  |small      = left
8  |type       = {{{type|}}}
9  |image      = {{#if:{{{smallimage|}}}
10   |{{{smallimage}}}
11   |{{{image|}}}
12  }}
13  |imageright = {{#if:{{{smallimageright|}}}
14   |{{{smallimageright}}}
15   |{{{imageright|}}}
16  }}
17  |style      = {{{style|}}}
18  |textstyle  = {{{textstyle|}}}
19  |text       = {{#if:{{{smalltext|}}}
20   |{{{smalltext}}}
21   |{{{text}}}
22  }}
23 }}
24 |{{ambox/core
25  |type       = {{{type|}}}
26  |image      = {{{image|}}}
27  |imageright = {{{imageright|}}}
28  |style      = {{{style|}}}
29  |textstyle  = {{{textstyle|}}}
30  |text       = {{{text}}}
31  |date       = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
32   |{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
33   |{{{date|}}}
34  }}
35 }}
36}}{{cat handler
37 |main={{ambox/category
38  |cat={{{cat|}}}
39  |date={{{date|}}}
40  |all={{{all|}}}
41 }}
42 |template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|}}
43}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
44 |{{#ifeq:{{{doc}}}|no|
45  |{{documentation}}<!-- Transclude documentation on template page -->
46 }}
47}}<noinclude>
48
49{{documentation|Template:mbox/doc}}
50</noinclude>
51