Difference between revisions of "Template:Colort"
Jump to navigation
Jump to search
imported>ZFT |
imported>PrimeHunter (add optional Source column for source=yes (or anything)) |
||
| Line 25: | Line 25: | ||
!style="border-left:solid 1px {{{border|#AAA}}};border-right:solid 0px {{{border|#AAA}}};width:{{{colwidth|3em}}};" title="Saturation for HSV"{{!}} [[HSL and HSV#Saturation|Satur.]]<br /> <small>(HSV)</small> | !style="border-left:solid 1px {{{border|#AAA}}};border-right:solid 0px {{{border|#AAA}}};width:{{{colwidth|3em}}};" title="Saturation for HSV"{{!}} [[HSL and HSV#Saturation|Satur.]]<br /> <small>(HSV)</small> | ||
!style="border-left:solid 0px {{{border|#AAA}}};border-right:solid 2px {{{border|#AAA}}};width:{{{colwidth|3em}}};" title="Value or brightness"{{!}} [[HSL and HSV#Lightness|Value]]<br /> <small>(HSV)</small>{{#if:{{{html_name|}}}{{{alias|}}}| | !style="border-left:solid 0px {{{border|#AAA}}};border-right:solid 2px {{{border|#AAA}}};width:{{{colwidth|3em}}};" title="Value or brightness"{{!}} [[HSL and HSV#Lightness|Value]]<br /> <small>(HSV)</small>{{#if:{{{html_name|}}}{{{alias|}}}| | ||
| − | !!style="border-left:solid 2px {{{border|#AAA}}};" title="{{{alias title|CSS, SVG, HTML}}}"{{!}} {{{alias|Alias}}} }} | + | !!style="border-left:solid 2px {{{border|#AAA}}};" title="{{{alias title|CSS, SVG, HTML}}}"{{!}} {{{alias|Alias}}} }}{{#if:{{{source|}}}| |
| + | !!style="border-left:solid 2px {{{border|#AAA}}};border-right:solid 2px {{{border|#AAA}}};width:{{{colwidth|3em}}};" title="Source"{{!}} Source}} | ||
|}}<noinclude> | |}}<noinclude> | ||
|} | |} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:35, 12 May 2020
| Name | Hex (RGB) |
Red (RGB) |
Green (RGB) |
Blue (RGB) |
Hue (HSL/HSV) |
Satur. (HSL) |
Light (HSL) |
Satur. (HSV) |
Value (HSV) |
|---|
Color table header, for use with {{Colort/Color}}, which generates the rows.
Usage
{{Colort|optional parameters}}
See {{Colort/Color}} for usage.
Parameters
|narrow=true- switches a narrow variant that is not sortable and has two rows per color
|caption=markup text- An alternative table caption, replaces the default
|class=HTML class- More classes to be applied to the table
|style=CSS code- More styles to be applied to the table
|html_name=true- If set an additional column header is added at the end with a default text: “Alias”
|alias=markup text- If present an additional column header is added at the end with the text provided
|alias title=plain text- The hover information to be displayed for the header cell of the optional column, default is “CSS, SVG, HTML”
Examples
See X11 color names, Web colors, List of colors, ...
| The above documentation is transcluded from Template:Colort/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |