Difference between revisions of "Template:Coltit/doc"

From blackwiki
Jump to navigation Jump to search
imported>Addbot
m (Bot: Migrating interwiki links, now provided by Wikidata on d:q7644086)
imported>Plastikspork
(→‎See also: Remove per WP:TFD outcome)
Line 35: Line 35:
 
* {{tl|Color}}
 
* {{tl|Color}}
 
* {{tl|Colors}}
 
* {{tl|Colors}}
* {{tl|TextColors}}
 
 
* {{tl|bkg}}
 
* {{tl|bkg}}
* {{tl|bg}}
 
 
* {{tl|Background color}}
 
* {{tl|Background color}}
 
* {{tl|Font color}}
 
* {{tl|Font color}}
Line 46: Line 44:
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES AHERE, THANKS -->
[[Category:Text color templates|{{PAGENAME}}]]
+
[[Category:Text color templates]]
  
 
</includeonly>
 
</includeonly>

Revision as of 00:27, 20 October 2013

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 &emsp; <small>(Internet Explorer ''short form bug'')'''</small>
|}

results in

title="color F00" style="background: /* */Template:Number signF00; color: /* */Template:Number sign0FF; Template:Text-align"| red and complementary color title="color 0FF" style="background: /* */Template:Number sign0ff; color: /* */Template:Number signf00; Template:Text-align"| turq and complementary color title="color #FFF" style="background: /* */Template:Number sign#FFF; color: /* */Template:Number sign#000; Template:Text-align"| no parameters, all defaults title="yellow background colour=#" style="background: /* */Template:Number signffee11; color: /* */Template:Number sign#000; Template:Text-align"|
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

and
  • {{Coltit}} (some differences, in German Wikipedia)
  • {{Coltit}} (more differences, in Wikimedia Commons)