Template:Message box/doc

Purpose
This template displays in a colored box a centered message with an optional image on the left.

It's often used as a meta-template to build boilerplate message boxes, although it can be used as it is.

Usage
This template has two display modes, depending on where the message box is to be included.
 * The default mode corresponds to message boxes in the header part of a page (i.e. between the title and the content of the page). These are messages that are related to the whole page or article.
 * The alternative mode, called "inline", is to be used when a message box is inserted in the content of the page. It often means the message is only related to the below section or paragraph. Message boxes displayed in this way are smaller and have tighter margins than header message boxes.

Default mode blank template
To use this template, you can copy and paste the following code to the page you want to use it on, fill in the parameters, and remove unwanted flags.

Inline mode blank template
To use this template, you can copy and paste the following code to the page you want to use it on, and fill in the parameters.

Anonymous parameters
Anonymous parameters of this template are used as flags which alter the default behavior of the template (see Usage). This means that each anonymous parameter (without name and equals sign before the value) can be one of the fixed values detailed in the below table.

All flags are optional and they can be written in any order. They can also be mixed with named parameters (unless stated otherwise).

Note that only the first anonymous parameter is checked for flags (which is the maximum number of compatible flags in a single template use).

Minimal example
Result:

Default mode example
Result:

Default mode with left-aligned text example
Result:

Inline mode example
This is a first paragraph.

This is a second paragraph.

Result:

This is a first paragraph.

This is a second paragraph.