[purge]
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more informationShortcut
This template is used to add consistent styling to message boxes.
Usage
This section is a work in progress.
Please help in the expansion or creation of this template by expanding or improving it. The talk page may contain suggestions.
Note:
* Add the missing info about the 3 parameters using an "?"
* Make a proper parameters section, explaining their usage.
** It should use a templatedata table.
Note:
* Add the missing info about the 3 parameters using an "?"
* Make a proper parameters section, explaining their usage.
** It should use a templatedata table.
{{Message box
|mini = Mini mode
|small = Mini mode
|class = Class used for color criteria
|bgcol = Custom background color
|linecol = Custom line color
|width = Custom width
|float = Custom alignment
|icon = Icon from [[Template:CommentSprite]]
|imagecss = ?
|image = Extra image
|imagetextbefore = ?
|imagetextafter = ?
|imagesize = Image size changer
|title = Template title text
|discuss = Discuss button enabler
|discussPage = Talk page changer
|discussAnchor = Talk page section specifier
|linkshere = Links to [[Special:WhatLinksHere/]]
|text = Template text
|css = Custom css
}}
Parameters
This section of the article is empty.
You can help by adding to it.
Color criteria
When a template uses Message boxes to make its contents, it must follow a certain color criteria if it belongs to any of the following criteria:
| Criteria | Class code | Color displayed |
|---|---|---|
| Unclassified templates (default) | ||
| Warning for disclaimer/deletion of a page | class = msgbox-red
|
|
| Suggesting a page to be moved/split/merged | class = msgbox-purple
|
|
| Notice for maintenance/editing-related actions of a page | class = msgbox-yellow
|
|
| Information regarding the status of a page | class = msgbox-green
|
|
| Information regarding the content of a page | class = msgbox-orange
|
|
| Details about editions and/or versions | class = msgbox-blue
|
|
| Unused/Custom purposes | class = msgbox-magenta
|
Examples
| Code | Result |
|---|---|
Basic usage:
{{msgbox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}
|
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]]
}}
|
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, some custom CSS and a custom image
| discuss = 1
| image = Bot.png
| css = box-shadow: 10px 10px 2px #888;
}}
|
This is a blue message box [discuss]
It has a discuss link, some custom CSS and a custom image
|
Advanced mini usage:
{{msgbox
| mini = 1
| image = Bot.png
| bgcol = #ddc
| linecol = #dcb
| 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.
}}
|