Template:Ivory messagebox
File:Ambox warning yellow.svg | This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
The ivory messagebox or Ivmbox is a simplistic, full-width box intended to surround important messages or notices. 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 Template:para instead of merely Template:para:
Template:tlx which gives:
The template can display an image to the left of the text content. By default, the image will be 25px in width:
The image can be made smaller or larger using the Template:para parameter:
Advanced use[edit]
By default, if an icon is used with Ivmbox, the icon will not be clickable (in MediaWiki image nomenclature, Template:para will be declared but empty). If you wished, for example, clicking the image to lead to List of Prime Ministers of the United Kingdom, you would include the following parameter:
The image, by default, also has no caption; in a similar style, the caption can be declared by including the following parameter:
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 parameter Template:para; for example:
Template:para for a salmon message box
Template:para for a #90EE90 (light green) message box.
See also[edit]
There are seven metatemplates in the Module:Message box family:
{{Ambox}}
, for messageboxes on article pages.{{Cmbox}}
, for messageboxes on category pages.{{Imbox}}
, for messageboxes on file (image) pages.{{Tmbox}}
, for messageboxes on talk pages.{{Fmbox}}
, for header and footer messageboxes.{{Ombox}}
, for messageboxes on other types of page.{{Mbox}}
, for messageboxes that are used in different namespaces and change their presentation accordingly.
Closely related metatemplates:
{{Asbox}}
, for messageboxes in article stubs.{{Dmbox}}
, for messageboxes on disambiguation or set-index pages.- Template:tla, a simple full-width box with default ivory background intended to frame important messages or notices.
The above documentation is transcluded from Template:Ivory messagebox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |