Template:MessageBox/doc

{{Documentation Page {{MessageBox }}
 * description = Template for creating message boxes. It is highly customizable with classes, inline styles, and provided CSS selectors. Optional features such as an image, left border, right-side text (for e.g. shortcuts), and a dismiss function. It uses the Lua templating language, and more information can be found on the Global Lua Module page. This version is modified to produce a starter style, based on the basic style from the module. To use the full capabilities of this module and remove the default styling, remove the indicated portions of Module:Mbox.
 * sintax =
 * class =
 * bordercolor =
 * type =
 * bgcolor =
 * style =
 * image =
 * imagewidth =
 * imagelink =
 * header =
 * text =
 * comment =
 * aside =
 * id =
 * collapsed =

Design
Some communities may wish to customize the appearance of the mboxes. The most common styling options are provided illustrated in CSS.


 * Technical notes
 * Additional inline styles to the root  element can be achieved via the   parameter in the template.


 * example =

Basic MessageBox
Produces:

Using types
To use types, CSS variables must be added, such as:

If added:

Produces:

Depending on your styling, there may not be a visual difference in the above example.

With an image
Produces:

With an aside
Produces:

Standard/default style
Produces:

}}