Template:Tbc
[edit]
Documentation
Table for colors (not an IDC-10 disease)
Creates a table to describe the colors, for something as a flag
May be within another table, as a files {{Information}} box or the {{Flag}} description (example)
The displayed color dot is tooltipped to show the #rrggbb-color code.
For the R/G/B-values decimal notation is required, because it is easy to convert decimal to hexadecimal, but very laborious to convert from hexadecimal. The hexadecimal values are displayed when the cursor is at the dot.
Usage
{{Tbc|1=|2=|3=|4=|5=|6=}}
Parameters
Parameter name | Description | Default value | required or optional?
|
---|---|---|---|
parameter #1 (1) | specifies whether it is the first, a medium or the last line of the table
|
required | |
parameter #2 (2) | decimal color code for red, value 0 to 255 | required | |
parameter #3 (3) | decimal color code for green, value 0 to 255 | required | |
parameter #4 (4) | decimal color code for blue, value 0 to 255 | required | |
parameter #5 (5) | descriptive color name (not HTML or PMS color name) | empty | optional |
parameter #6 (6) | Pantone name (if any) | empty | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
- Examples
1. one line
{{Tbc|5|186|31|181|violet|Purple}}
● violet | rendered as RGB 186 | 31 181Pantone Purple |
{{Tbc|7|0|0|0|}}
Color: | ||
● | rendered as RGB | 0 0 0
2. two lines
{{Tbc|1|0|115|54|green|356}} {{Tbc|4|0|153|68|green|452-2x}}
● green | rendered as RGB | 0 115 54Pantone 356 |
● green | rendered as RGB | 0 153 68Pantone 452-2x |
{{Tbc|3|237|41|35|red}} {{Tbc|4|255|255|255|white}}
Colors: | ||
● red | rendered as RGB 237 | 41 35|
● white | rendered as RGB 255 255 255 |
3. with 3 lines
{{Tbc|1|0|146|70|green|17-6153}} {{Tbc|0|255|255|255|white|11-0601}} {{Tbc|4|206|43|55|red|18-1662}}
● green | rendered as RGB | 0 146 70Pantone 17-6153 |
● white | rendered as RGB 255 255 255 | Pantone 11-0601 |
● red | rendered as RGB 206 | 43 55Pantone 18-1662 |
{{Tbc|3|232|125|13|<small>orange</small>|716}} {{Tbc|2|0|146|70|<small>green</small>|17-6153}} {{Tbc|6|255|255|255|white|11-0601}}
Colors: | ||
● orange | rendered as RGB 232 125 | 13Pantone 716 |
● green | rendered as RGB | 0 146 70Pantone 17-6153 |
● white | rendered as RGB 255 255 255 | Pantone 11-0601 |
See also
- convert RGB to Pantone works only for some colors
- find Pantone color
- Template {{Color}} for text and background