Predloga:Infopolje Barva

Iz Wikipedije, proste enciklopedije
Skoči na: navigacija, iskanje
Dokumentacija predloge[predogled] [uredi] [zgodovina] [osveži]
Primer barve
Spektralne koordinate
Valovna dolžina num - num nm
Frekvenca num - num THz
— Predstavlja —
Some symbols
— Barvne koordinate —
Šestnajstiški trojček #007FFF
RGBb (r, g, b) (0, 127, 255)
CMYKh (c, m, y, k) (C, M, Y, K)
HSV (h, s, v) (H°, S%, V%)
Vir Sample color
Barvni prostor Color Space
b: Normalizirano na [0–255] (bajt)
h: Normalizirano na [0–100] (sto)
Some caveat
— Nekaj različic barve —
Darker sample
Lighter sample

Parameters[uredi kodo]

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
Variation samples (optional)
variations If set include some samples of variations.
variationstitle Used for the title of the variations section, otherwise "Some variations of title" is used.
variationN Name of the Nth variation, where N is between 1 and 10.
variationNcolor Color used for variationN, defaults to the web color of the same name.
variationNtextcolor Used for dark colors to allow the text to be white or some other contrasting color.
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

Note[uredi kodo]

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
{"cc_re__cc_re__cc_by_sa_3_0": ["an class=\"wb-langlinks-edit wb-langlinks-link\"><a href=\"//www.wikidata.org/wiki/Q7975414#sitelinks-wikipedia\" title=\"Uredi medjezikovne povezave\" class=\"wbc-editpage\">Uredi povezave</a></span></div>\t\t\t</div>\n\t\t</div>\n\t\t\t\t</div>\n\t\t</div>\n\t\t<div id=\"footer\" role=\"contentinfo\">\n\t\t\t\t\t\t\t<ul id=\"footer-info\">\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-info-lastmod\"> \u010cas zadnje spremembe: 20:52, 6. september 2014.</li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-info-copyright\">Besedilo se sme prosto uporabljati v skladu z dovoljenjem <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\">Creative Commons \nPriznanje avtorstva-Deljenje pod enakimi pogoji 3.0</a>; uveljavljajo se lahko dodatni pogoji. Za podrobnosti glej <a href=\"//wikimediafoundation.org/wiki/Terms_of_Use\">Pogoje uporabe</a>.<br/>\nWikipedia\u00ae je tr\u017ena znamka neprofitne organizacije <a href=\"http://wikimediafoundation.org\">Wikimedia Foundation Inc.</a></li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t<ul id=\"footer-places\">\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-privacy\"><a href=\"//wikimediafoundation.org/wiki/Privacy_policy\" title=\"wmf:Priv"], "copyright__copyright__copyright": ["e.\n\nNote 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", "e.\n\nNote 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", "e.\n\nNote 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"]}