{{#ifeq:doc |doc
|
{{#ifeq:show |show
| <templatestyles src="Module:Message box/ombox.css"></templatestyles>
Modèle:Strong for Modèle:Terminate sentence It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Modèle |Utilisateur |modèle template page |{{#if:Modèle |modèle page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Modèle:Ivory messagebox | [[Category:{{#switch:Modèle |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
<templatestyles src="Module:Message box/ombox.css"></templatestyles>
This template is used on approximately 129 000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
<templatestyles src="Shortcut/styles.css"></templatestyles>
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 |{{SAFESUBST:#if:1|1=}}Lorem ipsum [etc…]
instead of merely |{{SAFESUBST:#if:|=}}Lorem ipsum [etc…]
:
{{Ivmbox|Lorem ipsum [etc…]}}
which gives:
[[File:{{{2}}}|25px]] | {{#ifexpr:1>0|{{#ifeq: | yes
| | {{#switch:String Module Error: String subset index out of range | : | # | * =| #default = }} }} {{#ifeq:no|yes|Lorem ipsum|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.|}}{{#ifexpr:1>1|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * =| #default = }} }}Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. |}}{{#ifexpr:1>2|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P3 |}}{{#ifexpr:1>3|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P4 |}}{{#ifexpr:1>4|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P5 |}}{{#ifexpr:1>5|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P6 |}}{{#ifexpr:1>6|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P7 |}}{{#ifexpr:1>7|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P8 |}}{{#ifexpr:1>8|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P9 |}}{{#ifexpr:1>9|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P10 |}}{{#ifexpr:1>10|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P11 |}}{{#ifexpr:1>11|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P12 |}}{{#ifexpr:1>12|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P13 |}}{{#ifexpr:1>13|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P14 |}}{{#ifexpr:1>14|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P15 |}}{{#ifexpr:1>15|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P16 |}}{{#ifexpr:1>16|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P17 |}}{{#ifexpr:1>17|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P18 |}}{{#ifexpr:1>18|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P19 |}}{{#ifexpr:1>19|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P20}}{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }}}}{{#ifeq:|no||{{#switch: {{#if: | {{{demospace}}} | {{#ifeq:Modèle| | main | other }} }} | main = | other | #default = }}}} |
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}}
{{#ifexpr:1>0|{{#ifeq: | yes
| | {{#switch:String Module Error: String subset index out of range | : | # | * =| #default = }} }} {{#ifeq:no|yes|Lorem ipsum|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.|}}{{#ifexpr:1>1|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * =| #default = }} }}Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. |}}{{#ifexpr:1>2|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P3 |}}{{#ifexpr:1>3|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P4 |}}{{#ifexpr:1>4|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P5 |}}{{#ifexpr:1>5|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P6 |}}{{#ifexpr:1>6|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P7 |}}{{#ifexpr:1>7|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P8 |}}{{#ifexpr:1>8|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P9 |}}{{#ifexpr:1>9|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P10 |}}{{#ifexpr:1>10|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P11 |}}{{#ifexpr:1>11|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P12 |}}{{#ifexpr:1>12|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P13 |}}{{#ifexpr:1>13|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P14 |}}{{#ifexpr:1>14|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P15 |}}{{#ifexpr:1>15|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P16 |}}{{#ifexpr:1>16|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P17 |}}{{#ifexpr:1>17|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P18 |}}{{#ifexpr:1>18|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P19 |}}{{#ifexpr:1>19|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P20}}{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }}}}{{#ifeq:|no||{{#switch: {{#if: | {{{demospace}}} | {{#ifeq:Modèle| | main | other }} }} | main = | other | #default = }}}} |
The image can be made smaller or larger using the |{{SAFESUBST:#if:imagesize|imagesize=}}
parameter:
{{Ivmbox|Lorem ipsum [etc…]|Information icon4.svg|imagesize=40px}}
{{#ifexpr:2>0|{{#ifeq: | yes
| | {{#switch:String Module Error: String subset index out of range | : | # | * =| #default = }} }} {{#ifeq:no|yes|Lorem ipsum|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.|}}{{#ifexpr:2>1|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * =| #default = }} }}Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. |}}{{#ifexpr:2>2|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P3 |}}{{#ifexpr:2>3|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P4 |}}{{#ifexpr:2>4|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P5 |}}{{#ifexpr:2>5|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P6 |}}{{#ifexpr:2>6|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P7 |}}{{#ifexpr:2>7|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P8 |}}{{#ifexpr:2>8|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P9 |}}{{#ifexpr:2>9|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P10 |}}{{#ifexpr:2>10|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P11 |}}{{#ifexpr:2>11|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P12 |}}{{#ifexpr:2>12|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P13 |}}{{#ifexpr:2>13|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P14 |}}{{#ifexpr:2>14|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P15 |}}{{#ifexpr:2>15|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P16 |}}{{#ifexpr:2>16|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P17 |}}{{#ifexpr:2>17|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P18 |}}{{#ifexpr:2>18|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P19 |}}{{#ifexpr:2>19|{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }} }}Modèle:Lorem ipsum/P20}}{{#ifeq: | yes | | {{#switch:String Module Error: String subset index out of range | : | # | * = | #default = }}}}{{#ifeq:|no||{{#switch: {{#if: | {{{demospace}}} | {{#ifeq:Modèle| | main | other }} }} | main = | other | #default = }}}} |
Advanced use
By default, if an icon is used with Ivmbox, the icon will not be clickable (in MediaWiki image nomenclature, |{{SAFESUBST:#if:link|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:
|{{SAFESUBST:#if:image link|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 |{{SAFESUBST:#if:bg|bg=}}
; for example:
|{{SAFESUBST:#if:bg|bg=}}salmon
for a salmon message box
|{{SAFESUBST:#if:bg|bg=}}#90EE90
for a #90EE90 (light green) message box.
See also
- {{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.
- {{Ivory messagebox}}, a simple full-width box with default ivory background intended to frame important messages or notices.