Template:Mbox

From The Vault - Fallout Wiki
Jump to: navigation, search
Template documentation (for the template shown above, sometimes hidden or invisible)

Meta-template for building message boxes.

There are several sub-templates available for specific uses:

Usage

{{Mbox
|header        =Example header
|content       =Example text
|image         =Mbox default.png
|border        =none
}}

Parameters

OptionalIcon optional.png
(default: "gray")
border

Color of left border. Accepts standard HTML color names or RGB hex triplets. If set to "none", no colored border is displayed.

OptionalIcon optional.png
bg

Color of box background. Accepts standard HTML color names or RGB hex triplets.

RequiredIcon required.png
content

Text content of the box, displayed below header and above footer.

OptionalIcon optional.png
cssclass

Specifies additional CSS classes for the box.

OptionalIcon optional.png
footer

Text in small font to be displayed below content.

OptionalIcon optional.png
header

Main title/"headline" of the message box, displayed above content.

OptionalIcon optional.png
(default: "Mbox default.png")
image

File name of an image (without "File:") which should be displayed on the left side of the box.

OptionalIcon optional.png
(default: "35x30px")
image size

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")


OptionalIcon optional.png
body style

Specifies CSS styles to apply to the area containing content, header and footer (i.e. everything but image).

OptionalIcon optional.png
content style

Specifies CSS styles to apply to the content area.

OptionalIcon optional.png
footer style

Specifies CSS styles to apply to the footer area.

OptionalIcon optional.png
header style

Specifies CSS styles to apply to the header area.

OptionalIcon optional.png
image style

Specifies CSS styles to apply to the image area.

OptionalIcon optional.png
style

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:

Mbox default.png
Example notice
Example notices serve example purposes.
Documentation transcluded from Template:Mbox/doc.