Template:Message box/doc

< Template:Message box
Revision as of 20:03, 31 July 2015 by FantasyTeddy (talk | contribs) (Created page with "{{documentation header}} {{shortcut|msgbox}} {{Protected|template|talkpage=Template talk:Msgbox}} This template is used to add consistent styling to message boxes. == Basic...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Mini usage

{{msgbox
| mini = 1
| icon = 8
| text = This is a mini message box with an information icon using [[Template:CommentSprite]]
}}

Will result in:

This is a mini message box with an information icon using Template:CommentSprite

Advanced usage

{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link and some custom CSS
| discuss = 1
| css = box-shadow: 0px 0px 6px #888;
}}

Will result in:

This is a blue message box
It has a discuss link and some custom CSS
{{msgbox
| bgcol = #eef
| linecol = #ddf
| title = This is a blue message box
| text = It has a discuss link, some custom CSS and a custom image
| discuss = 1
| image = Bot.png
| css = box-shadow: 0px 0px 6px #888;
}}

Will result in:

This is a blue message box
It has a discuss link, some custom CSS and a custom image

A custom image size can also be specified with "imagewidth", for example: imagewidth = 50px

Advanced mini usage

{{msgbox
| mini = 1
| image = Bot.png
| bgcol = #eef
| linecol = #ddf
| css = box-shadow: 0px 0px 6px #888;
| text = This is a mini message box, it is using similar settings as the box used in the advanced example above.
}}

Will result in:

This is a mini message box, it is using similar settings as the box used in the advanced example above.

This can also have a custom image size.

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