Template:Ambox/doc
From Joomla! Documentation
{{ambox}} is the base tempate used by several "alert message boxes" which can be placed at the top of an article. It generates a two column table with an optional "message icon". The message text must be provided by the calling template in the {{{text}}} parameter.
ambox should never be used directly, but only via "proxy templates" such as {{inuse}}, {{underconstruction}} or {{docstatus}}. Those templates provide default parameters to have a consistant look and feel for alert message boxes including a standard message text.
Parameters
Mandatory:
- text
- the message text to display
Optional:
- style (empty)
- value of the HTML style attribute applied to the table element
- type (notice)
- controls the class attribute used
- image (none)
- an image from the Image: namespace as a notification icon
- imageright (none)
- an supplemental image from the Image: namespace, shown in a third column
type
| Value | CSS class |
|---|---|
| serious | ambox-serious |
| content | ambox-content |
| style | ambox-style |
| merge | ambox-merge |
| notice | ambox-notice |
| growth | ambox-growth |
| #default | ambox-notice |
image
- Please update this list to the image names used.
| Value | Image name |
|---|---|
| serious | |
| content | (jdn-icon) |
| style | (style--icon) |
| merge | (merge-icon) |
| notice | |
| blank | empty cell |
| #default | empty cell |
imageright
An optional, arbitragy image from the File namespace. If this value is not empty, a third right column in added to the alert box.
Stylesheet
table.metadata plainlinks ambox type td.ambox-image td.ambox-imageright