Difference between revisions of "Template:Ivory messagebox/doc"
imported>AGK (add) |
imported>Wbm1058 (template shortcut: Ivmbox) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | {{Template shortcut|Ivmbox}} | ||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis go at the bottom of this page. --> | ||
{| class="messagebox" style="background-color:#f3f3ff; border:1px solid; padding-left: 0.5em; padding-right: 0.5em" | {| class="messagebox" style="background-color:#f3f3ff; border:1px solid; padding-left: 0.5em; padding-right: 0.5em" | ||
| Line 42: | Line 43: | ||
=== See also === | === See also === | ||
| − | |||
* [[Template:Mbox]] | * [[Template:Mbox]] | ||
Revision as of 19:17, 9 December 2013
| This is a documentation subpage for Template:Ivory messagebox. It contains usage information, categories and other content that is not part of the original template page. |
The ivory messagebox or ivmbox is a simplistic, full-width box intended to surround important messages or notices. {{Ivmbox}} is an exact copy of this template. The ivory background of this template contrasts well to the white background used by most Wikipedia users on most Wikipedia pages (so it is noticeable enough to be used in notices or messages), but the background colour is not as garish as many other message boxes.
The basic use of the template is as follows. If the message you wish to convey using Ivmbox contains complex wiki-code or equals signs, it may be necessary to use |1=Lorem ipsum [etc…] instead of merely |Lorem ipsum [etc…]:
{{ivmbox|Lorem ipsum [etc…]}} which gives:
The template can display an image to the left of the text content. By default, the image will be 25px in width:
{{ivmbox|Lorem ipsum [etc…]|Ambox notice.svg}}
The image can be made smaller or larger using the |imagesize= parameter:
{{ivmbox|Lorem ipsum [etc…]|Ambox notice.svg|imagesize=40px}}
Advanced use
By default, if an icon is used with Ivmbox, the icon will not be clickable (in MediaWiki image nomenclature, "link=" will be declared but empty). If you wish, for example, for the image to lead to List of Prime Ministers of the United Kingdom when clicked, you would include the following parameter:
|image link=List of Prime Ministers of the United Kingdom
The image, by default, also has no caption; in a similar style, the caption can be declared by including the following parameter:
|image caption=Lorem ipsum
The background of an Ivmbox is the off-white X11 colour ivory. If you like the functionality of Ivmbox but require it to display with a background other than the off-white ivory it uses by default, simply include the following parameter:
|bg=salmon for a salmon message box
|bg=#90EE90 for a #90EE90 (light green) message box.
See also