Template:Infobox Color
From Wikipedia, the free encyclopedia
[edit] Template documentation
Sample color | ||
---|---|---|
— Spectral coordinates — | ||
Wavelength | num - num nm | |
Frequency | num - num THz | |
— Commonly represents — | ||
Some symbols | ||
— Color coordinates — |
||
Hex triplet | #007FFF | |
sRGBB | (r, g, b) | (0, 127, 255) |
CMYKH | (c, m, y, k) | (C, M, Y, K) |
HSV | (h, s, v) | (H°, S%, V%) |
Source | Sample color | |
Color space | Color Space | |
B: Normalized to [0–255] (byte) H: Normalized to [0–100] (hundred) |
||
Some caveat |
[edit] Parameters
The following template parameters are supported.
Spectral color Parameters (optional) | |
---|---|
wavelength | The wavelength interval in nm. |
frequency | The frequency in THz. |
Symbolism (optional) | |
symbolism | What the color commonly represents. Multiple lines may be included using <br> |
RGB Parameters (optional) | |
r | The red coordinate in the RGB space. Enables the display of RGB coordinates. |
g | The green coordinate in the RGB space. |
b | The blue coordinate in the RGB space. |
hex | This parameter is also shown when RGB is specified. |
rgbspace | (Optional) Specifies the RGB space used. Replaces the default "RGB". |
sRGB | (Optional) Specifies that the RGB space is sRGB. Overrides rgbspace if used. |
CMYK Parameters (optional) | |
cmyk | Enables the display of CMYK coordinates. This is disabled by default. |
c | Cyanic CMYK color space coordinate |
m | Magenta CMYK color space coordinate |
y | Yellow CMYK color space coordinate |
k | Black CMYK color space coordinate |
HSV Parameters (optional) | |
h | Hue HSV color space coordinate. Enables the display of HSV coordinates. |
s | Saturation HSV color space coordinate |
v | Value HSV color space coordinate |
Other Parameters | |
bgcolor | (Optional) Color in hex format used for background behind the name of the color. Defaults to value specified by the hex parameter. |
caveat | (Optional) Additional text to display at the bottom of the infobox. |
colorspace | (Optional) Colorspace of this color. |
hex | Color in hex format, also used as default for bgcolor unless present. |
nocoords | Disable the display of color coordinates if set. Only title and optionally picture, spectral coordinates, symbolism and the caveat will be displayed. |
pic | (Optional) Name of an image to display. Do not use wikicode: use the format pic=Image:Example.jpg |
source | Source for these color coordinates. See Wikipedia:WikiProject Color/Sources for Color Coordinates. |
spelling | (Optional) For articles standardised to the british spelling this can be set to "Colour". The word "colour" is case-insensitive. |
textcolor | (Optional) Colour in which to show the name of the colour. Should be set to white if "hex" is a dark colour, or else not set. |
title | Name of the color |
[edit] Note
For articles standardised to british spelling, add the parameter spelling=Colour
. The word "colour" is case-insensitive.
Note that CMYK values are not included by default as there is no single way to obtain a CMYK quartet from an RGB triplet. Variations in paper and ink processes account for the various combinations of non-invertible matrices and look-up tables used in converting from RGB to CMYK. If you wish to obtain CMYK values for these colors, you will get appropriate conversion values from your graphics application when you define the type of ink and paper you will be printing on. see Talk:List_of_colors