Template:Ambox/doc
m (update to image link) |
m (correct image link added to the template docs) |
||
| Line 50: | Line 50: | ||
|style || [[Image:Broom-icon.png]] | |style || [[Image:Broom-icon.png]] | ||
|- | |- | ||
| − | |merge || [[Image:Merge- | + | |merge || [[Image:Merge-icon.png|50px]] |
|- | |- | ||
|notice || [[Image:Info non-talk.png]] | |notice || [[Image:Info non-talk.png]] | ||
Latest revision as of 23:03, 1 February 2013
{{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 {{notice}}, {{inuse}}, {{underconstruction}}, or other Marker templates. Those templates provide default parameters to have a consistant look and feel for alert message boxes including a standard message text and appropriate category tags.
Contents |
[edit] Parameters
Mandatory:
- text
- the message text to display
Optional:
- type (notice)
- controls the box color
- image (none)
- a notification icon.
- imageright (none)
- a supplemental image from the Image: namespace, shown in a third (right) column
[edit] type
| Value | CSS class | Preview |
|---|---|---|
| serious | ambox-serious | serious lorem ipsum
|
| content | ambox-content | content lorem ipsum
|
| style | ambox-style | style lorem ipsum
|
| merge | ambox-merge | merge lorem ipsum
|
| notice | ambox-notice | notice lorem ipsum
|
| growth | ambox-growth | growth lorem ipsum
|
| protection | ambox-protection | protection lorem ipsum
|
| #default | ambox-notice | see notice |
The color scheme is based off the official Joomla! logo and working group color palette and available for users of the Monobook and Joomla! skins.
[edit] image
- Please update this list to the image names used.
| Value | Image name |
|---|---|
| serious | |
| content | |
| style | |
| merge | |
| notice | |
| growth | 50px |
| jdoc | |
| blank | empty cell |
| #default | empty cell |
[edit] imageright
An optional, arbitrary image from the File namespace. If this value is not empty, a third right column in added to the alert box to display the given image.
Try it in the Template:Ambox/sandbox.
[edit] Stylesheet
table.ambox (basic table settings)
table.ambox-type (text and border colors)
td.ambox-image (left icon column)
td.ambox-imageright (right image column)
table.standard-main (namespace specific overrides {{main talk file other}})
table.standard-talk
table.standard-file
table.standard-other