Jump to content
Search

This wiki is under development. Features may be missing. Data loss is unlikely, but possible. Read the announcement.

Template:Mbox

This template is a base message box.

Examples

Note:

Note

This is what a standard note message box looks like.

Warning:

Warning

This is what a warning message box looks like.

Danger:

Danger

This is what a danger message box looks like.

Doccan:

Doccan

This is what a doccan message box looks like.

Info:

Info

This is what an info message box looks like.

Tip:

Tip

This is what a tip message box looks like.

Standard Box (No Type):

Notice

Because the type parameter is left blank, the icon space is automatically removed for a clean, full-width box.

Inline Warning Box:

Warning

This is an inline warning box, allowing it to sit side-by-side with other elements.

TemplateData

A message box to display notices, warnings, and tips.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Box Typetype

The type of notice. Automatically sets the icon and color (e.g., note, warning, danger, doccan, info, tip). Leave blank for a plain box without an icon.

Suggested values
note warning danger doccan info tip
Stringsuggested
Heading Labellabel

The title or label for the message box.

Stringrequired
Message Texttext

The main content of the message box.

Contentrequired
Inline Modeinline

Set to 'yes' to change the display to inline-block, allowing the box to sit alongside other elements.

Booleansuggested
Additional CSS Classesclass

Any additional space-separated classes to apply to the outer box.

Stringoptional
HTML IDid

An optional HTML id attribute for linking directly to this notice on a page.

Stringoptional
Outer Box Stylestyle

Additional inline CSS styling for the outer container.

Example
margin-bottom: 1em;
Stringoptional
Text Styletextstyle

Additional inline CSS styling for the text content area.

Example
font-size: 90%;
Stringoptional