Template:Color block/doc

Color block template
This template can be used to display a color block and its associated CSS color name / HEX value.

Using a CSS color keyword
Example:

Output:

Using a CSS HEX color value
Note: A HEX color value must be prefixed by the "#" character.

Example:

Output:

Using a custom name
You may specify a custom color name to be displayed, instead of the CSS keyword or HEX value.

Example:

Output:

Color tooltip
If you have specified a custom color, then you can use  to show a tooltip for the CSS color name / HEX color value. If you are accessing Wikipedia through a PC, then you can hover the mouse to see this tooltip.

Example：

Output:

Bold type
You may use the  parameter to show the text in bold type.

Example:

Output:

Example:

Output:

Example:

Output:

Example：

Output: