Wikia

Jak and Daxter Wiki

Mbox

Talk0
1,054pages on
this wiki

Template page

[view · edit · purge]
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:

UsageEdit

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

ParametersEdit

optionalIcon optional
(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
bg

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

requiredIcon required
content

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

optionalIcon optional
cssclass

Specifies additional CSS classes for the box.

optionalIcon optional
footer

Text in small font to be displayed below content.

optionalIcon optional
header

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

Style parametersEdit

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
body style

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

optionalIcon optional
content style

Specifies CSS styles to apply to the content area.

optionalIcon optional
footer style

Specifies CSS styles to apply to the footer area.

optionalIcon optional
header style

Specifies CSS styles to apply to the header area.

optionalIcon optional
image style

Specifies CSS styles to apply to the image area.

optionalIcon optional
style

Specifies CSS styles to apply to all areas.

ExamplesEdit

No border, no imageEdit

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

results in:

Border, image, background colorEdit

{{Mbox
|header        =Example notice
|content       =Example notices serve example purposes.
|footer        =Example footer
|border        =#ABA000
|bg            =#DDDDDD
}}

results in:

Documentation transcluded from Template:Mbox/doc.

Photos

Add a Photo
941photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki