User:The Tarsons/Templates/Character/ClassColors/doc

The ClassColors template returns a hexadecimal color code based on the input of a class and optional tone. This can be useful for constructing a 3D Cell within a 3D Table or for coloring the background of a table, cell, span, or other object with a class color. A set of default values is provided.

Usage
Syntax: Class
 * Class : The class of which to display the color.
 * Tone : The tone of the color to display. Can be high, mid, low or left blank.

If left blank, the template will return the normal class color. In most cases the mid-tone color is the same as the normal class color, except with the Priest class. Since the normal class color is white (#FFFFFF), there is no brighter color to use as a highlight. Thus the highlight for Priest is white and the mid-tone is a very light gray.

Note: The template only returns the hexadecimal color value. If using this template within another template which requires colors to have a leading #, you will have to manually provide the #. (See below for an example.)

Sample Table
A cell with Warrior coloring. A cell with Druid coloring. A two-columned cell with Warlock coloring.
 * style="text-align:center;font-weight:bold" colspan="2" | Example
 * }
 * Result :

A cell with Warrior coloring. A cell with Druid coloring. A two-columned cell with Warlock coloring.
 * style="text-align:center;font-weight:bold" colspan="2" | Example
 * }

Sample Span
Some text with Hunter colored background. Some text with Hunter colored background.
 * Result :