Template:Ambox: Difference between revisions

From Campaigns
Jump to navigation Jump to search
Copy fix from sandbox; only articles should go in this category.
m 1 revision imported
Line 1: Line 1:
{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}};{{NAMESPACENUMBER}}|left;0|[[Category:Articles using small message boxes]]}}<noinclude>
<onlyinclude>{{#invoke:Message box|ambox}}</onlyinclude>
{{documentation}}
{{Documentation}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
</noinclude>

Revision as of 21:09, 3 November 2021

Template documentation

This is the {{Ambox}} or Article message box meta-template.

Parameters

type

The type parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.

If no type parameter is given the template defaults to |type=notice.

small=left

See also

Other pages:

TemplateData

This is the specialized version of the {{mbox}} or “multi namespace message box” meta-template.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

no description

Default
notice
Stringsuggested
Image (left)image

no description

Default
Depends on the “type” parameter.
Contentsuggested
Image (right)imageright

no description

Contentoptional
CSS Stylestyle

no description

Stringoptional
Text CSS Styletextstyle

no description

Stringoptional
Texttext

no description

Contentsuggested
Small?small

no description

Default
0
Booleanoptional
Small Image (left)smallimage

no description

Default
{{{image}}}
Contentoptional
Small Image (right)smallimageright

no description

Default
{{{imageright}}}
Contentoptional
Small Textsmalltext

no description

Default
{{{text}}}
Contentoptional

[[Category:Mbox templates{{#translation:}}]]