Template:Table cell templates/doc: Difference between revisions

m 1 revision imported
Add option for custom templatedata
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]].
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 20:
== 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
! Syntax !! Preview
|-
|rowspan=2| <code>table-rh</code>
| {{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
| {{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
|-
|-
| {{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
| {{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=center}} | Row header || {{rh2|align=center}} | Row header
|-
|-
|rowspan=4| <code>table-yes</code>  
|rowspan=4| <code>table-yes</code>
| {{tl|yes}} || {{yes}} || {{tlp|yes|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{yes|customized [[plain text|text]]}}
| {{tl|yes}} || {{yes}} || {{tlp|yes|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{yes|customized [[plain text|text]]}}
|-
|-
Line 38: Line 43:
| {{tl|yes N}} || {{yes N}} || {{tlp|yes N|<nowiki>customized [[plain text|text]]</nowiki>}} || {{yes N|customized [[plain text|text]]}}
| {{tl|yes N}} || {{yes N}} || {{tlp|yes N|<nowiki>customized [[plain text|text]]</nowiki>}} || {{yes N|customized [[plain text|text]]}}
|-
|-
| <code>table-maybe</code>  
| <code>table-maybe</code>
| {{tl|maybe}} || {{maybe}} || {{tlp|maybe|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{maybe|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>  
|rowspan=8| <code>table-no</code>
| {{tl|no}} || {{no}} || {{tlp|no|<nowiki>customized [[plain text|text]]</nowiki>}} || {{no|customized [[plain text|text]]}}
| {{tl|no}} || {{no}} || {{tlp|no|<nowiki>customized [[plain text|text]]</nowiki>}} || {{no|customized [[plain text|text]]}}
|-
|-
Line 50: Line 55:
| {{tl|eliminated}} || {{eliminated}} || {{tlp|eliminated|dropped out}} || {{eliminated|dropped out}}
| {{tl|eliminated}} || {{eliminated}} || {{tlp|eliminated|dropped out}} || {{eliminated|dropped out}}
|-
|-
| {{tlp|active fire|12%}} || {{active fire|12%}} || ||
| {{tl|lost}} || {{lost}} || {{tlp|lost|missing}} || {{lost|missing}}
|-
|-
| {{tl|lost}} || {{lost}} || {{tlp|lost|missing}} || {{lost|missing}}
| {{tlp|active fire|12%}}<ref>This template is related to {{WikiProject link|Wildfire}}.</ref> || {{active fire|12%}} || ||
|-
|-
| {{tl|safe}} || {{safe}} || {{tlp|safe|protected}} || {{safe|protected}}
| {{tl|safe}} || {{safe}} || {{tlp|safe|protected}} || {{safe|protected}}
Line 58: Line 63:
| {{tl|no Y}} || {{no Y}} || {{tlp|no Y|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{no Y|customized [[plain text|text]]}}
| {{tl|no Y}} || {{no Y}} || {{tlp|no Y|<nowiki>customized [[plain text|text]]</nowiki>}} ||{{no Y|customized [[plain text|text]]}}
|-
|-
| <code>table-active</code>  
| <code>table-active</code>
| {{tl|active}} || {{active}} || {{tlp|active|live}} || {{active|live}}
| {{tl|active}} || {{active}} || {{tlp|active|live}} || {{active|live}}
|-
|-
|rowspan=2| <code>table-siteactive</code>  
|rowspan=2| <code>table-siteactive</code>
| {{tl|site active}} || {{site active}} || {{tlp|site active|up}} || {{site active|up}}
| {{tl|site active}} || {{site active}} || {{tlp|site active|up}} || {{site active|up}}
|-
|-
| {{tl|coming soon}} || {{coming soon}} || {{tlp|coming soon|second half of the year}} || {{coming soon|second half of the year}}
| {{tl|coming soon}} || {{coming soon}} || {{tlp|coming soon|second half of the year}} || {{coming soon|second half of the year}}
|-
|-
| <code>table-siteinactive</code>  
| <code>table-siteinactive</code>
| {{tl|site inactive}} || {{site inactive}} || {{tlp|site inactive|down}} || {{site inactive|down}}
| {{tl|site inactive}} || {{site inactive}} || {{tlp|site inactive|down}} || {{site inactive|down}}
|-
|-
|rowspan=11| <code>table-yes2</code>  
| rowspan=2 |<code>table-success</code>
| {{tl|good}} || {{good}} || {{tlp|good|A}} || {{good|A}}
| {{tl|success}} || {{success}} || {{tlp|success|mission complete}} || {{success|mission complete}}
|-
| {{tl|operational}} || {{operational}} || {{tlp|operational|returning data}} || {{operational|returning data}}
|-
| <code>table-failure</code>
| {{tl|failure}} || {{failure}} || {{tlp|failure|wrong orbit}} || {{failure|wrong orbit}}
|-
|-
|rowspan=12| <code>table-yes2</code>
| {{tl|yes2}} || {{yes2}} || {{tlp|yes2|text}} || {{yes2|text}}
| {{tl|yes2}} || {{yes2}} || {{tlp|yes2|text}} || {{yes2|text}}
|-
| {{tl|good}} || {{good}} || {{tlp|good|A}} || {{good|A}}
|-
|-
| {{tl|ya}} || {{ya}} || {{tlp|ya|text{{=}}ya}} || {{ya|text=ya}}
| {{tl|ya}} || {{ya}} || {{tlp|ya|text{{=}}ya}} || {{ya|text=ya}}
|-
|-
| {{tlp|ya|Ya}} || {{ya|Ya}} || {{tlp|ya|text|link{{=}}WP:ALT}} || {{ya|text|link=WP:ALT}}
| {{tlp|ya|Ya}} || {{ya|Ya}} || {{tlp|ya|text|link{{=}}WP:ALT}} || {{ya|text|link=WP:ALT}}
|-
| {{tl|yan}} || {{yan}} || {{tlp|yan|text{{=}}ya}} || {{yan|text=ya}}
|-
|-
| {{tl|won}} || {{won}} || {{tlp|won|text{{=}}white|color{{=}}darkblue|winner}} || {{won|text=white|color=darkblue|winner}}
| {{tl|won}} || {{won}} || {{tlp|won|text{{=}}white|color{{=}}darkblue|winner}} || {{won|text=white|color=darkblue|winner}}
Line 92: Line 107:
| {{tlp|WinDL|res{{=}}L}} || {{WinDL|res=L}} || {{tlp|WinDL|res{{=}}loss}} || {{WinDL|res=loss}}
| {{tlp|WinDL|res{{=}}L}} || {{WinDL|res=L}} || {{tlp|WinDL|res{{=}}loss}} || {{WinDL|res=loss}}
|-
|-
|rowspan=7| <code>table-no2</code>  
|rowspan=9| <code>table-no2</code>
| {{tl|no2}} || {{no2}} || {{tlp|no2|text}} || {{no2|text}}
| {{tl|no2}} || {{no2}} || {{tlp|no2|text}} || {{no2|text}}
|-
|-
Line 98: Line 113:
|-
|-
| {{tlp|na|Na}} || {{na|Na}} || {{tlp|na|text|link{{=}}WP:ALT}} || {{na|text|link=WP:ALT}}
| {{tlp|na|Na}} || {{na|Na}} || {{tlp|na|text|link{{=}}WP:ALT}} || {{na|text|link=WP:ALT}}
|-
| {{tl|nan}} || {{nan}} || {{tlp|nan|text{{=}}na}} || {{nan|text=na}}
|-
|-
| {{tl|nom}} || {{nom}} || {{tlp|nom|5}} || {{nom|5}}
| {{tl|nom}} || {{nom}} || {{tlp|nom|5}} || {{nom|5}}
|-
| {{tl|notnom}} || {{notnom}} || | {{tlp|notnom|not selected}} || {{notnom|not selected}}
|-
|-
| {{tl|sho}} || {{sho}} || {{tlp|sho|proposed}} || {{sho|proposed}}
| {{tl|sho}} || {{sho}} || {{tlp|sho|proposed}} || {{sho|proposed}}
Line 107: Line 126:
| {{tl|TBA}} || {{TBA}} || {{tlp|TBA|to be announced}} || {{TBA|to be announced}}
| {{tl|TBA}} || {{TBA}} || {{tlp|TBA|to be announced}} || {{TBA|to be announced}}
|-
|-
| rowspan=3 |<code>table-success</code>
| rowspan=16| <code>table-partial</code>
| {{tl|success}} || {{success}} || {{tlp|success|mission complete}} || {{success|mission complete}}
|-
| {{tl|operational}} || {{operational}} || {{tlp|operational|returning data}} || {{operational|returning data}}
|-
| {{tl|Intentionally destroyed}} || {{Intentionally destroyed}} || {{tlp|Intentionally destroyed|deliberately exploded}} || {{Intentionally destroyed|deliberately exploded}}
|-
| <code>table-failure</code>
| {{tl|failure}} || {{failure}} || {{tlp|failure|wrong orbit}} || {{failure|wrong orbit}}
|-
| rowspan=18| <code>table-partial</code>  
| {{tl|partial}} || {{partial}} || {{tlp|partial|almost done}} ||{{partial|almost done}}
| {{tl|partial}} || {{partial}} || {{tlp|partial|almost done}} ||{{partial|almost done}}
|-
|-
Line 126: Line 135:
| {{tlp|MaybeCheck|possibly}} || {{MaybeCheck|possibly}} || {{tlp|MaybeCheck|text|link{{=}}WP:ALT}} || {{MaybeCheck|text|link=WP:ALT}}
| {{tlp|MaybeCheck|possibly}} || {{MaybeCheck|possibly}} || {{tlp|MaybeCheck|text|link{{=}}WP:ALT}} || {{MaybeCheck|text|link=WP:ALT}}
|-
|-
| {{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}}
| {{tl|partial success}} || {{partial success}} || {{tlp|partial success|<br />reached orbit and returned pictures}} || {{partial success|reached orbit and returned pictures}}
|-
|-
| {{tl|scrapped}} || {{scrapped}} || {{tlp|scrapped|unfinished}} || {{scrapped|unfinished}}
| {{tl|partial failure}} || {{partial failure}} || {{tlp|partial failure|<nowiki>[[</nowiki>Cubesat]] not deployed}} || {{partial failure|[[Cubesat]] not deployed}}
|-
| {{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}}
|-
|-
| {{tl|okay}} || {{okay}} || {{tlp|okay|C}} || {{okay|C}}
| {{tl|okay}} || {{okay}} || {{tlp|okay|C}} || {{okay|C}}
Line 140: Line 145:
| {{tl|some}} || {{some}} || {{tlp|some|many}} || {{some|many}}
| {{tl|some}} || {{some}} || {{tlp|some|many}} || {{some|many}}
|-
|-
| {{tl|nonpartisan}} || {{nonpartisan}} || {{tlp|nonpartisan|impartial}} || {{nonpartisan|impartial}}
| {{tl|pending}} || {{pending}} || {{tlp|pending|awaiting}} || {{pending|awaiting}}
|-
| {{tl|sometimes}} || {{sometimes}} || {{tlp|sometimes|occasionally}} || {{sometimes|occasionally}}
|-
| {{tl|rarely}} || {{rarely}} || {{tlp|rarely|seldom}}|| {{rarely|seldom}}
|-
|-
| {{tl|pending}} || {{pending}} || {{tlp|pending|awaiting}} || {{pending|awaiting}}
| {{tl|usually}} || {{usually}} || {{tlp|usually|commonly}} || {{usually|commonly}}
|-
|-
| {{tl|unofficial}} || {{unofficial}} || {{tlp|unofficial|<nowiki>''de facto''</nowiki>}} || {{unofficial|''de facto''}}
| {{tl|unofficial}} || {{unofficial}} || {{tlp|unofficial|<nowiki>''de facto''</nowiki>}} || {{unofficial|''de facto''}}
Line 148: Line 157:
| {{tl|unofficial2}} || {{unofficial2}} || {{tlp|unofficial2|<nowiki>''de facto''</nowiki>}} || {{unofficial2|''de facto''}}
| {{tl|unofficial2}} || {{unofficial2}} || {{tlp|unofficial2|<nowiki>''de facto''</nowiki>}} || {{unofficial2|''de facto''}}
|-
|-
| {{tl|usually}} || {{usually}} || {{tlp|usually|commonly}} || {{usually|commonly}}
| {{tl|nonpartisan}} || {{nonpartisan}} || {{tlp|nonpartisan|impartial}} || {{nonpartisan|impartial}}
|-
| <code>table-any</code>
| {{tl|any}} || {{any}} || {{tlp|any|anyone}}|| {{any|anyone}}
|-
|-
| {{tl|rarely}} || {{rarely}} || {{tlp|rarely|seldom}}|| {{rarely|seldom}}
| <code>table-automatic</code>
| {{tl|perhaps}} || {{perhaps}} || {{tlp|perhaps|maybe}} || {{perhaps|maybe}}
|-
|-
| {{tl|sometimes}} || {{sometimes}} || {{tlp|sometimes|occasionally}} || {{sometimes|occasionally}}
| <code>table-draw</code>
| {{tl|draw}} || {{draw}} || {{tlp|draw|1:1}} || {{draw|1:1}}
|-
|-
| <code>table-noAttempt</code>  
| <code>table-noAttempt</code>
| {{tl|No attempt}} || {{No attempt}} || {{tlp|No attempt|No landing attempted}} || {{No attempt|No landing attempted}}
| {{tl|No attempt}} || {{No attempt}} || {{tlp|No attempt|No landing attempted}} || {{No attempt|No landing attempted}}
|-
|-
| <code>table-any</code>
|rowspan=7| <code>table-na</code>
| {{tl|any}} || {{any}} || {{tlp|any|anyone}}|| {{any|anyone}}
|-
|rowspan=7| <code>table-na</code>  
| {{tl|n/a}} || {{n/a}} || {{tlp|n/a|unavailable}}|| {{n/a|unavailable}}
| {{tl|n/a}} || {{n/a}} || {{tlp|n/a|unavailable}}|| {{n/a|unavailable}}
|-
|-
| {{tl|varies}} || {{varies}} || {{tlp|varies|differs}}|| {{varies|differs}}
| {{tl|varies}} || {{varies}} || {{tlp|varies|differs}}|| {{varies|differs}}
|-
|-
| {{tl|sdash}} || {{sdash}} || {{tlp|sdash|<nowiki>[[File:Dash.svg|13px|link=|dash icon]]</nowiki>}}|| {{sdash|[[File:Dash.svg|13px|link=|dash]]}}
| {{tl|non-album single}}<ref>This template is related to {{WikiProject link|Songs}}.</ref> || {{non-album single}} || {{tlp|non-album single|EP}} || {{non-album single|EP}}
|-
| {{tl|unreleased}} || {{unreleased}} || {{tlp|unreleased|shelved}} || {{unreleased|shelved}}
|-
|-
| {{tl|BLACK}} || {{BLACK}} || {{tlp|BLACK|banned}} || {{BLACK|banned}}
| {{tl|BLACK}} || {{BLACK}} || {{tlp|BLACK|banned}} || {{BLACK|banned}}
|-
|-
| {{tl|non-album single}} || {{non-album single}} || {{tlp|non-album single|EP}} || {{non-album single|EP}}
| {{tl|sdash}} || {{sdash}} || {{tlp|sdash|<nowiki>[[</nowiki>File:Dash.svg|13px|link=|dash icon]]}}|| {{sdash|[[File:Dash.svg|13px|link=|dash]]}}
|-
| {{tl|unreleased}} || {{unreleased}} || {{tlp|unreleased|shelved}} || {{unreleased|shelved}}
|-
|-
| {{tl|vacant}} || {{vacant}} || {{tlp|vacant|missing}} || {{vacant|missing}}
| {{tl|vacant}} || {{vacant}} || {{tlp|vacant|missing}} || {{vacant|missing}}
|-
|-
|rowspan=2| <code>table-unknown</code>  
|rowspan=2| <code>table-unknown</code>
| {{tl|unknown}} || {{Unknown}} || {{tlp|unknown|?}} || {{unknown|?}}
| {{tl|unknown}} || {{Unknown}} || {{tlp|unknown|?}} || {{unknown|?}}
|-
|-
| {{tl|dunno}} || {{Dunno}} || {{tlp|dunno|not sure}} || {{dunno|not sure}}
| {{tl|dunno}} || {{Dunno}} || {{tlp|dunno|not sure}} || {{dunno|not sure}}
|-
|-
| <code>table-automatic</code>  
| <code>table-included</code>
| {{tl|perhaps}} || {{perhaps}} || {{tlp|perhaps|maybe}} || {{perhaps|maybe}}
| {{tl|included}} || {{included}} || {{tlp|included|incorporated}} || {{included|incorporated}}
|-
|-
| <code>table-depends</code>  
| <code>noresult</code>
| {{tl|depends}} || {{depends}} || {{tlp|depends|vendor-defined}} || {{depends|vendor-defined}}
| {{tl|no result}} || {{no result}} || {{tlp|no result|NR}} || {{no result|NR}}
|-
|-
| <code>table-included</code>  
| <code>table-planned</code>
| {{tl|included}} || {{included}} || {{tlp|included|incorporated}} || {{included|incorporated}}
| {{tl|planned}} || {{planned}} || {{tlp|planned|July 2028}} || {{planned|July 2028}}
|-
|-
|rowspan=2| <code>table-dropped</code>  
| <code>table-scheduled</code>
| {{tl|dropped}} || {{dropped}} || {{tlp|dropped|discontinued}} || {{dropped|discontinued}}
| {{tl|scheduled}} || {{scheduled}} || {{tlp|scheduled|3 March 2027}} || {{scheduled|3 March 2027}}
|-
|-
| {{tl|terminated}} || {{terminated}} || {{tlp|terminated|fired}} || {{terminated|fired}}
|rowspan=9| <code>table-software</code><ref>This group of templates is related to {{WikiProject link|Software}}.</ref>
|-
|rowspan=9| <code>table-software</code>  
| {{tl|beta}} || {{beta}} || {{tlp|beta|preview}} || {{beta|preview}}
| {{tl|beta}} || {{beta}} || {{tlp|beta|preview}} || {{beta|preview}}
|-
|-
| {{tl|table-experimental}} || {{table-experimental}} || {{tlp|table-experimental|lab}} || {{table-experimental|lab}}
| {{tl|table-experimental}} || {{table-experimental}} || {{tlp|table-experimental|lab}} || {{table-experimental|lab}}
|-
|-
| {{tl|open source}} || {{open source}} || {{tlp|open source|software libre}} || {{open source|software libre}}  
| {{tl|nightly}} || {{nightly}} || {{tlp|nightly|dev}} || {{nightly|dev}}
|-
| {{tl|release-candidate}} || {{release-candidate}} || {{tlp|release-candidate|RC}} || {{release-candidate|RC}}
|-
| {{tl|open source}} || {{open source}} || {{tlp|open source|software libre}} || {{open source|software libre}}
|-
|-
| {{tl|free}} || {{free}} || {{tlp|free|empty}} || {{free|empty}}
| {{tl|free}} || {{free}} || {{tlp|free|empty}} || {{free|empty}}
Line 209: Line 222:
| {{tl|needs}} || {{needs}} || {{tlp|needs|req.}} || {{needs|req.}}
| {{tl|needs}} || {{needs}} || {{tlp|needs|req.}} || {{needs|req.}}
|-
|-
| {{tl|nightly}} || {{nightly}} || {{tlp|nightly|dev}} || {{nightly|dev}}
| <code>table-depends</code>
| {{tl|depends}} || {{depends}} || {{tlp|depends|vendor-defined}} || {{depends|vendor-defined}}
|-
|-
| {{tl|release-candidate}} || {{release-candidate}} || {{tlp|release-candidate|RC}} || {{release-candidate|RC}}
|rowspan=2| <code>table-dropped</code>
| {{tl|dropped}} || {{dropped}} || {{tlp|dropped|discontinued}} || {{dropped|discontinued}}
|-
|-
| <code>table-draw</code>
| {{tl|terminated}} || {{terminated}} || {{tlp|terminated|fired}} || {{terminated|fired}}
| {{tl|draw}} || {{draw}} || {{tlp|draw|1:1}} || {{draw|1:1}}
|-
|-
| <code>table-planned</code>
| <code>incorrect</code>
| {{tl|planned}} || {{planned}} || {{tlp|planned|July 2028}} || {{planned|July 2028}}
|-
| <code>table-scheduled</code>
| {{tl|scheduled}} || {{scheduled}} || {{tlp|scheduled|3 March 2027}} || {{scheduled|3 March 2027}}
|-
| <code>incorrect</code>  
| {{tl|incorrect}} || {{incorrect}} || {{tlp|incorrect|wrong}} || {{incorrect|wrong}}
| {{tl|incorrect}} || {{incorrect}} || {{tlp|incorrect|wrong}} || {{incorrect|wrong}}
|-
| <code>noresult</code>
| {{tl|no result}} || {{no result}} || {{tlp|no result|NR}} || {{no result|NR}}
|-
|-
| rowspan=8 | <code>table-debate</code>
| rowspan=8 | <code>table-debate</code>
Line 245: Line 250:
| {{tl|D-Out}} || {{D-Out}} || {{tlp|D-Out|out of race}} || {{D-Out|out of race}}
| {{tl|D-Out}} || {{D-Out}} || {{tlp|D-Out|out of race}} || {{D-Out|out of race}}
|-
|-
|rowspan=14| <code>table-cast</code>  
|rowspan=14| <code>table-cast</code><ref>This group of templates is related to {{WikiProject link|Television}}.</ref>
| {{tl|CMain}} || {{CMain}} || {{tlp|CMain|text}} || {{CMain|text}}
| {{tl|CMain}} || {{CMain}} || {{tlp|CMain|text}} || {{CMain|text}}
|-
|-
Line 262: Line 267:
| {{tl|CRemoved}} || {{CRemoved}} || {{tlp|CRemoved|edited}} || {{CRemoved|edited}}
| {{tl|CRemoved}} || {{CRemoved}} || {{tlp|CRemoved|edited}} || {{CRemoved|edited}}
|-
|-
| {{tl|CFinalist}} || {{CFinalist}} || {{tlp|CFinalist|text{{=}}white|color{{=}}darkblue|contender}} || {{CFinalist|text=white|color=darkblue|contender}}
| {{tl|CFinalist}} || {{CFinalist}} || {{tlp|CFinalist|contender}} || {{CFinalist|contender}}
|-
|-
| {{tlp|CFinalist|place{{=}}3rd Place}} || {{CFinalist|place=3rd Place}} || {{tlp|CFinalist|place{{=}}third place}} || {{CFinalist|place=third place}}
| {{tlp|CFinalist|place{{=}}3rd Place}} || {{CFinalist|place=3rd Place}} || {{tlp|CFinalist|place{{=}}third place}} || {{CFinalist|place=third place}}
Line 274: Line 279:
| {{tl|Quit}} || {{Quit}} || {{tlp|Quit|left}} || {{Quit|left}}
| {{tl|Quit}} || {{Quit}} || {{tlp|Quit|left}} || {{Quit|left}}
|-
|-
|rowspan=6| ''no class''
|rowspan=9| ''no class''
| {{tl|not yet}} || {{not yet}} || {{tlp|not yet|NY}} || {{not yet|NY}}
| {{tl|not yet}} || {{not yet}} || {{tlp|not yet|NY}} || {{not yet|NY}}
|-
|-
Line 286: Line 291:
|-
|-
| {{tlp|shade|0}}% || {{shade|0}}% || {{tlp|shade|color{{=}}blue|0}}% || {{shade|color=blue|0}}%
| {{tlp|shade|0}}% || {{shade|0}}% || {{tlp|shade|color{{=}}blue|0}}% || {{shade|color=blue|0}}%
|-
| {{tlp|ColorCell}} || {{ColorCell}} || {{tlp|ColorCell|Blank}} || {{ColorCell|Blank}}
|-
| {{tlp|ColorCell|type{{=}}lred}} || {{ColorCell|type=lred}} || {{tlp|ColorCell|type{{=}}lred|Red}} || {{ColorCell|type=lred|Red}}
|-
| {{tlp|ColorCell|type{{=}}lgreen}} || {{ColorCell|type=lgreen}} || {{tlp|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 317:


:<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 329:
== 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 372:
}
}
}
}
</templatedata>
</templatedata>}}}


== See also ==
== See also ==
Line 367: Line 379:
* {{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 ==