• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Coltit

  • Template
  • Talk
  • Language
  • Watch
  • Change
Template documentation[view] [edit] [history] [purge]

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.

Contents

  • 1 Usage
  • 2 Example
  • 3 See also
  • 4 Sibling projects

Usage

change

{{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 #).

Example

change
{| 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}} 
|-
| colspan=5 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
red and complementary color title="color
  1. 0FF" style="background: /* */#0ff; color: /* */#f00; text-align: auto;"| turq and complementary color
using absolute 8-bit decimal and percentage RGB notation no parameters, all defaults
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

change
  • {{Color}}
  • {{Colors}}
  • {{Background color}}
  • {{Font color}}
  • {{Resize}}

Sibling projects

change
  • {{Coltit}} (some differences, in German Wikipedia)
  • {{Coltit}} (more differences, in Wikimedia Commons)
The documentation on top is transcluded from Template:Coltit/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://simple.wikipedia.org/w/index.php?title=Template:Coltit&oldid=7102562"
Last edited on 9 September 2020, at 17:02

Languages

    • Alemannisch
    • العربية
    • Беларуская (тарашкевіца)
    • Deutsch
    • Eesti
    • English
    • فارسی
    • हिन्दी
    • Bahasa Indonesia
    • مازِرونی
    • 日本語
    • Nordfriisk
    • Norsk bokmål
    • ਪੰਜਾਬੀ
    • Polski
    • Português
    • Svenska
    • တႆး
    • ไทย
    • Türkçe
    • Українська
    • اردو
    • Tiếng Việt
    • 中文
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last changed on 9 September 2020, at 17:02.
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop