Notes:
This template is used as a basis for all messagebox templates in this wiki. It provides a common interface and standardization for commonly-used messages and notifications.
It is subst-enabled.
Syntax:
{{Messagebox|
| image =
| imagesize =
| caption =
| message =
| submessage =
| toolbox =
| subst =
| style =
| align =
| border =
| backcolor =
| width =
| class =
}}
| Parameter | Required | Usage |
|---|---|---|
image |
✗ | The full filename of an image to display in the messagebox. |
imagesize |
✗ | The size of the image to be displayed. |
caption |
✗ | A short caption a the top of the messagebox. |
message |
✓ | The message to be displayed in the messagebox. |
submessage |
✗ | A smaller message to be displayed in the messagebox beneath the primary message. |
toolbox |
✗ | A smaller message to be displayed in the right bottom corner of the messagebox, beneath the submessage, such as a discussion link. |
subst |
✗ | "subst:" or blank. |
style |
✗ | Manual style to replace the standard defined messagebox style. |
align |
✗ | "left", "right" or "center". Notice: If "style" is specified, then the following parameters are ignored. |
border |
✗ | Border style. Notice: If "style" is specified, then the following parameters are ignored. |
backcolor |
✗ | Background color. Notice: If "style" is specified, then the following parameters are ignored. |
width |
✗ | Width of the messagebox. Notice: If "style" is specified, then the following parameters are ignored. |
class |
✗ | CSS class to add to the message box. Multiple classes can be added separated by spaces. |
Example:
This template is mostly meant to be used as a base for other templates:
{{Messagebox|
| image = Block Icon.png
| imagesize = 32px
| caption = This is the caption.
| message = This is the main message of the box, use it to explain why this box is presented.
| submessage = This is the submessage, it can be used to give instructions on when this message box
should be removed, for example.
| toolbox = [[{{TALKPAGENAME}}|Discuss]]
| class = messagebox
}}
