پرش به محتوا

الگو:جعبه اطلاعات رنگ

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

استفاده

[ویرایش]
Sample color
Some alt
CIE colorspace
مختصات طیفی
طول موجnum - num نانومتر
بسامدnum - num امواج تراهرتز
معنای عمومی
Some symbols
دربارهٔ این مختصات‌ها     مختصات رنگ
رنگ‌های وب#0080FF
CMYKH   (آ، ق، ز، س)(C، M، Y، K)
منبعSample color
فضای رنگColor Space
H: نرمال‌شده به [۰–۱۰۰] (صد)
Some caveat
ISCC–NBS descriptorSome isc name
برخی سایه‌های Sample color
Darker sample 
Lighter sample 

انگلیسی

[ویرایش]

می‌توانید از روی نسخه انگلیسی کپی کنید یا به صورت دستی زیر، وارد کنید:

{{Infobox color
|title      = 
|bgcolor    = 
|textcolor  = 
|image      = 
|image_size = 
|alt        = 
|caption    = 
|frequency  = 
|wavelength = 
|symbolism  = 
|spelling   = 
|hex        = 
|sRGB       = 
|rgbspace   = 
|r=|g=|b=
|cmyk       = 
|c=|m=|y=|k=
|h=|s=|v=
|hslL       = 
|hslH       = 
|hslS       = 
|source     = 
|colorspace = 
|caveat     = 
|variations = 
|variation1 = 
|variation2 = 
|variation3 = 
|variation4 = 
|variation5 = 
|variation6 = 
|variation7 = 
|variation8 = 
}}

پارمترها

[ویرایش]

The following template parameters are supported:

Recommended parameters
title Name of the color
hex sRGB hex triplet.
source Source for the main color coordinates, usually an RGB triplet or an hex triplet, in sRGB space. See Wikipedia:WikiProject Color/Sources for Color Coordinates.
Spectral color parameters (optional)
wavelength The wavelength interval in nm.
frequency The frequency in THz.
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 8.
variationNcolor Color used for variationN, defaults to the web color of the same name.
CMYK parameters (optional)
cmyk Enable display of CMYK coordinates. The coordinates are otherwise hidden (see Category:Color articles with suppressed CMYK data).
c Cyanic CMYK color space coordinate
m Magenta CMYK color space coordinate
y Yellow CMYK color space coordinate
k Black CMYK color space coordinate
cmykref The reference for CMYK coordinates, if different from the main source.
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.
caption (Optional) Appears under image, if specified.
caveat (Optional) Additional text to display at the bottom of the infobox.
colorspace (Optional) Colorspace of this color.
image (Optional) Name of an image to display. Do not use wikicode: use the format image=Image:Example.jpg
isccname (Optional) Display ISCC–NBS System of Color Designation color category
spelling (Optional) For articles standardised to the British spelling this can be set to "Colour". The word "colour" is case-insensitive.
symbolism What the color commonly represents. Multiple lines may be included using <br>

نکته‌ها

[ویرایش]

Color/Colour spelling

[ویرایش]

For articles standardised to British spelling, add the parameter spelling=Colour. The word "colour" is case-insensitive.

مقادیر CMYK

[ویرایش]

There is no functionality for converting RGB to CMYK because there is no single CMYK color space. 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.

A CMYK value is meaningful only if you can specify what ink–paper–process standard it is supposed to be used with. If your color article does not specifically concern a quirk in the CMYK process (such as rich black), it's best to leave it unspecified since it does not add additional information.

Because the CMYK data quality is generally awful, the infobox currently adds an additional barrier to its use, requiring a |cmyk=1 to be passed. Articles without this parameter but still providing a CMYK value are sorted into Category:Color articles with suppressed CMYK data. An article should provide a CMYK coordinate with |cmyk=1 only when the source provides these coordinates.

جستارهای وابسته

[ویرایش]

Simple colorbox templates to display a sample color:

  • {{Color box}}, a small color box with black borders and text color. (e.g.   or  ORANGE  )
  • {{RouteBox}}, a borderless version with text color and ابرپیوندs. (e.g.  ORANGE )
  • {{Colorbull}}, a colored bullet with ابرپیوندs. (e.g. )
  • {{legend2}}, another borderless version (e.g.,       )
  • {{Color sample}}, a small color box with black borders. (e.g., )
  • {{Swatch inline}}. (e.g., orange)
  • {{Background color}}. (e.g., orange)