Template:Table Choice/doc

From Elwiki
Revision as of 16:18, 24 August 2022 by Ritsu (talk | contribs) (Ritsu moved page Doc:Template:Table Choice to Template:Table Choice/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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