Template:Table cell templates/doc: Difference between revisions

m TemplateData: Spelling/grammar/punctuation/typographical correction
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>{{#ifeq:{{FULLPAGENAME}}|Template:BLACK|{{For|the text color template|Template:Black}}|{{#ifeq:{{FULLPAGENAME}}|Template:Ya|{{For|the template with a smaller tick and no green background|Template:Aye}}|{{#ifeq:{{FULLPAGENAME}}|Template:Maybe|{{For|the yellow tick template|Template:Mby}}|{{#ifeq:{{FULLPAGENAME}}|Template:TBA|{{distinguish|Template:TBD}}}}}}}}}}
<noinclude>{{Documentation subpage}}</noinclude>{{#ifeq:{{FULLPAGENAME}}|Template:BLACK|{{For|the text color template|Template:Black}}|{{#ifeq:{{FULLPAGENAME}}|Template:Ya|{{For|the template with a smaller tick and no green background|Template:Aye}}|{{#ifeq:{{FULLPAGENAME}}|Template:Maybe|{{For|the yellow tick template|Template:Mby}}|{{#ifeq:{{FULLPAGENAME}}|Template:TBA|{{distinguish|Template:TBD}}}}}}}}}}
The templates in this series are designed to be used in a [[Help:Table|table]] to make a cell with text in that cell, with an appropriately colored background. They are commonly used in [[:Category:Comparisons|comparison tables]].
{{#ifeq:{{#invoke:High-use|num|x|demo={{ROOTPAGENAME}}}}|many||{{High-use|demo={{ROOTPAGENAME}}}}}}
The templates in this series are designed to be used in a [[Help:Table|table]] to make a cell with text in that cell, with an appropriately colored background. They are commonly used in [[:Category:Comparisons|comparison tables]]. Most of these templates should not be used simply to produce a background color, use them according to their meaning.


For example, {{Tlc|yes}} makes a cell with a green background. The text in the cell is taken from the [[Help:Template#Parameters|first parameter]]; <code><nowiki>{{</nowiki>yes|Sure}}</code> would output "Sure" otherwise it defaults to "Yes". Most templates allow authors to override the default text in this way, some require text put after the template call and some also need a vertical bar in between: <code><nowiki>{{</nowiki>''table cell template''}} ''text''</code> or <code><nowiki>{{</nowiki>''table cell template''}} | ''text''</code>. This information, the colors and default texts are found in the table below.
For example, {{Tlc|yes}} makes a cell with a green background. The text in the cell is taken from the [[Help:Template#Parameters|first parameter]]; <code><nowiki>{{</nowiki>yes|Sure}}</code> would output "Sure" otherwise it defaults to "Yes". Most templates allow authors to override the default text in this way, some require text put after the template call and some also need a vertical bar in between: <code><nowiki>{{</nowiki>''table cell template''}} ''text''</code> or <code><nowiki>{{</nowiki>''table cell template''}} | ''text''</code>. This information, the colors and default texts are found in the table below.
Line 20: Line 21:
== Templates ==
== Templates ==
<div style="overflow:100%;">
<div style="overflow:100%;">
{| class="wikitable" style="text-align: left; width: 100%;"
{| class="wikitable" style="width:100%; text-align:left;"
|+ Table cell templates
|+ Table cell templates
! Class<ref name="table-cell-templates-table-css">The HTML class of table cell templates may be referenced in a [[m:help:User style|user stylesheet]] to change appearance.</ref> !! Default syntax !! Preview (default) !! Customized syntax !! Preview (customized)
! rowspan=2 | Class<ref>The HTML class of table cell templates may be referenced in a [[m:help:User style|user stylesheet]] to change appearance.</ref>
! colspan=2 | Default
! colspan=2 | Customized
|-
|-
|rowspan=2| <code>table-rh</code>
! Syntax !! Preview
| {{tl|rh}} {{!}} Row header<ref name="table-cell-templates-table-after+pipe" /> || {{rh}} | Row header || {{tlp|rh|2=align=right}} {{!}} Row header || {{rh|align=right}} | Row header
! Syntax !! Preview
|-
|-
| {{tl|rh2}} {{!}} Row header<ref name="table-cell-templates-table-after+pipe">Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.</ref> || {{rh2}} {{!}} Row header || {{tlp|rh2|2=align=right}} | Row header || {{rh2|align=right}} | Row header
|rowspan=2| <code>table-rh</code>
| {{tlx|rh}} {{mono|{{!}} Row header}}<ref name="table-cell-templates-table-after+pipe" /> || {{rh}} | Row header || {{tlx|rh|2=align=right}} {{mono|{{!}} Row header}} || {{rh|align=right}} | Row header
|-
|-
|rowspan=4| <code>table-yes</code>  
| {{tlx|rh2}} {{mono|{{!}} Row header}}<ref name="table-cell-templates-table-after+pipe">Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.</ref> || {{rh2}} | Row header || {{tlx|rh2|2=align=center}} {{mono|{{!}} Row header}} || {{rh2|align=center}} | Row header
| {{tl|yes}} || {{yes}} || {{tlp|yes|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{yes|customized [[plain text|text]]}}
|-
|-
| {{tl|yes C}} || {{yes C}} || {{tlp|yes C|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{yes C|customized [[plain text|text]]}}
|rowspan=4| <code>table-yes</code>
| {{tlx|yes}} || {{yes}} || {{tlx|yes|<nowiki>customized [[Plain text|text]]</nowiki>}} ||{{yes|customized [[Plain text|text]]}}
|-
|-
| {{tl|yes O}} || {{yes O}} || {{tlp|yes O|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{yes O|customized [[plain text|text]]}}
| {{tlx|yes C}} || {{yes C}} || {{tlx|yes C|<nowiki>customized [[Plain text|text]]</nowiki>}} ||{{yes C|customized [[Plain text|text]]}}
|-
|-
| {{tl|yes N}} || {{yes N}} || {{tlp|yes N|<nowiki>customized [[plain text|text]]</nowiki>}} || {{yes N|customized [[plain text|text]]}}
| {{tlx|yes O}} || {{yes O}} || {{tlx|yes O|<nowiki>customized [[Plain text|text]]</nowiki>}} ||{{yes O|customized [[Plain text|text]]}}
|-
|-
| <code>table-maybe</code>
| {{tlx|yes N}} || {{yes N}} || {{tlx|yes N|<nowiki>customized [[Plain text|text]]</nowiki>}} || {{yes N|customized [[Plain text|text]]}}
| {{tl|maybe}} || {{maybe}} || {{tlp|maybe|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{maybe|customized [[plain text|text]]}}
|-
|-
|rowspan=8| <code>table-no</code>  
| <code>table-maybe</code>
| {{tl|no}} || {{no}} || {{tlp|no|<nowiki>customized [[plain text|text]]</nowiki>}} || {{no|customized [[plain text|text]]}}
| {{tlx|maybe}} || {{maybe}} || {{tlx|maybe|<nowiki>customized [[Plain text|text]]</nowiki>}} ||{{maybe|customized [[Plain text|text]]}}
|-
|-
| {{tl|no O}} || {{no O}} || {{tlp|no O|<nowiki>customized [[plain text|text]]</nowiki>}} || {{no O|customized [[plain text|text]]}}
|rowspan=8| <code>table-no</code>
| {{tlx|no}} || {{no}} || {{tlx|no|<nowiki>customized [[Plain text|text]]</nowiki>}} || {{no|customized [[Plain text|text]]}}
|-
|-
| {{tl|no X}} || {{no X}} || {{tlp|no X|<nowiki>customized [[plain text|text]]</nowiki>}} || {{no X|customized [[plain text|text]]}}
| {{tlx|no O}} || {{no O}} || {{tlx|no O|<nowiki>customized [[Plain text|text]]</nowiki>}} || {{no O|customized [[Plain text|text]]}}
|-
|-
| {{tl|eliminated}} || {{eliminated}} || {{tlp|eliminated|dropped out}} || {{eliminated|dropped out}}
| {{tlx|no X}} || {{no X}} || {{tlx|no X|<nowiki>customized [[Plain text|text]]</nowiki>}} || {{no X|customized [[Plain text|text]]}}
|-
|-
| {{tlp|active fire|12%}} || {{active fire|12%}} || ||
| {{tlx|eliminated}} || {{eliminated}} || {{tlx|eliminated|dropped out}} || {{eliminated|dropped out}}
|-
|-
| {{tl|lost}} || {{lost}} || {{tlp|lost|missing}} || {{lost|missing}}
| {{tlx|lost}} || {{lost}} || {{tlx|lost|missing}} || {{lost|missing}}
|-
|-
| {{tl|safe}} || {{safe}} || {{tlp|safe|protected}} || {{safe|protected}}
| {{tlx|active fire|12%}}<ref>This template is related to {{WikiProject link|Wildfire}}.</ref> || {{active fire|12%}} || ||
|-
|-
| {{tl|no Y}} || {{no Y}} || {{tlp|no Y|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{no Y|customized [[plain text|text]]}}
| {{tlx|safe}} || {{safe}} || {{tlx|safe|protected}} || {{safe|protected}}
|-
|-
| <code>table-active</code>
| {{tlx|no Y}} || {{no Y}} || {{tlx|no Y|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{no Y|customized [[plain text|text]]}}
| {{tl|active}} || {{active}} || {{tlp|active|live}} || {{active|live}}
|-
|-
|rowspan=2| <code>table-siteactive</code>  
| <code>table-active</code>
| {{tl|site active}} || {{site active}} || {{tlp|site active|up}} || {{site active|up}}
| {{tlx|active}} || {{active}} || {{tlx|active|live}} || {{active|live}}
|-
|-
| {{tl|coming soon}} || {{coming soon}} || {{tlp|coming soon|second half of the year}} || {{coming soon|second half of the year}}
|rowspan=2| <code>table-siteactive</code>
| {{tlx|site active}} || {{site active}} || {{tlx|site active|up}} || {{site active|up}}
|-
|-
| <code>table-siteinactive</code>
| {{tlx|coming soon}} || {{coming soon}} || {{tlx|coming soon|second half of the year}} || {{coming soon|second half of the year}}
| {{tl|site inactive}} || {{site inactive}} || {{tlp|site inactive|down}} || {{site inactive|down}}
|-
|-
|rowspan=11| <code>table-yes2</code>  
| <code>table-siteinactive</code>
| {{tl|good}} || {{good}} || {{tlp|good|A}} || {{good|A}}
| {{tlx|site inactive}} || {{site inactive}} || {{tlx|site inactive|down}} || {{site inactive|down}}
|-
|-
| {{tl|yes2}} || {{yes2}} || {{tlp|yes2|text}} || {{yes2|text}}
| rowspan=2 |<code>table-success</code>
| {{tlx|success}} || {{success}} || {{tlx|success|mission complete}} || {{success|mission complete}}
|-
|-
| {{tl|ya}} || {{ya}} || {{tlp|ya|text{{=}}ya}} || {{ya|text=ya}}
| {{tlx|operational}} || {{operational}} || {{tlx|operational|returning data}} || {{operational|returning data}}
|-
|-
| {{tlp|ya|Ya}} || {{ya|Ya}} || {{tlp|ya|text|link{{=}}WP:ALT}} || {{ya|text|link=WP:ALT}}
| <code>table-failure</code>
| {{tlx|failure}} || {{failure}} || {{tlx|failure|wrong orbit}} || {{failure|wrong orbit}}
|-
|-
| {{tl|won}} || {{won}} || {{tlp|won|text{{=}}white|color{{=}}darkblue|winner}} || {{won|text=white|color=darkblue|winner}}
|rowspan=12| <code>table-yes2</code>
| {{tlx|yes2}} || {{yes2}} || {{tlx|yes2|text}} || {{yes2|text}}
|-
|-
| {{tlp|won|place{{=}}1}} || {{won|place=1}} || {{tlp|won|place{{=}}gold}} || {{won|place=gold}}
| {{tlx|good}} || {{good}} || {{tlx|good|A}} || {{good|A}}
|-
|-
| {{tlp|won|place{{=}}2}} || {{won|place=2}} || {{tlp|won|place{{=}}silver}} || {{won|place=silver}}
| {{tlx|ya}} || {{ya}} || {{tlx|ya|text{{=}}ya}} || {{ya|text=ya}}
|-
|-
| {{tlp|won|place{{=}}3}} || {{won|place=3}} || {{tlp|won|place{{=}}bronze}} || {{won|place=bronze}}
| {{tlx|ya|Ya}} || {{ya|Ya}} || {{tlx|ya|text|link{{=}}WP:ALT}} || {{ya|text|link=WP:ALT}}
|-
|-
| {{tl|WinDL}} || {{WinDL}} || {{tlp|WinDL|win}} || {{WinDL|win}}
| {{tlx|yan}} || {{yan}} || {{tlx|yan|text{{=}}ya}} || {{yan|text=ya}}
|-
|-
| {{tlp|WinDL|res{{=}}D}} || {{WinDL|res=D}} || {{tlp|WinDL|res{{=}}draw}} || {{WinDL|res=draw}}
| {{tlx|won}} || {{won}} || {{tlx|won|text{{=}}white|color{{=}}darkblue|winner}} || {{won|text=white|color=darkblue|winner}}
|-
|-
| {{tlp|WinDL|res{{=}}L}} || {{WinDL|res=L}} || {{tlp|WinDL|res{{=}}loss}} || {{WinDL|res=loss}}
| {{tlx|won|place{{=}}1}} || {{won|place=1}} || {{tlx|won|place{{=}}gold}} || {{won|place=gold}}
|-
|-
|rowspan=7| <code>table-no2</code>
| {{tlx|won|place{{=}}2}} || {{won|place=2}} || {{tlx|won|place{{=}}silver}} || {{won|place=silver}}
| {{tl|no2}} || {{no2}} || {{tlp|no2|text}} || {{no2|text}}
|-
|-
| {{tl|na}} || {{na}} || {{tlp|na|text{{=}}na}} || {{na|text=na}}
| {{tlx|won|place{{=}}3}} || {{won|place=3}} || {{tlx|won|place{{=}}bronze}} || {{won|place=bronze}}
|-
|-
| {{tlp|na|Na}} || {{na|Na}} || {{tlp|na|text|link{{=}}WP:ALT}} || {{na|text|link=WP:ALT}}
| {{tlx|WinDL}} || {{WinDL}} || {{tlx|WinDL|win}} || {{WinDL|win}}
|-
|-
| {{tl|nom}} || {{nom}} || {{tlp|nom|5}} || {{nom|5}}
| {{tlx|WinDL|res{{=}}D}} || {{WinDL|res=D}} || {{tlx|WinDL|res{{=}}draw}} || {{WinDL|res=draw}}
|-
|-
| {{tl|sho}} || {{sho}} || {{tlp|sho|proposed}} || {{sho|proposed}}
| {{tlx|WinDL|res{{=}}L}} || {{WinDL|res=L}} || {{tlx|WinDL|res{{=}}loss}} || {{WinDL|res=loss}}
|-
|-
| {{tl|longlisted}} || {{longlisted}} || {{tlp|longlisted|rejected}} || {{longlisted|rejected}}
|rowspan=9| <code>table-no2</code>
| {{tlx|no2}} || {{no2}} || {{tlx|no2|text}} || {{no2|text}}
|-
|-
| {{tl|TBA}} || {{TBA}} || {{tlp|TBA|to be announced}} || {{TBA|to be announced}}
| {{tlx|na}} || {{na}} || {{tlx|na|text{{=}}na}} || {{na|text=na}}
|-
|-
| rowspan=3 |<code>table-success</code>
| {{tlx|na|Na}} || {{na|Na}} || {{tlx|na|text|link{{=}}WP:ALT}} || {{na|text|link=WP:ALT}}
| {{tl|success}} || {{success}} || {{tlp|success|mission complete}} || {{success|mission complete}}
|-
|-
| {{tl|operational}} || {{operational}} || {{tlp|operational|returning data}} || {{operational|returning data}}
| {{tlx|nan}} || {{nan}} || {{tlx|nan|text{{=}}na}} || {{nan|text=na}}
|-
|-
| {{tl|Intentionally destroyed}} || {{Intentionally destroyed}} || {{tlp|Intentionally destroyed|deliberately exploded}} || {{Intentionally destroyed|deliberately exploded}}
| {{tlx|nom}} || {{nom}} || {{tlx|nom|5}} || {{nom|5}}
|-
|-
| <code>table-failure</code>
| {{tlx|notnom}} || {{notnom}} || | {{tlx|notnom|not selected}} || {{notnom|not selected}}
| {{tl|failure}} || {{failure}} || {{tlp|failure|wrong orbit}} || {{failure|wrong orbit}}
|-
|-
| rowspan=18| <code>table-partial</code>
| {{tlx|sho}} || {{sho}} || {{tlx|sho|proposed}} || {{sho|proposed}}
| {{tl|partial}} || {{partial}} || {{tlp|partial|almost done}} ||{{partial|almost done}}
|-
|-
| {{tl|Regional}} || {{Regional}} || {{tlp|Regional|Uyghur}} || {{Regional|Uyghur}}
| {{tlx|longlisted}} || {{longlisted}} || {{tlx|longlisted|rejected}} || {{longlisted|rejected}}
|-
|-
| {{tl|MaybeCheck}} || {{MaybeCheck}} || {{tlp|MaybeCheck|text{{=}}possibly}} || {{MaybeCheck|text=possibly}}
| {{tlx|TBA}} || {{TBA}} || {{tlx|TBA|to be announced}} || {{TBA|to be announced}}
|-
|-
| {{tlp|MaybeCheck|possibly}} || {{MaybeCheck|possibly}} || {{tlp|MaybeCheck|text|link{{=}}WP:ALT}} || {{MaybeCheck|text|link=WP:ALT}}
| rowspan=16| <code>table-partial</code>
| {{tlx|partial}} || {{partial}} || {{tlx|partial|almost done}} ||{{partial|almost done}}
|-
|-
| {{tl|main mission failure}} || {{main mission failure}} || {{tlp|main mission failure|Primary objective failed, but a secondary objective succeed}} || {{main mission failure|Primary objective failed, but secondary objective succeed}}
| {{tlx|Regional}} || {{Regional}} || {{tlx|Regional|Uyghur}} || {{Regional|Uyghur}}
|-
|-
| {{tl|scrapped}} || {{scrapped}} || {{tlp|scrapped|unfinished}} || {{scrapped|unfinished}}
| {{tlx|MaybeCheck}} || {{MaybeCheck}} || {{tlx|MaybeCheck|text{{=}}possibly}} || {{MaybeCheck|text=possibly}}
|-
| {{tl|partial success}} || {{partial success}} || {{tlp|partial success|reached orbit and returned pictures}} || {{partial success|reached orbit and returned pictures}}
|-
|-
| {{tl|partial failure}} || {{partial failure}} || {{tlp|partial failure|<nowiki>[[Cubesat]] not deployed</nowiki>}} || {{partial failure|[[Cubesat]] not deployed}}
| {{tlx|MaybeCheck|possibly}} || {{MaybeCheck|possibly}} || {{tlx|MaybeCheck|text|link{{=}}WP:ALT}} || {{MaybeCheck|text|link=WP:ALT}}
|-
|-
| {{tl|okay}} || {{okay}} || {{tlp|okay|C}} || {{okay|C}}
| {{tlx|partial success}} || {{partial success}} || {{tlx|partial success|<br />reached orbit and returned pictures}} || {{partial success|reached orbit and returned pictures}}
|-
|-
| {{tl|Yes-No}} || {{Yes-No}} || {{tlp|Yes-No|yes with an if; no with a but}} || {{Yes-No|yes with an if; no with a but}}
| {{tlx|partial failure}} || {{partial failure}} || {{tlx|partial failure|<nowiki>[[</nowiki>Cubesat]] not deployed}} || {{partial failure|[[Cubesat]] not deployed}}
|-
|-
| {{tl|some}} || {{some}} || {{tlp|some|many}} || {{some|many}}
| {{tlx|okay}} || {{okay}} || {{tlx|okay|C}} || {{okay|C}}
|-
|-
| {{tl|nonpartisan}} || {{nonpartisan}} || {{tlp|nonpartisan|impartial}} || {{nonpartisan|impartial}}
| {{tlx|Yes-No}} || {{Yes-No}} || {{tlx|Yes-No|yes with an if; no with a but}} || {{Yes-No|yes with an if; no with a but}}
|-
|-
| {{tl|pending}} || {{pending}} || {{tlp|pending|awaiting}} || {{pending|awaiting}}
| {{tlx|some}} || {{some}} || {{tlx|some|many}} || {{some|many}}
|-
|-
| {{tl|unofficial}} || {{unofficial}} || {{tlp|unofficial|<nowiki>''de facto''</nowiki>}} || {{unofficial|''de facto''}}
| {{tlx|pending}} || {{pending}} || {{tlx|pending|awaiting}} || {{pending|awaiting}}
|-
|-
| {{tl|unofficial2}} || {{unofficial2}} || {{tlp|unofficial2|<nowiki>''de facto''</nowiki>}} || {{unofficial2|''de facto''}}
| {{tlx|sometimes}} || {{sometimes}} || {{tlx|sometimes|occasionally}} || {{sometimes|occasionally}}
|-
|-
| {{tl|usually}} || {{usually}} || {{tlp|usually|commonly}} || {{usually|commonly}}
| {{tlx|rarely}} || {{rarely}} || {{tlx|rarely|seldom}}|| {{rarely|seldom}}
|-
|-
| {{tl|rarely}} || {{rarely}} || {{tlp|rarely|seldom}}|| {{rarely|seldom}}
| {{tlx|usually}} || {{usually}} || {{tlx|usually|commonly}} || {{usually|commonly}}
|-
|-
| {{tl|sometimes}} || {{sometimes}} || {{tlp|sometimes|occasionally}} || {{sometimes|occasionally}}
| {{tlx|unofficial}} || {{unofficial}} || {{tlx|unofficial|<nowiki>''de facto''</nowiki>}} || {{unofficial|''de facto''}}
|-
|-
| <code>table-noAttempt</code>
| {{tlx|unofficial2}} || {{unofficial2}} || {{tlx|unofficial2|<nowiki>''de facto''</nowiki>}} || {{unofficial2|''de facto''}}
| {{tl|No attempt}} || {{No attempt}} || {{tlp|No attempt|No landing attempted}} || {{No attempt|No landing attempted}}
|-
|-
| <code>table-any</code>
| {{tlx|nonpartisan}} || {{nonpartisan}} || {{tlx|nonpartisan|impartial}} || {{nonpartisan|impartial}}
| {{tl|any}} || {{any}} || {{tlp|any|anyone}}|| {{any|anyone}}
|-
|-
|rowspan=7| <code>table-na</code>  
| <code>table-any</code>
| {{tl|n/a}} || {{n/a}} || {{tlp|n/a|unavailable}}|| {{n/a|unavailable}}
| {{tlx|any}} || {{any}} || {{tlx|any|anyone}}|| {{any|anyone}}
|-
|-
| {{tl|varies}} || {{varies}} || {{tlp|varies|differs}}|| {{varies|differs}}
| <code>table-automatic</code>
| {{tlx|perhaps}} || {{perhaps}} || {{tlx|perhaps|maybe}} || {{perhaps|maybe}}
|-
|-
| {{tl|sdash}} || {{sdash}} || {{tlp|sdash|<nowiki>[[File:Dash.svg|13px|link=|dash icon]]</nowiki>}}|| {{sdash|[[File:Dash.svg|13px|link=|dash]]}}
| <code>table-draw</code>
| {{tlx|draw}} || {{draw}} || {{tlx|draw|1:1}} || {{draw|1:1}}
|-
|-
| {{tl|BLACK}} || {{BLACK}} || {{tlp|BLACK|banned}} || {{BLACK|banned}}
| <code>table-noAttempt</code>
| {{tlx|No attempt}} || {{No attempt}} || {{tlx|No attempt|No landing attempted}} || {{No attempt|No landing attempted}}
|-
|-
| {{tl|non-album single}} || {{non-album single}} || {{tlp|non-album single|EP}} || {{non-album single|EP}}
|rowspan=7| <code>table-na</code>
| {{tlx|n/a}} || {{n/a}} || {{tlx|n/a|unavailable}}|| {{n/a|unavailable}}
|-
|-
| {{tl|unreleased}} || {{unreleased}} || {{tlp|unreleased|shelved}} || {{unreleased|shelved}}
| {{tlx|varies}} || {{varies}} || {{tlx|varies|differs}}|| {{varies|differs}}
|-
|-
| {{tl|vacant}} || {{vacant}} || {{tlp|vacant|missing}} || {{vacant|missing}}
| {{tlx|non-album single}}<ref>This template is related to {{WikiProject link|Songs}}.</ref> || {{non-album single}} || {{tlx|non-album single|EP}} || {{non-album single|EP}}
|-
|-
|rowspan=2| <code>table-unknown</code>
| {{tlx|unreleased}} || {{unreleased}} || {{tlx|unreleased|shelved}} || {{unreleased|shelved}}
| {{tl|unknown}} || {{Unknown}} || {{tlp|unknown|?}} || {{unknown|?}}
|-
|-
| {{tl|dunno}} || {{Dunno}} || {{tlp|dunno|not sure}} || {{dunno|not sure}}
| {{tlx|BLACK}} || {{BLACK}} || {{tlx|BLACK|banned}} || {{BLACK|banned}}
|-
|-
| <code>table-automatic</code>
| {{tlx|sdash}} || {{sdash}} || {{tlx|sdash|<nowiki>[[</nowiki>File:Dash.svg|13px|link=|dash icon]]}}|| {{sdash|[[File:Dash.svg|13px|link=|dash]]}}
| {{tl|perhaps}} || {{perhaps}} || {{tlp|perhaps|maybe}} || {{perhaps|maybe}}
|-
|-
| <code>table-depends</code>
| {{tlx|vacant}} || {{vacant}} || {{tlx|vacant|missing}} || {{vacant|missing}}
| {{tl|depends}} || {{depends}} || {{tlp|depends|vendor-defined}} || {{depends|vendor-defined}}
|-
|-
| <code>table-included</code>  
|rowspan=2| <code>table-unknown</code>
| {{tl|included}} || {{included}} || {{tlp|included|incorporated}} || {{included|incorporated}}
| {{tlx|unknown}} || {{Unknown}} || {{tlx|unknown|?}} || {{unknown|?}}
|-
|-
|rowspan=2| <code>table-dropped</code>
| {{tlx|dunno}} || {{Dunno}} || {{tlx|dunno|not sure}} || {{dunno|not sure}}
| {{tl|dropped}} || {{dropped}} || {{tlp|dropped|discontinued}} || {{dropped|discontinued}}
|-
|-
| {{tl|terminated}} || {{terminated}} || {{tlp|terminated|fired}} || {{terminated|fired}}
| <code>table-included</code>
| {{tlx|included}} || {{included}} || {{tlx|included|incorporated}} || {{included|incorporated}}
|-
|-
|rowspan=9| <code>table-software</code>  
| <code>noresult</code>
| {{tl|beta}} || {{beta}} || {{tlp|beta|preview}} || {{beta|preview}}
| {{tlx|no result}} || {{no result}} || {{tlx|no result|NR}} || {{no result|NR}}
|-
|-
| {{tl|table-experimental}} || {{table-experimental}} || {{tlp|table-experimental|lab}} || {{table-experimental|lab}}
| <code>table-planned</code>
| {{tlx|planned}} || {{planned}} || {{tlx|planned|July 2028}} || {{planned|July 2028}}
|-
|-
| {{tl|open source}} || {{open source}} || {{tlp|open source|software libre}} || {{open source|software libre}}  
| <code>table-scheduled</code>
| {{tlx|scheduled}} || {{scheduled}} || {{tlx|scheduled|3 March 2027}} || {{scheduled|3 March 2027}}
|-
|-
| {{tl|free}} || {{free}} || {{tlp|free|empty}} || {{free|empty}}
|rowspan=9| <code>table-software</code><ref>This group of templates is related to {{WikiProject link|Software}}.</ref>
| {{tlx|beta}} || {{beta}} || {{tlx|beta|preview}} || {{beta|preview}}
|-
|-
| {{tl|proprietary}} || {{proprietary}} || {{tlp|proprietary|custom extension}} || {{proprietary|custom extension}}
| {{tlx|table-experimental}} || {{table-experimental}} || {{tlx|table-experimental|lab}} || {{table-experimental|lab}}
|-
|-
| {{tl|nonfree}} || {{nonfree}} || {{tlp|nonfree|paid}} || {{nonfree|paid}}
| {{tlx|nightly}} || {{nightly}} || {{tlx|nightly|dev}} || {{nightly|dev}}
|-
|-
| {{tl|needs}} || {{needs}} || {{tlp|needs|req.}} || {{needs|req.}}
| {{tlx|release-candidate}} || {{release-candidate}} || {{tlx|release-candidate|RC}} || {{release-candidate|RC}}
|-
|-
| {{tl|nightly}} || {{nightly}} || {{tlp|nightly|dev}} || {{nightly|dev}}
| {{tlx|open source}} || {{open source}} || {{tlx|open source|software libre}} || {{open source|software libre}}
|-
|-
| {{tl|release-candidate}} || {{release-candidate}} || {{tlp|release-candidate|RC}} || {{release-candidate|RC}}
| {{tlx|free}} || {{free}} || {{tlx|free|empty}} || {{free|empty}}
|-
|-
| <code>table-draw</code>
| {{tlx|proprietary}} || {{proprietary}} || {{tlx|proprietary|custom extension}} || {{proprietary|custom extension}}
| {{tl|draw}} || {{draw}} || {{tlp|draw|1:1}} || {{draw|1:1}}
|-
|-
| <code>table-planned</code>
| {{tlx|nonfree}} || {{nonfree}} || {{tlx|nonfree|paid}} || {{nonfree|paid}}
| {{tl|planned}} || {{planned}} || {{tlp|planned|July 2028}} || {{planned|July 2028}}
|-
|-
| <code>table-scheduled</code>
| {{tlx|needs}} || {{needs}} || {{tlx|needs|req.}} || {{needs|req.}}
| {{tl|scheduled}} || {{scheduled}} || {{tlp|scheduled|3 March 2027}} || {{scheduled|3 March 2027}}
|-
|-
| <code>incorrect</code>  
| <code>table-depends</code>
| {{tl|incorrect}} || {{incorrect}} || {{tlp|incorrect|wrong}} || {{incorrect|wrong}}
| {{tlx|depends}} || {{depends}} || {{tlx|depends|vendor-defined}} || {{depends|vendor-defined}}
|-
|-
| <code>noresult</code>  
|rowspan=2| <code>table-dropped</code>
| {{tl|no result}} || {{no result}} || {{tlp|no result|NR}} || {{no result|NR}}
| {{tlx|dropped}} || {{dropped}} || {{tlx|dropped|discontinued}} || {{dropped|discontinued}}
|-
| {{tlx|terminated}} || {{terminated}} || {{tlx|terminated|fired}} || {{terminated|fired}}
|-
| <code>incorrect</code>
| {{tlx|incorrect}} || {{incorrect}} || {{tlx|incorrect|wrong}} || {{incorrect|wrong}}
|-
|-
| rowspan=8 | <code>table-debate</code>
| rowspan=8 | <code>table-debate</code>
| {{tl|D-P}} || {{D-P}} || {{tlp|D-P|present}} || {{D-P|present}}
| {{tlx|D-P}} || {{D-P}} || {{tlx|D-P|present}} || {{D-P|present}}
|-
| {{tlx|D-A}} || {{D-A}} || {{tlx|D-A|absent}} || {{D-A|absent}}
|-
| {{tlx|D-I}} || {{D-I}} || {{tlx|D-I|invited}} || {{D-I|invited}}
|-
| {{tlx|D-O}} || {{D-O}} || {{tlx|D-O|invited to other debate}} || {{D-O|invited to other debate}}
|-
|-
| {{tl|D-A}} || {{D-A}} || {{tlp|D-A|absent}} || {{D-A|absent}}
| {{tlx|D-N}} || {{D-N}} || {{tlx|D-N|not invited}} || {{D-N|not invited}}
|-
|-
| {{tl|D-I}} || {{D-I}} || {{tlp|D-I|invited}} || {{D-I|invited}}
| {{tlx|D-Nv}} || {{D-Nv}} || {{tlx|D-Nv|not voting}} || {{D-Nv|not voting}}
|-
|-
| {{tl|D-O}} || {{D-O}} || {{tlp|D-O|invited to other debate}} || {{D-O|invited to other debate}}
| {{tlx|D-W}} || {{D-W}} || {{tlx|D-W|withdrawn}} || {{D-W|withdrawn}}
|-
|-
| {{tl|D-N}} || {{D-N}} || {{tlp|D-N|not invited}} || {{D-N|not invited}}
| {{tlx|D-Out}} || {{D-Out}} || {{tlx|D-Out|out of race}} || {{D-Out|out of race}}
|-
|-
| {{tl|D-Nv}} || {{D-Nv}} || {{tlp|D-Nv|not voting}} || {{D-Nv|not voting}}
|rowspan=14| <code>table-cast</code><ref>This group of templates is related to {{WikiProject link|Television}}.</ref>
| {{tlx|CMain}} || {{CMain}} || {{tlx|CMain|text}} || {{CMain|text}}
|-
|-
| {{tl|D-W}} || {{D-W}} || {{tlp|D-W|withdrawn}} || {{D-W|withdrawn}}
| {{tlx|CAlso starring}} || {{CAlso starring}} || {{tlx|CAlso starring|costar}} || {{CAlso starring|costar}}
|-
|-
| {{tl|D-Out}} || {{D-Out}} || {{tlp|D-Out|out of race}} || {{D-Out|out of race}}
| {{tlx|CRecurring}} || {{CRecurring}} || {{tlx|CRecurring|regular guest}} || {{CRecurring|regular guest}}
|-
|-
|rowspan=14| <code>table-cast</code>
| {{tlx|CGuest}} || {{CGuest}} || {{tlx|CGuest|victim}} || {{CGuest|victim}}
| {{tl|CMain}} || {{CMain}} || {{tlp|CMain|text}} || {{CMain|text}}
|-
|-
| {{tl|CAlso starring}} || {{CAlso starring}} || {{tlp|CAlso starring|costar}} || {{CAlso starring|costar}}
| {{tlx|COther}} || {{COther}} || {{tlx|COther|ensemble}} || {{COther|ensemble}}
|-
|-
| {{tl|CRecurring}} || {{CRecurring}} || {{tlp|CRecurring|regular guest}} || {{CRecurring|regular guest}}
| {{tlx|CNone}} || {{CNone}} || {{tlx|CNone|cast}} || {{CNone|cast}}
|-
|-
| {{tl|CGuest}} || {{CGuest}} || {{tlp|CGuest|victim}} || {{CGuest|victim}}
| {{tlx|CEmpty}} || {{CEmpty}} || ||
|-
|-
| {{tl|COther}} || {{COther}} || {{tlp|COther|ensemble}} || {{COther|ensemble}}
| {{tlx|CRemoved}} || {{CRemoved}} || {{tlx|CRemoved|edited}} || {{CRemoved|edited}}
|-
|-
| {{tl|CNone}} || {{CNone}} || {{tlp|CNone|cast}} || {{CNone|cast}}
| {{tlx|CFinalist}} || {{CFinalist}} || {{tlx|CFinalist|contender}} || {{CFinalist|contender}}
|-
|-
| {{tl|CEmpty}} || {{CEmpty}} || ||
| {{tlx|CFinalist|place{{=}}3rd Place}} || {{CFinalist|place=3rd Place}} || {{tlx|CFinalist|place{{=}}third place}} || {{CFinalist|place=third place}}
|-
|-
| {{tl|CRemoved}} || {{CRemoved}} || {{tlp|CRemoved|edited}} || {{CRemoved|edited}}
| {{tlx|exempt}} || {{exempt}} || {{tlx|Black Exempt}} || {{Black Exempt}}
|-
|-
| {{tl|CFinalist}} || {{CFinalist}} || {{tlp|CFinalist|text{{=}}white|color{{=}}darkblue|contender}} || {{CFinalist|text=white|color=darkblue|contender}}
| {{tlx|nocontest}} || {{nocontest}} || {{tlx|nocontest|rescheduled}} || {{nocontest|rescheduled}}
|-
|-
| {{tlp|CFinalist|place{{=}}3rd Place}} || {{CFinalist|place=3rd Place}} || {{tlp|CFinalist|place{{=}}third place}} || {{CFinalist|place=third place}}
| {{tlx|Runner-up}} || {{Runner-up}} || {{tlx|Runner-up|2nd Place}} || {{Runner-up|2nd Place}}
|-
|-
| {{tl|exempt}} || {{exempt}} || {{tlp|Black Exempt}} || {{Black Exempt}}
| {{tlx|Quit}} || {{Quit}} || {{tlx|Quit|left}} || {{Quit|left}}
|-
|-
| {{tl|nocontest}} || {{nocontest}} || {{tlp|nocontest|rescheduled}} || {{nocontest|rescheduled}}
|rowspan=9| ''no class''
| {{tlx|not yet}} || {{not yet}} || {{tlx|not yet|NY}} || {{not yet|NY}}
|-
|-
| {{tl|Runner-up}} || {{Runner-up}} || {{tlp|Runner-up|2nd Place}} || {{Runner-up|2nd Place}}
| {{tlx|optional}} || {{optional}} || {{tlx|optional|non-mandatory}} || {{optional|non-mandatory}}
|-
|-
| {{tl|Quit}} || {{Quit}} || {{tlp|Quit|left}} || {{Quit|left}}
| {{tlx|shade|100}}% || {{shade|100}}% || {{tlx|shade|color{{=}}blue|100}}% || {{shade|color=blue|100}}%
|-
|-
|rowspan=6| ''no class''
| {{tlx|shade|75}}% || {{shade|75}}% || {{tlx|shade|color{{=}}blue|75|73–78}}% || {{shade|color=blue|75|73–78}}%
| {{tl|not yet}} || {{not yet}} || {{tlp|not yet|NY}} || {{not yet|NY}}
|-
|-
| {{tl|optional}} || {{optional}} || {{tlp|optional|non-mandatory}} || {{optional|non-mandatory}}
| {{tlx|shade|25}}% || {{shade|25}}% || {{tlx|shade|color{{=}}blue|25|<nowiki>{{val|25|2|u=%}}</nowiki>}} || {{shade|color=blue|25|{{val|25|2|u=%}}}}
|-
|-
| {{tlp|shade|100}}% || {{shade|100}}% || {{tlp|shade|color{{=}}blue|100}}% || {{shade|color=blue|100}}%
| {{tlx|shade|0}}% || {{shade|0}}% || {{tlx|shade|color{{=}}blue|0}}% || {{shade|color=blue|0}}%
|-
|-
| {{tlp|shade|75}}% || {{shade|75}}% || {{tlp|shade|color{{=}}blue|75|73–78}}% || {{shade|color=blue|75|73–78}}%
| {{tlx|ColorCell}} || {{ColorCell}} || {{tlx|ColorCell|Blank}} || {{ColorCell|Blank}}
|-
|-
| {{tlp|shade|25}}% || {{shade|25}}% || {{tlp|shade|color{{=}}blue|25|<nowiki>{{val|25|2|u=%}}</nowiki>}} || {{shade|color=blue|25|{{val|25|2|u=%}}}}
| {{tlx|ColorCell|type{{=}}lred}} || {{ColorCell|type=lred}} || {{tlx|ColorCell|type{{=}}lred|Red}} || {{ColorCell|type=lred|Red}}
|-
|-
| {{tlp|shade|0}}% || {{shade|0}}% || {{tlp|shade|color{{=}}blue|0}}% || {{shade|color=blue|0}}%
| {{tlx|ColorCell|type{{=}}lgreen}} || {{ColorCell|type=lgreen}} || {{tlx|ColorCell|type{{=}}lgreen|Green}} || {{ColorCell|type=lgreen|Green}}
|}</div>
|}</div>


== Code ==
== Code ==
Common code to most if not all the templates in this series:
Common code to most if not all the templates in this series:
:<code>{{Table cell templates|class=''automatic''|text=''text''|bg=#''abcdef''}}</code>
:<code>{{Table cell templates|class=''automatic''|text=''text''|bg=#''abcdef''}}</code><includeonly>
<includeonly>{{#switch:{{SUBPAGENAME}}|doc|sandbox=|#default=
Code specific to this template:
Code specific to this template:
:<code>{{ {{FULLPAGENAME}} }}</code>
:<code>{{ {{#switch:{{SUBPAGENAME}}|doc={{#titleparts:{{FULLPAGENAME}}|-1}}|#default={{FULLPAGENAME}}}} }}</code>{{#if:{{{doc|}}}|<!-- force newline after nowiki tags --><nowiki></nowiki>
{{{doc|}}}
{{{doc}}}|<!-- no newline if there is no additional documentation -->}}</includeonly>
}}</includeonly>


== Creating new templates ==
== Creating new templates ==
Line 308: Line 318:


:<syntaxhighlight lang=text inline>style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="automatic table-automatic"| {{{1|text}}}</syntaxhighlight>
:<syntaxhighlight lang=text inline>style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="automatic table-automatic"| {{{1|text}}}</syntaxhighlight>
== Choosing a color ==
When changing or creating a new template, follow the [[HELP:COLOR|use of colour guidelines]] and the [[MOS:COLOR|color accessibility guidelines]] when choosing the background color and, sometimes, the text color. Many of these templates can be used with links to other articles or references, so the links should be clearly identifiable against the background color. You can check contrast level using the [https://webaim.org/resources/contrastchecker/ WebAIM contrast checker] by setting the foreground color to the [[WP:LINKCOLOR|blue link]] color. Contrast should be at the minimum WCAG AA level and, whenever possible, at WCAG AAA level. [[Wikipedia:Manual of Style/Accessibility/Colors]] has a set of colors that comply with WCAG AAA and WCAG AA for unvisited links and normal text.


== Color subpage ==
== Color subpage ==
All templates should either have a <code>/bgcolor</code> subpage that contains nothing but a valid CSS color code, possibly wrapped in ''nowiki'' tags, e.g. <code><nowiki>#BFD</nowiki></code>, which can be included with <code><nowiki>background: {{/bgcolor}};</nowiki></code> in the <code>style</code> attribute, or they should reference another template's subpage, e.g. <code><nowiki>background: {{Template:Yes2/bgcolor}};</nowiki></code>. Alternatively, the <code>/bgcolor</code> subpage may redirect to another color code subpage: <code><nowiki>#REDIRECT [[yes2/bgcolor]]</nowiki></code>.
All templates should either have a <code>/bgcolor</code> subpage that contains nothing but a valid CSS color code, possibly wrapped in ''nowiki'' tags, e.g. <code><nowiki>#BFD</nowiki></code>, which can be included with <code><nowiki>background: {{/bgcolor}};</nowiki></code> in the <code>style</code> attribute, or they should reference another template's subpage, e.g. <code><nowiki>background: {{Template:Yes2/bgcolor}};</nowiki></code>. Alternatively, the <code>/bgcolor</code> subpage may redirect to another color code subpage: <code><nowiki>#REDIRECT [[yes2/bgcolor]]</nowiki></code>.


This way, pages that are using these templates may also use {{tl|legend}} and similar templates which can reference the actual color: <code><nowiki>{{legend|{{yes2/bgcolor}}|supported}}</nowiki></code>
This way, pages that are using these templates may also use {{tl|legend}} and similar templates which can reference the actual color: <code><nowiki>{{legend|{{yes2/bgcolor}}|supported}}</nowiki></code>
Line 317: Line 330:
== TemplateData ==
== TemplateData ==
{{TemplateData header|{{#if:{{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}}}
{{TemplateData header|{{#if:{{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}}}
<templatedata>
{{{templatedata|<templatedata>
{
{
"description": "One of several templates for styling individual table cells with standard contents and colors.",
"description": "One of several templates for styling individual table cells with standard contents and colors.",
Line 360: Line 373:
}
}
}
}
</templatedata>
</templatedata>}}}


== See also ==
== See also ==
Line 367: Line 380:
* {{tl|GPL-lic}} – specialized redirect for {{tlf|free}}
* {{tl|GPL-lic}} – specialized redirect for {{tlf|free}}
* {{tl|LGPL-lic}} – specialized redirect for {{tlf|free}}
* {{tl|LGPL-lic}} – specialized redirect for {{tlf|free}}
* {{tl|Active}} / {{tl|No result}} / {{tl|Eliminated}} for {{C|Comparisons|comparison tables}}


== Notes ==
== Notes ==