Template:Table choice
This template is used to color the cell background and cell text of a table depending on what option you choose.
Parameters
The first un-named parameter (i.e. |1=) is the type of cell.
The second un-named parameter (i.e. |2=) is the content of the cell. This defaults to being the same as the first parameter.
The rowspan and colspan parameters set the rowspan or colspan of the table cell. See Wikepedia Help: Basic_table_markup § Adding HTML attributes to data cells for more info.
The style parameter adds style to the table cell, using CSS. To be exact, the CSS in style becomes inline CSS on the td (table data) element.
Usage
To use the template you choose from one of the available parameters and optionally choose to add custom text. Note that the first letter for custom text is automatically changed to uppercase.
Examples
{| class="wikitable" style="margin: 0px" | {{tc|yes}} |}
Will output:
| Yes |
{| class="wikitable" style="margin: 0px" | {{tc|unknown|not sure|style=text-decoration:underline}} |}
Will output:
| Not sure |
Available parameters
| Parameter | Example |
|---|---|
| yes | Yes |
| always | Always |
| no | No |
| never | Never |
| rarely | Rarely |
| neutral | Neutral |
| partial | Partial |
| planned | Planned |
| unknown | Unknown |
| in | off |
| in! | ON |
| out | off |
| out! | ON |
| n/a | N/A |
| - | — |