Template:Mbox/doc

From Tribes Ascend Wiki
Revision as of 20:03, 30 August 2012 by GhostAvatar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This page contains usage information for Template:Mbox.

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]