Lompat ke isi

Cèṭa'an:Coltit/doc

Ḍâri Wikipèḍia bhâsa Madhurâ, lombhung pangataowan mardhika

TemplateStyles' src attribute must not be empty.

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.

{{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

[beccè' sombher]

The parameter x= by itself will suppress the tooltip.

{| class="wikitable"
|{{Coltit|F00|0FF}}'''red''' and complementary color
|{{Coltit|#0ff|#f00}}'''turq''' and complementary color
|{{Coltit|rgb=12,34,56|color=75%,50%,25%}} using absolute 8-bit decimal and percentage RGB notation
|{{Coltit}} no parameters, all defaults 
|{{Coltit|ffee11|x=yellow background colour}} 
|}

results in

title="color F00" style="background: /* */Cèṭa'an:Number signF00; color: /* */Cèṭa'an:Number sign0FF; Cèṭa'an:Text-align"| red and complementary color title="color #0FF" style="background: /* */#0ff; color: /* */#f00; Cèṭa'an:Text-align"| turq and complementary color title="color 12,34,56" style="background: rgb(12,34,56); color: rgb(75%,50%,25%); Cèṭa'an:Text-align"| using absolute 8-bit decimal and percentage RGB notation title="color UNSPECIFIED" style=" Cèṭa'an:Text-align"| no parameters, all defaults title="yellow background colour" style="background: /* */Cèṭa'an:Number signffee11; Cèṭa'an:Text-align"|

Move the mouse pointer to the table cell to see the background color value

See also

[beccè' sombher]

Sibling projects

[beccè' sombher]
  • {{Coltit}} (some differences, in German Wikipedia)
  • {{Coltit}} (more differences, in Wikimedia Commons)