Template:MessageBox

From Gentoo Wiki
Jump to: navigation, search
{{{1}}}
{{{2}}}
[edit

Documentation

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.

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}}.

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.
Parameter bgcol
Wiki code {{MessageBox|Heading|Text|bgcol=grey}}

Main version
Heading
Text
Sandbox version
Heading
Text

See also

Note
The above documentation is transcluded from Template:MessageBox/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)