Template:Ambox/doc

From Bronies.wiki
Jump to navigation Jump to search

An ambox, short for article message box, is a metatemplate (a template that is used by other templates) for messaging templates in the main article namespace. Examples of common amboxes include {{merge}}, {{cleanup}}, and {{unreferenced}}.

Usage[edit source]

Amboxes should never be used directly within an article. Instead, it should be used to create templates appropriate to the need.

Amboxes accept these parameters:

classes - Additional CSS classes to apply to the ambox. Most commonly used to apply color themes.

date - The date the ambox was added to the page. Preferably in YYYY-MM-DD format.

icon - An image file to display within the ambox. The surrounding wikicode and File: prefix are not required, only the image's filename.

message - The text the ambox displays. This is unformatted text by default, allowing templates to bold, italicise and add links where useful.

section - Whether this ambox only applies to a section, rather than at the top of an article page. This is a boolean property. If it evaluates to true, a smaller, left-aligned variant of the ambox will be used. It is false by default.