Template:Ivory messagebox/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(add {{high-use}})
m (ct.)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use|5000+}}
{{High-use|85,000+}}
{{Template shortcut|Ivmbox}}
{{Template shortcut|Ivmbox}}
<!-- Categories and interwikis go at the bottom of this page. -->
<!-- Categories at the bottom of this page, please -->

{| 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"
| To leave an Ivmbox message with ''no'' icon:
| To leave an Ivmbox message with ''no'' icon:
*{{tlx|ivmbox|Text to display in messagebox}}
*{{tlx|Ivmbox|Text to display in messagebox}}


To use this template ''with'' an icon, use:
To use this template ''with'' an icon, use:
* {{tlx|ivmbox|Text to display|Ambox notice.svg}}
* {{tlx|Ivmbox|Text to display|Ambox notice.svg}}
|}
|}


The '''<u>iv</u>ory <u>m</u>essage<u>box</u>''' 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 '''<u>iv</u>ory <u>m</u>essage<u>box</u>''' 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 {{para|1|Lorem ipsum [etc…]}} instead of merely {{para||Lorem ipsum [etc…]}}:
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 {{para|1|Lorem ipsum [etc…]}} instead of merely {{para||Lorem ipsum [etc…]}}:


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


The template can display an image to the left of the text content. By default, the image will be 25px in width:
The template can display an image to the left of the text content. By default, the image will be 25px in width:


{{tlx|ivmbox|Lorem ipsum [etc…]|Ambox notice.svg}}
{{tlx|Ivmbox|Lorem ipsum [etc…]|Ambox notice.svg}}
{{ivmbox|{{Lorem ipsum}}|Ambox notice.svg}}
{{Ivmbox|{{Lorem ipsum}}|Ambox notice.svg}}


The image can be made smaller or larger using the {{para|imagesize}} parameter:
The image can be made smaller or larger using the {{para|imagesize}} parameter:


{{tlx|ivmbox|Lorem ipsum [etc…]|Ambox notice.svg|imagesize{{=}}40px}}
{{tlx|Ivmbox|Lorem ipsum [etc…]|Ambox notice.svg|imagesize{{=}}40px}}
{{ivmbox|{{Lorem ipsum|2}}|Ambox notice.svg|imagesize=40px}}
{{Ivmbox|{{Lorem ipsum|2}}|Ambox notice.svg|imagesize=40px}}


=== Advanced use ===
===Advanced use===
By default, if an icon is used with Ivmbox, the icon will not be clickable (in [[Wikipedia:Extended image syntax|MediaWiki image nomenclature]], {{para|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:

By default, if an icon is used with Ivmbox, the icon will not be clickable (in [[Wikipedia:Extended image syntax|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:


{{para|image link|List of Prime Ministers of the United Kingdom}}
{{para|image link|List of Prime Ministers of the United Kingdom}}
Line 43: Line 43:
{{para|bg|#90EE90}} for a <span style="background: #90EE90; padding: 1px;">#90EE90 (light green)</span> message box.
{{para|bg|#90EE90}} for a <span style="background: #90EE90; padding: 1px;">#90EE90 (light green)</span> message box.


=== See also ===
===See also===
{{Mbox templates see also}}
{{Mbox templates see also}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |

| <!-- Categories below this line, please: -->
<includeonly>
[[Category:Mbox and messagebox templates]]
<!-- Categories and interwikis go here: -->
}}</includeonly>
[[Category:Wikipedia metatemplates|Ivmbox]]
</includeonly>

Latest revision as of 17:15, October 27, 2018

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|Ambox notice.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:

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

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

See also

Template:Mbox templates see also