Template:Coltit/doc: Difference between revisions
en>Sarang m expansion |
en>Sarang m corr |
||
| Line 9: | Line 9: | ||
The template needs the colors hex code RGB or RRGGBB (''not'' the color ''name''); the 2<sup>nd</sup> parameters default value is 000 (black); possible alignement letters are: l (''left''), r (''right'') with default value ''center''.<br> | The template needs the colors hex code RGB or RRGGBB (''not'' the color ''name''); the 2<sup>nd</sup> parameters default value is 000 (black); possible alignement letters are: l (''left''), r (''right'') with default value ''center''.<br> | ||
The parameter <code>x=</code> specifies a title text header different from its default value (color | The parameter <code>x=</code> specifies a title text header different from its default value (color #). | ||
For example: | For example: | ||
| Line 18: | Line 18: | ||
|{{Coltit|0FF|F00}}'''turq''' and complementary color | |{{Coltit|0FF|F00}}'''turq''' and complementary color | ||
|{{Coltit}} no parameters, all defaults | |{{Coltit}} no parameters, all defaults | ||
|{{Coltit| | |{{Coltit|ffee11|x=yellow background colour=#}} | ||
|} | |} | ||
</pre> results in | </pre> results in | ||
| Line 25: | Line 25: | ||
|{{Coltit|0FF|F00}}'''turq''' and complementary color | |{{Coltit|0FF|F00}}'''turq''' and complementary color | ||
|{{Coltit}} no parameters, all defaults | |{{Coltit}} no parameters, all defaults | ||
|{{Coltit| | |{{Coltit|ffee11|x=yellow background colour=#}} | ||
|} | |} | ||
''Move the mouse pointer to the table cell to see the background color value'' | ''Move the mouse pointer to the table cell to see the background color value'' | ||
Revision as of 18:06, 22 December 2011
| 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.
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=#}}
|}
results in
| red and complementary color | turq and complementary color | no parameters, all defaults |
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}}