Template:Table Choice

From Elwiki
(Redirected from Template:Tc)
Information: If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:Table Choice/doc.
Shortcut
tc

This template is used to color the cell background and cell text of a table depending on what option you choose.

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.

style= can be use to add additional styling.

Examples

Normal

{| 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

Partial & Alternate

{| class="wikitable" style="margin: 0px"
| {{tc|Partial|some of it are not released}}
|}

Will output:

Partial
  • Rename is not available for Partial and Alternate.

Available parameters

Parameter Example
Yes / yes Yes
No / no No
Never / never Never
Retired / retired Retired
Alternate / alternate Alternate
Partial / partial Partial
Unsure / Unknown / unsure / unknown Unknown
N/A N/A