Meta-template for building message boxes.
There are several sub-templates available for specific uses:
{{Mbox management}}
for building page management templates{{Mbox mediawiki}}
for building interface messages ("MediaWiki:" namespace){{Mbox project}}
for building project tags{{Mbox talk}}
for building talk page notices
Usage
{{Mbox |header =Example header |content =Example text |image =Mbox default.png |border =none }}
Parameters
Color of left border. Accepts standard HTML color names or RGB hex triplets. If set to "none", no colored border is displayed.
Color of box background. Accepts standard HTML color names or RGB hex triplets.
Text content of the box, displayed below header
and above footer
.
Specifies additional CSS classes for the box.
Text in small font to be displayed below content
.
Main title/"headline" of the message box, displayed above content
.
File name of an image (without "File:") which should be displayed on the left side of the box.
Size of image
in pixels.
Style parameters
All style
options should be used sparingly as they can lead to visual inconsistencies. Some examples of useful styles:
- Changing background color:
background-color: #123456;
(accepts HTML color names or RGB hex triplets) - Changing (horizontal) text-alignment:
text-align: center;
(accepts "center", "justify", "left", "right") - Changing vertical text-alignment:
vertical-align: middle;
(accepts "bottom", "middle", "top")
Specifies CSS styles to apply to the area containing content
, header
and footer
(i.e. everything but image
).
Specifies CSS styles to apply to the content
area.
Specifies CSS styles to apply to the footer
area.
Specifies CSS styles to apply to the header
area.
Specifies CSS styles to apply to the image
area.
Specifies CSS styles to apply to all areas.
Examples
No border, no image
{{Mbox |header =Example notice |content =Example notices serve example purposes. |footer =Example footer |border =none }}
results in:
Example notice Example notices serve example purposes. |
Border, image, background color
{{Mbox |header =Example notice |content =Example notices serve example purposes. |footer =Example footer |border =#ABA000 |bg =#DDDDDD |image =Mbox default.png }}
results in:
![]() | Example notice Example notices serve example purposes. |