Difference between revisions of "Template:Ambox/doc"
Line 5: | Line 5: | ||
{| class="wikitable grid" | {| class="wikitable grid" | ||
− | ! Name | + | ! class="header" | Name |
− | ! Examples | + | ! class="header" | Examples |
− | ! Description | + | ! class="header" | Description |
|- | |- | ||
| colspan="3" | '''''Line colors''''' | | colspan="3" | '''''Line colors''''' | ||
|- | |- | ||
− | | | + | | rowspan="6" | type |
− | |||
− | |||
| style="border-left: 10px solid #1e90ff;" | ''type = notice'' [default] | | style="border-left: 10px solid #1e90ff;" | ''type = notice'' [default] | ||
+ | | rowspan="6" | Use the correct value for the message box. | ||
|- | |- | ||
| class="ambox-style" | ''type = style'' | | class="ambox-style" | ''type = style'' | ||
Line 21: | Line 20: | ||
|- | |- | ||
| class="ambox-delete" | ''type = delete'' | | class="ambox-delete" | ''type = delete'' | ||
+ | |- | ||
+ | | class="ambox-protection" | ''type = protection'' | ||
|- | |- | ||
| class="ambox-images" | ''type = images'' | | class="ambox-images" | ''type = images'' | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| colspan="3" | '''''Images''''' | | colspan="3" | '''''Images''''' |
Revision as of 23:30, 31 July 2010
An article message box, or ambox, can be added to notify users of specific messages regarding the article. The {{cleanup}}
template is an example of an ambox.
Usage
All parameters
Name | Examples | Description |
---|---|---|
Line colors | ||
type | type = notice [default] | Use the correct value for the message box. |
type = style | ||
type = content | ||
type = delete | ||
type = protection | ||
type = images | ||
Images | ||
image | Example.png | Places an image on the left of the message box. |
imagewidth | 56px [default] | Defines the width of the left image. |
imagealt | Notice | Text to be displayed if image isn't shown properly. |
image2 | PD-icon.png | Places a second image on the right of the message box |
image2width | 56px [default] | Defines the width of the right image. |
image2alt | Public Domain | Text to be displayed if the right image isn't shown properly. |
Other | ||
width | [deprecated] | No longer available |
style | e.g. font-size: 90%; | Takes any valid CSS style. |
contents | (see below) |
Contents
Use {{ambox/message}}
in the contents parameter. Example:
{{ambox/message | 1 = Need some help ova here! | 2 = This article needs cleaning up. | 3 = You can help by editing it. }}
produces...
“Need some help ova here!”
This article needs cleaning up.
You can help by editing it.