Template:Ivory messagebox/doc: Difference between revisions

From IxWiki
Jump to navigation Jump to search
wp>CommonsDelinker
Replacing Ambox_notice.svg with File:Information_icon4.svg (by CommonsDelinker because: file renamed, redirect linked from other project).
 
m 1 revision imported
 
(No difference)

Latest revision as of 16:43, 14 August 2020

To leave an Ivmbox message with no icon:
  • {{Ivmbox|Text to display in messagebox}}

To use this template with an icon, use:

  • {{Ivmbox|Text to display|Information icon4.svg}}

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 |1=Lorem ipsum [etc…] instead of merely |Lorem ipsum [etc…]:

{{Ivmbox|Lorem ipsum [etc…]}} which gives:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

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…]|Information icon4.svg}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The image can be made smaller or larger using the |imagesize= parameter:

{{Ivmbox|Lorem ipsum [etc…]|Information icon4.svg|imagesize=40px}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Template:Lorem/pb-condTemplate:Lorem ipsum/P2

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 wished, for example, clicking the image to lead to List of Prime Ministers of the United Kingdom, you would include the following parameter:

|image link=List of Prime Ministers of the United Kingdom

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 |bg=; for example:

|bg=salmon for a salmon message box
|bg=#90EE90 for a #90EE90 (light green) message box.

See also

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.
  • {{Ivmbox}}, a simple full-width box with default ivory background intended to frame important messages or notices.

Templates intended to be used in conjunction with Mboxes: