Difference between revisions of "Template:Ambox/doc"
(cleanup) |
|||
Line 7: | Line 7: | ||
! Name | ! Name | ||
! Examples | ! Examples | ||
+ | ! Description | ||
+ | |- | ||
+ | | colspan="3" | '''''Line colors''''' | ||
|- | |- | ||
|type | |type | ||
− | |''notice'' [default] | + | | style="margin: 0px; padding: 0px;" | |
+ | {| class="wikitable grid" style="width: 100%;" | ||
+ | | style="border-left: 10px solid #1e90ff;" | ''type = notice'' [default] | ||
+ | |- | ||
+ | | class="ambox-style" | ''type = style'' | ||
+ | |- | ||
+ | | class="ambox-content" | ''type = content'' | ||
+ | |- | ||
+ | | class="ambox-delete" | ''type = delete'' | ||
+ | |- | ||
+ | | class="ambox-images" | ''type = images'' | ||
+ | |- | ||
+ | | class="ambox-protection" | ''type = protection'' | ||
+ | |} | ||
+ | | Use the correct value for the message box. | ||
+ | |- | ||
+ | | colspan="3" | '''''Images''''' | ||
|- | |- | ||
|image | |image | ||
|''Example.png'' | |''Example.png'' | ||
+ | |Places an image on the left of the message box. | ||
|- | |- | ||
|imagewidth | |imagewidth | ||
|''56px'' [default] | |''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. | ||
+ | |- | ||
+ | | colspan="3" | '''''Other''''' | ||
|- | |- | ||
|width | |width | ||
|['''deprecated'''] | |['''deprecated'''] | ||
+ | |''No longer available'' | ||
|- | |- | ||
|style | |style | ||
− | | | + | | e.g. ''font-size: 90%;'' |
+ | | Takes any valid CSS style. | ||
|- | |- | ||
|contents | |contents | ||
− | | | + | | (see below) |
|} | |} | ||
− | === | + | == Contents == |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Use {{tl|ambox/message}} in the ''contents'' parameter. Example: | |
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | + | <pre><nowiki> |
− | {{ | + | {{ambox/message |
− | + | | 1 = Need some help ova here! | |
− | | | + | | 2 = This article needs cleaning up. |
− | | | + | | 3 = You can help by editing it. |
− | |||
− | |||
}} | }} | ||
− | + | </nowiki></pre> | |
− | + | ||
− | + | produces... | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </nowiki> | ||
− | </pre> | ||
− | |||
− | |||
− | |||
− | + | {{ambox/message | |
− | {{ | + | | 1 = Need some help ova here! |
− | | | + | | 2 = This article needs cleaning up. |
− | | | + | | 3 = You can help by editing it. |
− | | | ||
− | |||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<noinclude>[[Category:Template documentation|{{BASEPAGENAME}}]]</noinclude> | <noinclude>[[Category:Template documentation|{{BASEPAGENAME}}]]</noinclude> |
Revision as of 23:26, 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 |
|
Use the correct value for the message box. | ||||||
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.