Template:Tbc

From OpenMedia
Jump to: navigation, search

[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
bit 1 (001) on: first line
bit 2 (010) on (checked only when bit 1 is on): first line with header
bit 4 (100) on: last line
  • 0 (000) medium line
  • 1 (001) first line
  • 3 (011) first line with header
  • 4 (100) last line
  • 5 (101) only line (1st and last line)
  • 7 (111) only line with header
  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 031 181Pantone Purple

{{Tbc|7|0|0|0|}}

Color:
rendered as RGB 000 000 000


2. two lines

{{Tbc|1|0|115|54|green|356}}
{{Tbc|4|0|153|68|green|452-2x}}
green rendered as RGB 000 115 054Pantone 356
green rendered as RGB 000 153 068Pantone 452-2x
{{Tbc|3|237|41|35|red}}
{{Tbc|4|255|255|255|white}}
Colors:
red rendered as RGB 237 041 035
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 000 146 070Pantone 17-6153
white rendered as RGB 255 255 255Pantone 11-0601
red rendered as RGB 206 043 055Pantone 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 013Pantone 716
green rendered as RGB 000 146 070Pantone 17-6153
white rendered as RGB 255 255 255Pantone 11-0601


See also