Template:Coltit/doc: Difference between revisions
en>Sarang m +link |
en>Sarang m inter |
||
| Line 42: | Line 42: | ||
* {{tl|Resize}} | * {{tl|Resize}} | ||
::: and | ::: and | ||
* {{Tl2|Coltit|LANG=:de:}} | * {{Tl2|Coltit|LANG=:de:}} (some differences, in German Wikipedia) | ||
* {{Tl2|Coltit|LANG=:commons:}} (more differences, in Wikimedia Commons) | |||
<includeonly> | <includeonly> | ||
Revision as of 05:44, 21 September 2012
| This is a documentation subpage for Template:Coltit. It may contain usage information, categories and other content that is not part of the original template page. |
This template might be used to color the background of a table cell; by the second parameter the text color can be specified. When the mouse pointer is located at the cell, the background color hex code triplet is displayed as a tooltip.
Usage
{{Coltit|RGB hex triplet of background color|RGB hex triplet of color|alignement letter|x=individual text}}
The template needs the colors hex code RGB or RRGGBB (not the color name); the 2nd parameters default value is 000 (black); possible alignement letters are: l (left), r (right) with default value center.
The parameter x= specifies a title text header different from its default value (color #).
For example:
{| class="wikitable"
|{{Coltit|F00|0FF}}'''red''' and complementary color
|{{Coltit|0ff|f00}}'''turq''' and complementary color
|{{Coltit}} no parameters, all defaults
|{{Coltit|ffee11|x=yellow background colour=#}}
|-
| colspan=4 title="background color: #FB2" bgcolor=#FB2 style="color:#FB2;text-align:center" | '''The background should be <u>light orange</u>, not black   <small>(Internet Explorer ''short form bug'')'''</small>
|}
results in
| red and complementary color | turq and complementary color | no parameters, all defaults | |
| The background should be light orange, not black (Internet Explorer short form bug) | |||
Move the mouse pointer to the table cell to see the background color value
See also
- {{Color}}
- {{Colors}}
- {{TextColors}}
- {{bkg}}
- {{bg}}
- {{Background color}}
- {{Font color}}
- {{Resize}}
- and
{{Coltit}}(some differences, in German Wikipedia){{Coltit}}(more differences, in Wikimedia Commons)