Changes
Jump to navigation
Jump to search
m
no edit summary
{{TemplateBox
|1def= 5 <ref name="m">(value when missing)</ref>
|2def= 0 <ref name="m"/>
|3def= 0 <ref name="m"/>
|4def= 0 <ref name="m"/>
|1=1
|1stat=required
|1d=specifies whether it is the first, a medium or the last line of the table
:<small>bit 1 (0001) on: first line</small>
:<small>bit 2 (0010) on (checked only when bit 1 is on): first line with header</small>
:<small>bit 4 (0100) on: last line</small>
:<small>bit 8 (1000) on (checked only when bit 1 is on): first line with {{T0|Information field|field name}}</small>
*0{{0}} (0000) medium line
*1{{0}} (0001) first line
*3{{0}} (0011) first line with header
*4{{0}} (0100) last line
*5{{0}} (0101) only line (1{{exp|st}} ''and'' last = single line)
*7{{0}} (0111) only line with header
*9{{0}} (1001) first line with field name
*<tt>D</tt>{{0}} (1101) ''or''
*13 (1101) single line with field name
|2=2
|2stat=required
|2d=decimal color code for red, value 0 to 255
|3=3
|3stat=required
|3d=decimal color code for green, value 0 to 255
|4=4
|4stat=required
|4d=decimal color code for blue, value 0 to 255
|5=5
|5d=descriptive color name (<u>not</u> {{W|Web colors#HTML color names|HTML}} or {{W|Pantone Matching System#Pantone Color Matching System|PMS}} color name)
|6=6
|6d=Pantone name (if any) <small>(like "9010 Pure White" or "9005 Jet Black")</small>
|6stat=optional-
|7=''text''
|7d=other header text than from the translation template {{T0|I18n/Colors}}
|7stat=optional-
|8=''option''
|8d=more table header option parameters (see example 6)
|8stat=optional-
|9=''style''
|9d=more table header style parameters
|9stat=optional-
|10=file
|10d=name of a file to be displayed right
|10def=<small>PAGENAME</small>
|10stat=optional-
|11=size
|11d=display size for that file
|11def=48
|11stat=optional-
|12=desc
|12d=descriptional text
|12stat=optional-
<!--
|13=bord
|13d=options
|13stat=optional-
|14=easy
|14d=use of {{T0|Easy border}}
|14stat=optional-
-->
|15=pixel
|15d=display size for {{T0|Easy border}}
|15def=96
|name={{BASEPAGENAME}}
|desc='''T'''a'''b'''le for '''c'''olors <small>(''not'' an {{W|International Statistical Classification of Diseases and Related Health Problems|IDC-10}} disease)</small><br>
Creates a table to describe the colors, for [[File talk:Flag of France.svg |flags]] or other colored items<br>May be within another table, as a files {{Tl|Information}} box or the {{Tl|Infobox flag}} description ({{F|Flag of Germany.svg#Description|example}})<br>The displayed color box is {{W|Tooltip|tooltipped}} to show the #rrggbb- or #rgb-color code.
{{Nobold|1=<small>For the R/G/B-values is the <u>decimal</u> notation required, because it is easy to convert decimal to hexadecimal, but very laborious to convert from hexadecimal (see [[#With Igen]]).<br>The hexadecimal values are displayed when the cursor is moved to the box.</small> }}
|namespace=all
|usergroup=all
|placement=
|usage-notes=<big>'''Best usage''' is within the {{Tl|Information}} description of the file, using the parameter ''other_fields'' ({{F|Germany Gay flag.svg#Summary|example}}).<br>Use <code>bit 8</code> to create a <tt>field name</tt>, either with <code>text=</code> or the defaults of {{Tl|I18n/Colors}};<br>
otherwise see more about how to use at the documentation of {{Tl|Information field}}. </big>
|type=|example=
|i18n-method=-
|i18n-desc=
|seealso=
|setscats=
|lines=
|shorthand=
|relieson=
}}
<references />
=== With Igen ===
{{Lua|Module:Color2dec|Module:Tincture}}To use it with the templates {{T0|Image generation}} or {{T0|ColorString}}, {{T0|Igen/cbx}} uses {{C|Modules for general use|Lua modules}} to convert the color codes from hex to dec.<br>Special values for Tbc-parameter 1 allow to separate table initiation (code B, and F for single line) and termination (code 6), <br>while ''all'' table rows are specified as "medium lines" (code 0). The default {{T0|InFi|field name}} is always generated.
<br>See the description at [[Template:Image generation#Tbc]].
;<u>Examples:</u>
1. One line<br>
<pre><nowiki>{{Tbc|5|186|31|181|violet|Purple}}</nowiki></pre>
{{Tbc|5|186|31|181|violet|Purple}}
<pre><nowiki>{{Tbc|7}}</nowiki></pre>
{{Tbc|7}}
2. Two lines
<pre><nowiki>{{Tbc|1|0|115|54|green|356}}
{{Tbc|4|0|153|68|green|452-2x}}</nowiki></pre>
{{Tbc|1|0|115|54|green|356}}
{{Tbc|4|0|153|68|green|452-2x}}
<pre><nowiki>{{Tbc|3|237|41|35|red}}
{{Tbc|4|255|255|255|white}}</nowiki></pre>
{{Tbc|3|237|41|35|red}}
{{Tbc|4|255|255|255|white}}
3. Three lines
<pre><nowiki>{{Tbc|1|0|146|70|green|17-6153}}
{{Tbc|0|255|255|255|white|11-0601}}
{{Tbc|4|206|43|55|red|18-1662}}</nowiki></pre>
{{Tbc|1|0|146|70|green|17-6153}}
{{Tbc|0|255|255|255|white|11-0601}}
{{Tbc|4|206|43|55|red|18-1662}}
<pre><nowiki>{{Tbc|3|232|125|13|<small>orange</small>| 716
|text='''Colour''' values|file=Flag of Niger.svg|size=96|desc=3-colored flag}}
{{Tbc|0|0|146|70|<small>green</small>|17-6153}}
{{Tbc|4|255|255|255|white|11-0601}}
</nowiki></pre>
{{Tbc|3|232|125|13|<small>orange</small>|{{0|00-}}716|text='''Colour''' values
|file=Flag of Niger.svg|size=96|desc=3-colored flag}}
{{Tbc|0|0|146|70|<small>green</small>|17-6153}}
{{Tbc|4|255|255|255|white|11-0601}}
4. with ''field name''
<pre><nowiki>{{Information
|description=description
|date=2013-01-24
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{Tbc|9|0|102|153|blue|text=Wikimedia colors<br>{{nobold|("websave colors)}
|file=Wikitech logo-blank.svg|size=80|desc=WikiTech}}
{{Tbc|0|255|255|255|white}} {{Tbc|0|0|153|102|green}} {{Tbc|4|153|0|0|red}}
}}</nowiki></pre>
{{Information
|description=description
|date=2013-01-24 <!-- * Andrea -->
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{Tbc|9|0|102|153|blue|text=Wikimedia colors<br>{{nobold|("websave" colors)}}
|file=Wikitech logo-blank.svg|size=80|desc=WikiTech}}
{{Tbc|0|255|255|255|white}} {{Tbc|0|0|153|102|green}} {{Tbc|4|153|0|0|red}}
}}
5. with ''[[Template:InFi|Other fields]]'' and ''[[Template:Information field]]''
<pre><nowiki>{{Information
|description=description
|date=2011-11-11
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{InFi|Gay colors|
{{Tbc|1|228|3|3|red}}
{{Tbc|0|255|140|0|orange}}
{{Tbc|0|255|237|0|yellow}}
{{Tbc|0|0|128|38|green}}
{{Tbc|0|0|77|255|blue}}
{{Tbc|4|117|7|135|purple}}
}}</nowiki></pre>
{{Information
|description=description
|date=2011-11-11
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{InFi|Gay colors|
{{Tbc|1|228|3|3|red}}
{{Tbc|0|255|140|0|orange}}
{{Tbc|0|255|237|0|yellow}}
{{Tbc|0|0|128|38|green}}
{{Tbc|0|0|77|255|blue}}
{{Tbc|4|117|7|135|purple}} }}
}}
6. with an option
{{Tbc|1|204|0|204|purple|option=align=right}}
{{Tbc|4|0|0|255|blue}}
<pre><nowiki>{{Tbc|1|204|0|204|purple|option=align=right}}
{{Tbc|4|0|0|255|blue}}</nowiki></pre>
{{Anchor|Colorstring}}
7. 2 examples: {{T|Tbc}} with {{T|ColorString}}
<pre><nowiki>{{Information
|description=Wikimedia colors{{ColorString| /-/#069/wm blue/#096/wm green/#900/wm red}}
|other fields 1={{ColorString| /T/#FFFFFF/white}}
|date=2019-8-4
|source={{Own}}
|author={{Ut|Example|Author name}}
|other fields={{Igen|U|+|cb=/T/LightSalmon//DarkTurquoise}}
}}</nowiki></pre>
<div style="background-color:#dfd;width:60%;">Specify instead of "<tt>cb=/T/...</tt>" the parameter "<tt>cb='''e'''/T/...</tt>" for the option {{T|Easy border}}.</div>
{{Information
|description=Wikimedia colors{{ColorString| /-/#069/wm blue/#096/wm green/#900/wm red}}
|other fields 1={{ColorString| /T/#FFFFFF/white}}
|date=2019-8-4
|source={{Own}}
|author={{Ut|Example|Author name}}
|other fields={{Igen|U|+|cb=/T/LightSalmon//DarkTurquoise}}
}}
== See also ==
*{{W|Web colors}} for colors (names etc.)
*[http://www.netfront.fr/Services/rgb2pantone/ convert RGB to Pantone] (works only for some colors)
*[http://www.pantone.com/pages/pantone/colorfinder.aspx find Pantone color]
*Template {{Tl|Tincture}} for coats of arms
*Template {{Tl|Color}} for {{Color|#F0F|'''text'''}} and {{Color||''background''|bg=#ece}}
<includeonly>
[[Category:Color text formatting templates| ]]
[[Category:Colorbox formatting templates| ]]
[[Category:Table formatting templates| ]]
</includeonly>
|1def= 5 <ref name="m">(value when missing)</ref>
|2def= 0 <ref name="m"/>
|3def= 0 <ref name="m"/>
|4def= 0 <ref name="m"/>
|1=1
|1stat=required
|1d=specifies whether it is the first, a medium or the last line of the table
:<small>bit 1 (0001) on: first line</small>
:<small>bit 2 (0010) on (checked only when bit 1 is on): first line with header</small>
:<small>bit 4 (0100) on: last line</small>
:<small>bit 8 (1000) on (checked only when bit 1 is on): first line with {{T0|Information field|field name}}</small>
*0{{0}} (0000) medium line
*1{{0}} (0001) first line
*3{{0}} (0011) first line with header
*4{{0}} (0100) last line
*5{{0}} (0101) only line (1{{exp|st}} ''and'' last = single line)
*7{{0}} (0111) only line with header
*9{{0}} (1001) first line with field name
*<tt>D</tt>{{0}} (1101) ''or''
*13 (1101) single line with field name
|2=2
|2stat=required
|2d=decimal color code for red, value 0 to 255
|3=3
|3stat=required
|3d=decimal color code for green, value 0 to 255
|4=4
|4stat=required
|4d=decimal color code for blue, value 0 to 255
|5=5
|5d=descriptive color name (<u>not</u> {{W|Web colors#HTML color names|HTML}} or {{W|Pantone Matching System#Pantone Color Matching System|PMS}} color name)
|6=6
|6d=Pantone name (if any) <small>(like "9010 Pure White" or "9005 Jet Black")</small>
|6stat=optional-
|7=''text''
|7d=other header text than from the translation template {{T0|I18n/Colors}}
|7stat=optional-
|8=''option''
|8d=more table header option parameters (see example 6)
|8stat=optional-
|9=''style''
|9d=more table header style parameters
|9stat=optional-
|10=file
|10d=name of a file to be displayed right
|10def=<small>PAGENAME</small>
|10stat=optional-
|11=size
|11d=display size for that file
|11def=48
|11stat=optional-
|12=desc
|12d=descriptional text
|12stat=optional-
<!--
|13=bord
|13d=options
|13stat=optional-
|14=easy
|14d=use of {{T0|Easy border}}
|14stat=optional-
-->
|15=pixel
|15d=display size for {{T0|Easy border}}
|15def=96
|name={{BASEPAGENAME}}
|desc='''T'''a'''b'''le for '''c'''olors <small>(''not'' an {{W|International Statistical Classification of Diseases and Related Health Problems|IDC-10}} disease)</small><br>
Creates a table to describe the colors, for [[File talk:Flag of France.svg |flags]] or other colored items<br>May be within another table, as a files {{Tl|Information}} box or the {{Tl|Infobox flag}} description ({{F|Flag of Germany.svg#Description|example}})<br>The displayed color box is {{W|Tooltip|tooltipped}} to show the #rrggbb- or #rgb-color code.
{{Nobold|1=<small>For the R/G/B-values is the <u>decimal</u> notation required, because it is easy to convert decimal to hexadecimal, but very laborious to convert from hexadecimal (see [[#With Igen]]).<br>The hexadecimal values are displayed when the cursor is moved to the box.</small> }}
|namespace=all
|usergroup=all
|placement=
|usage-notes=<big>'''Best usage''' is within the {{Tl|Information}} description of the file, using the parameter ''other_fields'' ({{F|Germany Gay flag.svg#Summary|example}}).<br>Use <code>bit 8</code> to create a <tt>field name</tt>, either with <code>text=</code> or the defaults of {{Tl|I18n/Colors}};<br>
otherwise see more about how to use at the documentation of {{Tl|Information field}}. </big>
|type=|example=
|i18n-method=-
|i18n-desc=
|seealso=
|setscats=
|lines=
|shorthand=
|relieson=
}}
<references />
=== With Igen ===
{{Lua|Module:Color2dec|Module:Tincture}}To use it with the templates {{T0|Image generation}} or {{T0|ColorString}}, {{T0|Igen/cbx}} uses {{C|Modules for general use|Lua modules}} to convert the color codes from hex to dec.<br>Special values for Tbc-parameter 1 allow to separate table initiation (code B, and F for single line) and termination (code 6), <br>while ''all'' table rows are specified as "medium lines" (code 0). The default {{T0|InFi|field name}} is always generated.
<br>See the description at [[Template:Image generation#Tbc]].
;<u>Examples:</u>
1. One line<br>
<pre><nowiki>{{Tbc|5|186|31|181|violet|Purple}}</nowiki></pre>
{{Tbc|5|186|31|181|violet|Purple}}
<pre><nowiki>{{Tbc|7}}</nowiki></pre>
{{Tbc|7}}
2. Two lines
<pre><nowiki>{{Tbc|1|0|115|54|green|356}}
{{Tbc|4|0|153|68|green|452-2x}}</nowiki></pre>
{{Tbc|1|0|115|54|green|356}}
{{Tbc|4|0|153|68|green|452-2x}}
<pre><nowiki>{{Tbc|3|237|41|35|red}}
{{Tbc|4|255|255|255|white}}</nowiki></pre>
{{Tbc|3|237|41|35|red}}
{{Tbc|4|255|255|255|white}}
3. Three lines
<pre><nowiki>{{Tbc|1|0|146|70|green|17-6153}}
{{Tbc|0|255|255|255|white|11-0601}}
{{Tbc|4|206|43|55|red|18-1662}}</nowiki></pre>
{{Tbc|1|0|146|70|green|17-6153}}
{{Tbc|0|255|255|255|white|11-0601}}
{{Tbc|4|206|43|55|red|18-1662}}
<pre><nowiki>{{Tbc|3|232|125|13|<small>orange</small>| 716
|text='''Colour''' values|file=Flag of Niger.svg|size=96|desc=3-colored flag}}
{{Tbc|0|0|146|70|<small>green</small>|17-6153}}
{{Tbc|4|255|255|255|white|11-0601}}
</nowiki></pre>
{{Tbc|3|232|125|13|<small>orange</small>|{{0|00-}}716|text='''Colour''' values
|file=Flag of Niger.svg|size=96|desc=3-colored flag}}
{{Tbc|0|0|146|70|<small>green</small>|17-6153}}
{{Tbc|4|255|255|255|white|11-0601}}
4. with ''field name''
<pre><nowiki>{{Information
|description=description
|date=2013-01-24
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{Tbc|9|0|102|153|blue|text=Wikimedia colors<br>{{nobold|("websave colors)}
|file=Wikitech logo-blank.svg|size=80|desc=WikiTech}}
{{Tbc|0|255|255|255|white}} {{Tbc|0|0|153|102|green}} {{Tbc|4|153|0|0|red}}
}}</nowiki></pre>
{{Information
|description=description
|date=2013-01-24 <!-- * Andrea -->
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{Tbc|9|0|102|153|blue|text=Wikimedia colors<br>{{nobold|("websave" colors)}}
|file=Wikitech logo-blank.svg|size=80|desc=WikiTech}}
{{Tbc|0|255|255|255|white}} {{Tbc|0|0|153|102|green}} {{Tbc|4|153|0|0|red}}
}}
5. with ''[[Template:InFi|Other fields]]'' and ''[[Template:Information field]]''
<pre><nowiki>{{Information
|description=description
|date=2011-11-11
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{InFi|Gay colors|
{{Tbc|1|228|3|3|red}}
{{Tbc|0|255|140|0|orange}}
{{Tbc|0|255|237|0|yellow}}
{{Tbc|0|0|128|38|green}}
{{Tbc|0|0|77|255|blue}}
{{Tbc|4|117|7|135|purple}}
}}</nowiki></pre>
{{Information
|description=description
|date=2011-11-11
|source={{Own}}
|author={{Ut|Example|Author name}}
|other versions=
|other fields={{InFi|Gay colors|
{{Tbc|1|228|3|3|red}}
{{Tbc|0|255|140|0|orange}}
{{Tbc|0|255|237|0|yellow}}
{{Tbc|0|0|128|38|green}}
{{Tbc|0|0|77|255|blue}}
{{Tbc|4|117|7|135|purple}} }}
}}
6. with an option
{{Tbc|1|204|0|204|purple|option=align=right}}
{{Tbc|4|0|0|255|blue}}
<pre><nowiki>{{Tbc|1|204|0|204|purple|option=align=right}}
{{Tbc|4|0|0|255|blue}}</nowiki></pre>
{{Anchor|Colorstring}}
7. 2 examples: {{T|Tbc}} with {{T|ColorString}}
<pre><nowiki>{{Information
|description=Wikimedia colors{{ColorString| /-/#069/wm blue/#096/wm green/#900/wm red}}
|other fields 1={{ColorString| /T/#FFFFFF/white}}
|date=2019-8-4
|source={{Own}}
|author={{Ut|Example|Author name}}
|other fields={{Igen|U|+|cb=/T/LightSalmon//DarkTurquoise}}
}}</nowiki></pre>
<div style="background-color:#dfd;width:60%;">Specify instead of "<tt>cb=/T/...</tt>" the parameter "<tt>cb='''e'''/T/...</tt>" for the option {{T|Easy border}}.</div>
{{Information
|description=Wikimedia colors{{ColorString| /-/#069/wm blue/#096/wm green/#900/wm red}}
|other fields 1={{ColorString| /T/#FFFFFF/white}}
|date=2019-8-4
|source={{Own}}
|author={{Ut|Example|Author name}}
|other fields={{Igen|U|+|cb=/T/LightSalmon//DarkTurquoise}}
}}
== See also ==
*{{W|Web colors}} for colors (names etc.)
*[http://www.netfront.fr/Services/rgb2pantone/ convert RGB to Pantone] (works only for some colors)
*[http://www.pantone.com/pages/pantone/colorfinder.aspx find Pantone color]
*Template {{Tl|Tincture}} for coats of arms
*Template {{Tl|Color}} for {{Color|#F0F|'''text'''}} and {{Color||''background''|bg=#ece}}
<includeonly>
[[Category:Color text formatting templates| ]]
[[Category:Colorbox formatting templates| ]]
[[Category:Table formatting templates| ]]
</includeonly>