Template:Header style/doc

Purpose
This template displays some text with a styled header.

Usage
This template has two display modes, depending on where the text is to be included.
 * The title mode is used within regular text, usually in the header part of a page (i.e. between the title and the content of the page). The whole text of the template is considered as the header and is displayed in a centered box.
 * The table mode – as you might expect – is used in tables, in place of a cell. Contrary to the previous mode, the content is divided in two parts:
 * the header (or title), with an optional image, which is displayed in a colored box,
 * and the main text, without any default formatting.

Title mode blank template
To use this template, you can copy and paste the following code to the page you want to use it on, and fill in the parameters.

Table mode blank template
To use this template, you can copy and paste the following code to the table cell you want to use it in, and fill in the parameters.

Title mode minimal example
Result:

Table mode minimal example
Result:

Table mode advanced example
Result: