Jump to content

Template:cell bg/documentation

From Wiktionary, the free dictionary
Documentation for Template:cell bg. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This is a convenience template to produce colored cells in tables. The default color is a dark gray (#eaecf0).

Usage

[edit]

Within a table, place the {{cell bg}} template before the cell content, like this:

{| class="wikitable"
| Normal cell
| {{cell bg}} | Colored cell
|}

which results in the following:

Normal cell Colored cell

Pass the first unnamed parameter to use a custom color:

{| class="wikitable"
| Normal cell
| {{cell bg|pink}} | Colored cell
|}

resulting in:

Normal cell Colored cell