Template:Mbox

From Tribes Ascend Wiki
(Redirected from Template:Cmbox)
Jump to: navigation, search
Template documentation (for the template shown above, sometimes hidden or invisible)

Meta-template for building message boxes.

Usage[edit]

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

Parameters[edit]

(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.

bg

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

content

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

footer

Text in small font to be displayed below content.

header

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

image

File name of an image (without "File:") which should be displayed on the left side of the box. If set to "none", no image is displayed.

Copy/paste[edit]

{{Mbox
|header        =
|content       =
|footer        =
|border        =
|bg            =
|image         =
}}

Examples[edit]

No border, no image[edit]

{{Mbox
|header        =Example notice
|content       =Example notices serve example purposes.
|footer        =Example footer
|border        =none
}}

results in:

Ac objective baserepair.png
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
|image         =Mbox default.png
}}

results in:

Ac objective baserepair.png
Example notice
Example notices serve example purposes.

Technical[edit]

Documentation transcluded from Template:Mbox/doc.