Template:Message box/doc

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information
Shortcut
msgbox


This template is used to add consistent styling to message boxes.

Basic usage

{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}

Will result in:

This is a normal message box
With helpful and descriptive subtext


An icon can be added to indicate the type of the message:

{{msgbox
| icon = info-sign
| text = This is a message box with an information icon
}}

Will result in:

This is a message box with an information icon

The Font Awesome Icons are used here (without the icon- prefix).

Advanced usage

{{msgbox
| bgcol = #eef
| linecol = #ddf
| textcol = #336
| icon = flag
| title = This is a purple message box
| text = It is customized with some extra CSS
| css = box-shadow: 0px 0px 6px #888;
}}

Will result in:

This is a purple message box
It is customized with some extra CSS

Category

This template automatically adds templates that use it to Category:Notice templates. To prevent that, simply set the parameter {{{nocat}}}

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis