Template:ContentBox/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.

Use this template to create a styled box for content.

Parameters

Parameter name Required? Default value Description
Anonymous parameter 1 Yes (n/a) Add text or an image to the top-left heading box.
Anonymous parameter 2 Yes (n/a) Add text to the main area.
color No #333 Border color of the box and background color of the top-left heading box.
bgcol No #F3F3F3 Background color of the box.
titlecol No white Text color of the top-left heading box.
subtitle No (n/a) Text of a second heading box right the top-left one.
color2 No #AAA Background color of the second heading box.
subtitlecol No white Text color of the second heading box.
description No (n/a) Add heading text.
descriptioncol No (n/a) Text color of the heading text.
rightmsg No (n/a) Add a second heading text aligned to the right.

The default value of descriptioncol is the value of color or, if that is not specified, #333.

Examples

See the template's testcases:


Parameter: 1., 2. unnamed
Wiki code {{ContentBox|Heading|Text}}

Main version
Heading

Text
Sandbox version
Heading

Text
Parameter: bgcol
Wiki code {{ContentBox|Heading|Text|bgcol=grey}}

Main version
Heading

Text
Sandbox version
Heading

Text
Parameter: color, titlecol
Wiki code {{ContentBox|Heading|Text|color=blue|titlecol=grey}}

Main version
Heading

Text
Sandbox version
Heading

Text
Parameter: subtitle, color2, subtitlecol
Wiki code {{ContentBox|Heading|Text|subtitle=Subtitle|color2=blue|subtitlecol=grey}}

Main version
HeadingSubtitle

Text
Sandbox version
HeadingSubtitle

Text
Parameter: description, descriptioncol
Wiki code {{ContentBox|Heading|Text|description=Description|descriptioncol=blue}}

Main version
HeadingDescription

Text
Sandbox version
HeadingDescription

Text
Parameter: rightmsg
Wiki code {{ContentBox|Heading|Text|rightmsg=RightMessage}}

Main version
Heading

Text
Sandbox version
Heading

Text