Template:Coltit/sandbox
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Coltit (diff). See also the companion subpage for test cases. |
This template colors the background of a table cell and displays the background color's hex code triplet as a tooltip when the mouse pointer is located in the cell. The second parameter specifies the text color.
Usage
{{Coltit|RGB hex triplet of background color|RGB hex triplet of color|alignment 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 #).
No tooltip
The parameter x=
by itself will suppress the tooltip.
Example
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap">
red and complementary color | turq and complementary color | using absolute 8-bit decimal and percentage RGB notation | no parameters, all defaults |
</syntaxhighlight> results in
red and complementary color | turq and complementary color | using absolute 8-bit decimal and percentage RGB notation | no parameters, all defaults |
Move the mouse pointer to the table cell to see the background color value
See also
- {{Color}}
- {{Colors}}
- {{Background color}}
- {{Font color}}
- {{Resize}}