Difference between revisions of "Template:Infobox color"

From blackwiki
Jump to navigation Jump to search
imported>Ligulem
(cat)
imported>Circeus
(trying out an infobox from Trade and use of saffron)
Line 1: Line 1:
{| class="toccolours" style="float:right; clear:right; margin: 0 0 1em 1em;"
+
{| class="toccolours" style="float:right; width:225px; clear:right; margin: 0em 0em 1em 1em;"
|+ style="margin-left: inherit;" | '''{{{title}}}'''
 
| colspan="3" style="height: 100px;background-color:#{{{hex}}};" |  
 
 
|-
 
|-
! colspan="3" style="text-align: center; background-color: silver;" | Color coordinates
+
! colspan="3" style="text-align: center; background-color:#{{{hex}}};" | {{{title}}}
 +
|-
 +
| colspan="3" style="height:25px; background-color:#{{{hex}}}; text-align: center;" | — Colour coordinates —
 
|-
 
|-
 
! style="text-align:left;" colspan="2" | [[Web colours|Hex triplet]]
 
! style="text-align:left;" colspan="2" | [[Web colours|Hex triplet]]
 
| #{{{hex}}}
 
| #{{{hex}}}
 
|-
 
|-
! style="text-align:left;" | [[RGB color model|RGB]]
+
! style="text-align:left;" | [[RGB color model|RGB]]<sup>'''N'''</sup>
| (r, g, b)
+
| ([[red|r]], [[green|g]], [[blue|b]])
 
| ({{{r}}}, {{{g}}}, {{{b}}})
 
| ({{{r}}}, {{{g}}}, {{{b}}})
 
|-
 
|-
! style="text-align:left;" | [[CMYK color model|CMYK]]
+
! style="text-align:left;" | [[CMYK color model|CMYK]]<sup>'''N'''</sup>
| (c, m, y, k) <sup>'''N'''</sup>
+
| ([[cyan|c]], [[magenta|m]], [[yellow|y]], [[black|b]])
 
| ({{{c}}}, {{{m}}}, {{{y}}}, {{{k}}})
 
| ({{{c}}}, {{{m}}}, {{{y}}}, {{{k}}})
 
|-
 
|-
 
! style="text-align:left;" | [[HSV color space|HSV]]
 
! style="text-align:left;" | [[HSV color space|HSV]]
| (h, s, v)
+
| ([[hue|h]], [[Saturation (color theory)|s]], [[Brightness|v]])
 
| ({{{h}}}&deg;, {{{s}}}%, {{{v}}}%)
 
| ({{{h}}}&deg;, {{{s}}}%, {{{v}}}%)
 
|-
 
|-
| &nbsp;
+
| colspan="3" style="text-align: center; background-color:#{{{hex}}}; font-size:smaller;" | <sup>'''N'''</sup>: '''N'''ormalised to <nowiki>[</nowiki>&nbsp;0&ndash;255&nbsp;] (changing to [0&ndash;100])
| colspan="2" style="text-align:left; font-size: smaller;" | <sup>'''N'''</sup>: '''N'''ormalised to <nowiki>[</nowiki>&nbsp;0&ndash;255&nbsp;] (changing to [0&ndash;100])
+
|}
|}<noinclude>
+
 
 +
<noinclude>
  
 
[[Category:Infobox templates|Color]]
 
[[Category:Infobox templates|Color]]

Revision as of 22:12, 10 February 2006

{{{title}}}
— Colour coordinates —
Hex triplet #{{{hex}}}
RGBN (r, g, b) ({{{r}}}, {{{g}}}, {{{b}}})
CMYKN (c, m, y, b) ({{{c}}}, {{{m}}}, {{{y}}}, {{{k}}})
HSV (h, s, v) ({{{h}}}°, {{{s}}}%, {{{v}}}%)
N: Normalised to [ 0–255 ] (changing to [0–100])

fr:Modèle:Infobox couleur