Template:Mbox

From Sly Cooper Wiki
Jump to navigation Jump to search
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Mbox/doc to edit this documentation. (How does this work?)

Meta-template for building message boxes (used for article management templates, for example).

Usage

{{Mbox
|bordercolor = gray
|image       = Mbox_default.png
|imagewidth  = 40px
|header      = Example header
|text        = Example text
}}

Parameters

Icon required.png

text

Text content of the box.

Icon required.png

header

Bold text to be displayed as the box header.

Icon optional.png

bordercolor
(default: "gray" )

Color of left border. Accepts standard HTML color names or RGB hex triplets. For the wiki's color conventions see "Colors" below.

Icon optional.png

image
(default: "Mbox default.png" )

Image to be displayed in the box.

Icon optional.png

comment

Small text to be displayed below text.

Icon optional.png

aside

Text placed within a small allocation on the right side separated by a light gray border. Most commonly used to show shortcuts to the page in question (such as on policy pages). When the mbox is closed, this text will be hidden.

Icon optional.png

style

Additional inline styles to the root .mbox element. To ensure a standardized and professional look across all {{mbox}}-based templates, this should only be used very sparingly.

Examples

Example 1

{{Mbox
|bordercolor = black
|header      = Example notice
|text        = Example notices serve example purposes.
}}

results in:

Example notice
Example notices serve example purposes.

Example 2

{{Mbox
|bordercolor = #F1B82F
|header      = Example notice
|text        = Example notices serve example purposes.
|comment     = Example notices are not really useful.
|aside       = Example notices can help sometimes.
}}

results in:

Example notice
Example notices serve example purposes.
Example notices are not really useful.
Example notices can help sometimes.