Template:Table Choice/doc: Difference between revisions

From Elwiki
 
(3 intermediate revisions by one other user not shown)
Line 32: Line 32:
==== Partial & Alternate ====
==== Partial & Alternate ====
  <span style="color:gray"><nowiki/>{| class="wikitable" style="margin: 0px"
  <span style="color:gray"><nowiki/>{| class="wikitable" style="margin: 0px"
  |</span> '''{{<nowiki/>tc|Partial|some of it is not released}}'''
  |</span> '''{{<nowiki/>tc|Partial|some of it are not released}}'''
  <span style="color:gray">|}</span>
  <span style="color:gray">|}</span>


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


<span style="color:gray"><nowiki/>{| class="wikitable" style="margin: 0px"
*Rename is not available for Partial and Alternate.
|</span> '''{{<nowiki/>tc|Partial|some of it is not released|something wrong|style=text-decoration:underline}}'''
<span style="color:gray">|}</span>
 
Will output:
{| class="wikitable" style="margin: 0px"
| {{tc|Partial|some of it is not released|something wrong|style=text-decoration:underline}}
|}


== Available parameters ==
== Available parameters ==
Line 62: Line 55:
| Retired / retired  || {{tc|Retired}}
| Retired / retired  || {{tc|Retired}}
|-
|-
| Alternate / Alternate || {{tc|Alternate}}
| Alternate / alternate || {{tc|Alternate}}
|-
|-
| Partial / partial || {{tc|Partial}}
| Partial / partial || {{tc|Partial}}

Latest revision as of 17:18, 24 August 2022

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