Template:Igen/cbox

Each can be preceded by a pair of two control codes: the first control code depends the field name or heading and may be omitted; depending on the control code 2 (parameter 2 of, parameter 3 of Igen/cbox template) either
 * "B": a ColorBox box (single color code parameter), or
 * "D": a ColorBox box (2 parameters: color code and text), or
 * "L": a Legend/Commons color box (single color code parameter), or
 * "S": a Legend-small color box (single color code parameter), or
 * "M": a Legend-small color box (2 parameters: color code and text), or
 * "T": a Tbc line (2 parameters: color code and text), or
 * else a legend/Commons (2 parameters: color code and text; decoding occurs in the module)
 * will be transcluded (control code 2 = " ", "-", "C", "M")

The template can replace valid  names by their hexadecimal color code, and it ensures that a colors display text becomes an eventually leading "#" replaced by its decimal numeric character reference.

The second value of a colors parameters pair can be empty, or, then the first value will be displayed.

The field name can be specified differently with the first value: Tbc has an own solution, the other templates use the above standard titles with cc1  or free text specified with.