Template:Coltit

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Documentation icon Documentationview edit history purge

This documentation is transcluded from Template:Coltit/doc.

This template might be used to color the background of a single table cell, with some additional options.

Usage

{{Coltit |1= |2= |3= |4= }}

Or use the shorthand {{Ct|… parameters as described …}}

Template parameters

Parameter Description Default Status
1 background color in any valid color notation:
  • color name, or
  • color hex triplet #rgb or #rrggbb, or
  • "none" for transparent background, or
  • rgb notation (decimal or %)
This value is displayed when the mouse pointer is moved over the table cell
white (#fff) optional
2 text color in any notation:
  • color name, or
  • color hex triplet #rgb or #rrggbb, or
  • the character "w" for white, or
  • rgb notation
black (#000) optional
3 Either
  • "l" (character "L" or "l") for text-align left
  • "r" (character "R" or "r") for text-align right
  • "x" (character "X" or "x") use parameter #1 for text
  • "b" (character "B" or "b") like "x" above with bold display of par#1
  • any text for this table cell
text-align
center
optional
4 any text for this table cell; the text is concatenateable from
  • parameter #3 (if not b/l/r/x)
  • parameter #4
  • the string following the transclusion
empty optional
x any text for the title display prefix, replacing "color"
"x=<nowiki/>" for the prefix suppression
empty optional
style definition of additional style attributes, e.g. borders empty optional
class to define a HTML class attribute empty optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

See also

Examples

W X Y #00F #F00 #ABC Text text1text2 text2text3 Text text1text2text3

{{Ct}}
{{Ct|none|style=border:2px dotted#F0F}}
{{Coltit}}W W
{{Coltit|#abc}}X X
{{Coltit|none|4=<small>transparent</small>}} transparent
{{Coltit|#ff0|#f00}}'''Y''' Y
{{Coltit|#00f|#fff|x|x=blue=}} #00F
{{Coltit|#f00|w|b}} #F00
{{Ct|lime|green|x}} = #0F0 lime = #0F0
{{Coltit|#abc|w|x}} #ABC
{{Coltit|#F90||''Text''|x=<nowiki/>}} Text
{{Coltit|#3c1}}'''{{C|Green}}''' Green
{{Coltit|#FF8||l|text1}}text2 text1text2
{{Coltit|#3C2||<small>ltext|rtext</small>}} ltextrtext
{{Coltit|#Fd8||r|text2}}text3 text2text3
{{Coltit|#3c3}}
{{Coltit|#f9f}}'''''Text''''' Text
{{Coltit|#FF8||text1|text2}}text3 text1text2text3
{{Coltit|rgb(0,102,204)}} ≙ #06C ≙ #06C
{{Ct|rgb(73%,20%,30%)}} ≈ #B35 ≈ #B35


{{TableNo}} No {{TableYes}} Yes
can be substituted by
{{Ct|#FF9090}}No 00 No {{Ct|#90FF90||Yes}}0 Yes
(after the "Yes" color change 12/2013)
{{Ct|#FF9090}}No 00 No {{Ct|#D1E231||Yes}}0 Yes