Template:MessageBox
Jump to navigation
Jump to search
Header
John fortnite is here...
Template Documenation
Adds a box with a message to a page. This is mainly used by templates.
Sometimes, this is used to also add a category. As an example {{Stub}} adds the page to Category:Stubs
Usage
The most basic usage is using text, header, and image to display single lined messages.
{{MessageBox
| header = Lorem ipsum
| text = dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
| image = [[File:Example.png|200px]]
}}
The following would render as:
Tips
- Use the font-size parameter to set a custom font size for the body. As an example, {{Documentation}} uses this to set it to "inherit," which makes the font size the same as the rest of the page.
- You can set the expected width of the box using box-width. This allows for message boxes to allow space for infoboxes, and other right aligned objects, while allowing them to have a preferred width.
- You can force a width using force-width. This makes it so that the message box will always be a set width.
- Templates that use this template can be found using Special:WhatLinksHere.
- Set "separate header" to "y" to have the header be put into a somewhat separated box, with a bottom border.
- Use float to set where the message box floats to on the page. As an example, `float=right` would make it float to the right side of the page (be to the right of the content).
- Set the border-radius (the curve to the border) using border-radius.
- The text parameter can have more than one line, as an example: {{Draft article}} makes full use of this.
Colors
- text-color color of the text.
- border-color colors of the borders.
- background-color sets the color of the box background.
- header-color sets the color of the header, only active if the separate header is set to y.
- header-text-color sets the color of the text of the header, only active if the separate header is set to y..