Template:Colored cell

From TSP Encyclopedia
Revision as of 16:26, 31 January 2024 by Anjo (talk | contribs) (Template for making those colored cells for party colors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Formats a newly begun table cell to have the given background color. Optionally, adds a hover-over tooltip, rowspan or colspan value, or cell width.

[Edit template data]

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11 color colour

Hex code of the color the cell should have.

Default
000000
Example
FF9900
Stringrequired
hoverhover

Tooltip text to display when hovering over the cell.

Stringoptional
widthwidth

Width the cell should have.

Default
5px
Example
10px
Stringoptional
rowspanrowspan

Custom rowspan value.

Numberoptional
colspancolspan

Custom colspan value.

Numberoptional