Template

Ambox/doc

From Joomla! Documentation

< Template:Ambox
Revision as of 11:40, 17 January 2008 by CirTap (talk | contribs) (New page: {{tlp|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". ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{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[edit]

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[edit]

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[edit]

Please update this list to the image names used.
Value Image name
serious Stop hand nuvola.svg.png
content (jdn-icon)
style (style--icon)
merge (merge-icon)
notice Info non-talk.png
blank empty cell
#default empty cell

imageright[edit]

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[edit]

table.metadata plainlinks ambox type
td.ambox-image
td.ambox-imageright