Jump to content

ထႅမ်းပလဵတ်ႉ:Colort/Color

လုၵ်ႉတီႈ ဝီႇၶီႇၽီးတီးယႃး ဢၼ်လွတ်ႈလႅဝ်းထၢင်ႇႁၢင်ႈ ၼၼ်ႉမႃး
Colors
Name Hex
(RGB)
Red
(RGB)
Green
(RGB)
Blue
(RGB)
Hue
(HSL/HSV)
Satur.
(HSL)
Light
(HSL)
Satur.
(HSV)
Value
(HSV)
no name #000000 0% 0% 0% 0% 0% 0% 0%
Documentation icon ၽိုၼ်ၵႅမ်မိုဝ်းထႅမ်းပလဵတ်ႉ[တူၺ်း] [မႄးထတ်း] [ပိုၼ်း] [ၸၢင်း]

Color table row, for use with {{Colort}}, which creates the column headings.

လၢႆးၸႂ်ႉတိုဝ်း

[မႄးထတ်းငဝ်ႈငႃႇ]

{{Colort/Color

|name=common name – may contain markup
|alias=alternative name or |html_name=html name
|sort=sort name – an alternative name or spelling that should be used for sorting, must not contain markup
|r=red decimal value – 0–255, percent values are automatically generated
|g=green decimal value – 0–255, percent values are automatically generated
|b=blue decimal value – 0–255, percent values are automatically generated
|hex=hex triplet – can be automatically generated
|h=hue degrees – HSV/HSB and HSL, can be automatically generated
|s=saturation percent – HSV/HSB, can be automatically generated
|v=brightness/value percent – HSV/HSB, can be automatically generated
|sat=saturation percent – HSL, can be automatically generated
|l=lightness percent – HSL, can be automatically generated

}}

If not provided, values for HSL, HSV and hex triplet are auto-generated from RGB parameters. That means, parameters name, r, g and b are required, the rest is optional and mostly should only be used if the automatic calculation yields rounding errors or fails for other reasons.

The hash sign # for hex triplets, percent % and degree ° symbols must not be entered as they are included automatically.

ၶေႃႈမုၼ်းၸိူဝ်းၽၢႆႇတႂ်ႈၼႆႉ ပဵၼ် တူဝ်ထတ်းတႃႁၼ်(VisualEditor) ဢၼ်မီးတီႈ ဝီႇၶီႇၽီးတီးယႃးၼၼ်ႉ ယိူင်းဢၢၼ်း တႃႇဢဝ် ၶိူင်ႈၸိူဝ်းၼၼ်ႉ ၸႂ်ႉလႆႈတီႈ ဝီႇၶီႇၽီးတီးယႃးတႆးသေ ၸင်ႇလႆႈဢဝ် ပိူင် ၶေႃႈမုၼ်းထႅမ်းပလဵၵ်ႉ (TemplateData) ဢၼ်မီးတီႈ ဝီႇၶီႇၽီးတီးယႃး ဢိင်းၵလဵတ်ႈၼၼ်ႉ ႁဵတ်းဝႆႉပဵၼ် တီႈမၢႆတီႈတွင်းယဝ်ႉ။ ႁူမ်ႈဝႃႈ ပႆႇၸႂ်ႉၶိူင်ႈၸိူဝ်းၼၼ်ႉသေတႃႉ ပေႃးပဵၼ် ၵူၼ်းႁူႉလွင်ႈတႅမ်ႈပရူဝ်ႇၵရႅမ်ႇ (computer programming) ဢိတ်းဢွတ်းၵေႃႈ ႁႂ်ႈပေႃးႁၼ်လႆႈၸႅင်ႈလႅင်းလီၼႆသေ ၸၢင်ႈဢဝ်ၸႂ်ႉလႆႈ သၽေႃးတီႈၵႅပ်ႈမၼ်းလႆႈယူႇ။

Colort/Color

Table row with digital color data, usually in 11 or 12 columns.

Template parameters[ၸတ်းၵၢၼ် ၶေႃႈမုၼ်းထႅမ်းပလဵၵ်ႉ]

Parameterၶေႃႈသပ်းလႅင်းTypeStatus
common namename

the vulgar color name, may contain markup

Linerequired
alternative namealias html_name

usually used for synonymous names, but may be used for arbitrary content if the last column header is changed

Lineoptional
(deprecated)html_name

legacy variant of alias parameter, kept for backwards compatibility only

Linedeprecated
sort namesort

an alternative name or spelling that should be used for sorting, must not contain markup like links

Lineoptional
code namecode

the color name as used in computer code (e.g. special capitalization or spelling with hyphens, underscores or spaces), must not contain markup

Lineoptional
color articlelink

the Wikipedia article title explaining this color, must not contain markup

Page nameoptional
red component (RGB)r

decimal 8bit value (0–255), percent value is generated automatically

Default
0
Numberrequired
green component (RGB)g

decimal 8bit value (0–255), percent value is generated automatically

Default
0
Numberrequired
blue component (RGB)b

decimal 8bit value (0–255), percent value is generated automatically

Default
0
Numberrequired
hex triplet (RGB)hex

six hexadecimal digits, automatically preceded by a hash sign (#) as used in several computer languages, e.g. CSS

Default
generated from r, g, b
Lineoptional
hue (HSB/HSV, HSL)h

in degrees (0–359), automatically succeeded by degrees sign (°)

Default
generated from r, g, b
Numberoptional
saturation (HSB/HSV)s

percentage (0–100), automatically succeeded by percent sign (%), usually differs from HSL saturation

Default
generated from r, g, b
Numberoptional
brightness/value (HSB/HSV)v

percentage (0–100), automatically succeeded by percent sign

Default
generated from r, g, b
Numberoptional
saturation (HSL)sat

percentage (0–100), automatically succeeded by percent sign (%), usually differs from HSV/HSB saturation

Default
generated from r, g, b
Numberoptional
lightness/luminance (HSL)l

percentage (0–100), automatically succeeded by percent sign (%)

Default
generated from r, g, b
Numberoptional
narrow layout switchnarrow

if specified this parameters changes the layout to a narrower one that covers two rows, must be specified for all neighboring rows too

Lineoptional
extra right paddingpadding

a valid CSS length value, usually set appropriately to care for sort buttons in column headers, should be specified for all neighboring rows too

Default
21px (0 if narrow)
Lineoptional
color sample column widthwidth

a valid CSS length value setting the width of the first column, should be specified for all neighboring rows too

Default
4em (1em if narrow)
Lineoptional
border colorborder

a valid CSS color value or name for the color of cell borders, usually a light gray

Default
#AAA
Lineoptional
TOC anchorlink target

provides a link target, especially for links from the table of contents, should usually be specified only for the first color name starting with a certain letter in an alphabetically sorted list, to said letter, uppercase

Lineoptional
{{Colort/Color|name=|r=|g=|b=}}
{{Colort/Color|name=|alias=|sort=|r=|g=|b=}}
{{Colort/Color|name=|alias=|sort=|r=|g=|b=|hex=|h=|sat=|l=|s=|v=}}

တူဝ်ယၢင်ႇ

[မႄးထတ်းငဝ်ႈငႃႇ]

See X11 color names, Web colors, or "what links here".

The {{colort/Color}} template provides the calculation of missing values, the actual table row design is found in {{colort/1row}} (default) or {{colort/2row}} for a narrow, non-sortable variant with two rows per color. These two sub-templates should never be used directly elsewhere!