Mbox
Talk0this wiki
Template page
Contents |
Meta-template for building message boxes.
There are several sub-templates available for specific uses:
- {{Mbox management}} for building page management templates
- {{Mbox talk}} for building talk page notices
Usage
Edit
{{Mbox
|header =Example header
|content =Example text
|image =Mbox default.png
|border =none
}}
Parameters
Edit
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.
Style parameters
Edit
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
Edit
No border, no image
Edit
{{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
Edit
{{Mbox
|header =Example notice
|content =Example notices serve example purposes.
|footer =Example footer
|border =#ABA000
|bg =#DDDDDD
}}
results in:
Example notice Example notices serve example purposes. |