Template:MessageBox/doc
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
Use this template to display a generic message box.
Important
For your articles, you should prefer using one of the following templates: {{Note}}, {{Important}}, or {{Warning}}.
For your articles, you should prefer using one of the following templates: {{Note}}, {{Important}}, or {{Warning}}.
Parameters
- 1. unnamed
- Add text or an image to the top-left heading box.
- 2. unnamed
- Add text to the main area.
- color (optional)
- Border color of the box and background color of the top-left heading box.
- bgcol (optional)
- Background color of the box.
- titlecol (optional)
- Text color of the top-left heading box.
Usage
See the template's testcases:
Two anonymous parameters | |
---|---|
Wiki code | {{MessageBox|Heading|Text}}
|
Main version | Heading Text |
Sandbox version | Heading Text |
Parameters color and titlecol
| |
---|---|
Wiki code | {{MessageBox|Heading|Text|color=blue|titlecol=grey}}
|
Main version | Heading Text |
Sandbox version | Heading Text |
Important
Try to use as little custom coloring as possible. See Gentoo Wiki:Guidelines for the colors used in some standard "box" templates.
Try to use as little custom coloring as possible. See Gentoo Wiki:Guidelines for the colors used in some standard "box" templates.
Parameter bgcol
| |
---|---|
Wiki code | {{MessageBox|Heading|Text|bgcol=grey}}
|
Main version | Heading Text |
Sandbox version | Heading Text |