Difference between revisions of "Template:Ambox"
KimPegasus (talk | contribs) m (Protected "Template:Ambox": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
KimPegasus (talk | contribs) (Change date format.) |
||
Line 2: | Line 2: | ||
|class="ambox__icon" width="50"|[[File:{{{icon|Bronieswiki_logo.svg}}}|50px|link=]] | |class="ambox__icon" width="50"|[[File:{{{icon|Bronieswiki_logo.svg}}}|50px|link=]] | ||
|{{{message|Main ambox copy goes here. Manually bold the important bits, and add links to relevant help articles.}}} | |{{{message|Main ambox copy goes here. Manually bold the important bits, and add links to relevant help articles.}}} | ||
− | {{#if: {{{date|}}} | <small>(Added: {{#time: | + | {{#if: {{{date|}}} | <small>(Added: {{#time:F j, Y|{{{date}}}}})</small> }} |
|}<noinclude>{{Documentation}}</noinclude> | |}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 15:04, 3 October 2020
Main ambox copy goes here. Manually bold the important bits, and add links to relevant help articles. |
- This documentation is transcluded from Template:Ambox/doc and needs to be edited separately.
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
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.