Template:Igen/cbox
Each string of colors parameters 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 Igen/cbx, 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}} 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}} (2 parameters: color code and text; decoding occurs in the module)
- will be transcluded (control code 2 = " ", "-", "C", "M")
The template can replace valid Tincture names by their hexadecimal color code,
and it ensures that a colors display text becomes an eventually leading # *
; :
replaced by its decimal numeric character references.
| template | control code 2 for pairs | for singles | field name (title) when cc1 = + | |
|---|---|---|---|
| Legend | C or " " | L | "Color(s)" or "Legend" |
| Legend-small | M or - | S | "Colour(s)", "Color box(es)" |
| ColorBox | D | B | "Colour(s)" |
| Tbc | T | "Used color(s)" | |
The second value of a colors parameters pair can be:
- any explainung text
- empty or
=, then the first value will be displayed. #like=but when the first value is a color name, its code becomes displayed<like#but the code display is teletyped
The field name can be specified differently with the first control code: {{Tbc}} has an own solution,
the other templates use the above standard titles with cc1 +, or free text specified with +=.