Template:Colored cell: Difference between revisions
Jump to navigation
Jump to search
m (Fix rowspan) Tag: 2017 source edit |
m (Add support for named web colors) Tag: 2017 source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#if: {{{hover|}}}|title="{{{hover|}}}" |}}{{#if:{{{rowspan|}}}|rowspan={{{rowspan|}}} |}} | <onlyinclude><includeonly>{{#if: {{{hover|}}}|title="{{{hover|}}}"|}} {{#if:{{{rowspan|}}}|rowspan={{{rowspan|}}}|}} {{#if:{{{colspan|}}}|colspan={{{colspan|}}}|}} style="background: {{{1|{{{color|{{{colour|#000000}}}}}}}}}; width: {{{width|5px}}};" | | ||
</includeonly></onlyinclude> | </includeonly></onlyinclude> | ||
<noinclude> | <noinclude> | ||
Line 10: | Line 10: | ||
"colour" | "colour" | ||
], | ], | ||
"description": " | "description": "Color the cell should have, in CSS syntax.", | ||
"example": "FF9900", | "example": "#FF9900, black", | ||
"type": "string", | "type": "string", | ||
"default": "000000", | "default": "#000000", | ||
"required": true | "required": true | ||
}, | }, |
Latest revision as of 11:03, 15 February 2024
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 color colour | Color the cell should have, in CSS syntax.
| String | required |
hover | hover | Tooltip text to display when hovering over the cell. | String | optional |
width | width | Width the cell should have.
| String | optional |
rowspan | rowspan | Custom rowspan value. | Number | optional |
colspan | colspan | Custom colspan value. | Number | optional |