Template:Coltit
Appearance
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= }}
{{Ct|… parameters as described …}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | background color in any valid color notation:
| white (#fff) | optional | |
2 | text color in any notation:
| black (#000) | optional | |
3 | Either
| text-align center | optional | |
4 | any text for this table cell; the text is concatenateable from
| 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
- en:Template:Coltit (some differences)
- de:Vorlage:Coltit (some differences)
Localization
This template is not intended to be localized.
Examples
| W | X | Y | #00F | #F00 | #ABC | Text | text1text2 | text2text3 | Text | text1text2text3 |
| {{Ct}} | |
| {{Ct|none|style=border:3px 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|#9f9}} | |
| {{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 | No | {{Ct|#90FF90||Yes}} | Yes |
| (after the "Yes" color change 12/2013) | |||
| {{Ct|#FF9090}}No | No | {{Ct|#D1E231||Yes}} | Yes |