<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATable_cell_templates%2Fdoc</id>
	<title>Template:Table cell templates/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATable_cell_templates%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Table_cell_templates/doc&amp;action=history"/>
	<updated>2026-04-04T12:29:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:Table_cell_templates/doc&amp;diff=6527&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Table_cell_templates/doc&amp;diff=6527&amp;oldid=prev"/>
		<updated>2011-11-10T23:45:38Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Documentation subpage}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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]].&lt;br /&gt;
&lt;br /&gt;
For example, &amp;lt;code&amp;gt;{{Tl|yes}}&amp;lt;/code&amp;gt; makes a cell with a green background. The text in the cell is taken from the [[Help:Template#Parameters|first parameter]]; &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;yes|Sure}}&amp;lt;/code&amp;gt; would output &amp;quot;Sure&amp;quot; otherwise it defaults to &amp;quot;Yes&amp;quot;. 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: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;''table cell template''}} ''text''&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;''table cell template''}} | ''text''&amp;lt;/code&amp;gt;. This information, the colors and default texts are found in the table below.&lt;br /&gt;
&lt;br /&gt;
If you want to use other attributes for the table cells, e.g. &amp;lt;code&amp;gt;colspan&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;rowspan&amp;lt;/code&amp;gt;, they need to be put before the template call and there must be no vertical bar &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt; in between them:&lt;br /&gt;
&lt;br /&gt;
{| class=wikitable align=right&lt;br /&gt;
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}&lt;br /&gt;
|-&lt;br /&gt;
|colspan=2 {{Yes-No}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;pre&amp;gt;...&lt;br /&gt;
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}&lt;br /&gt;
|-&lt;br /&gt;
|colspan=2 {{Yes-No}}&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Templates in this series ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Table cell templates&lt;br /&gt;
! Class&amp;lt;ref name=&amp;quot;table-cell-templates-table-css&amp;quot;&amp;gt;The HTML class of table cell templates may be referenced in a [[m:help:User style|user stylesheet]] to change appearance.&amp;lt;/ref&amp;gt; !! Template !! Preview !! Preview, alternative&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2| &amp;lt;code&amp;gt;table-rh&amp;lt;/code&amp;gt; || {{Tl|rh}} | Row header || {{rh}} | Row header ||&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|rh2}}&amp;lt;ref name=&amp;quot;table-cell-templates-table-after+pipe&amp;quot;&amp;gt;Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.&amp;lt;/ref&amp;gt; | Row header || {{rh2}} | Row header ||&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-yes&amp;lt;/code&amp;gt; || {{Tl|yes}}, {{Tlp|yes|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{yes}} ||{{yes|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=3| &amp;lt;code&amp;gt;table-no&amp;lt;/code&amp;gt; || {{Tl|no}}, {{Tlp|no|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{no}} ||{{no|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|coming soon}} || {{coming soon}} ||&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|bad}}, {{Tlp|bad|F}} || {{bad}} || {{bad|F}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-siteactive&amp;lt;/code&amp;gt; || {{Tl|Site active}} || {{site active}} || &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-siteinactive&amp;lt;/code&amp;gt; || {{Tl|Site inactive}} || {{site inactive}} || &lt;br /&gt;
|-&lt;br /&gt;
|rowspan=7| &amp;lt;code&amp;gt;table-yes2&amp;lt;/code&amp;gt; || {{Tl|yes2}}&amp;lt;ref name=&amp;quot;table-cell-templates-table-after&amp;quot;/&amp;gt; Text || {{yes2}}Text ||&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|won}}, {{Tlp|won|5}} || {{won}} || {{won|5}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{won|place=1}} or =Gold&amp;lt;/nowiki&amp;gt; || {{won|place=1}} ||&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{won|place=2}} or =Silver&amp;lt;/nowiki&amp;gt; || {{won|place=2}} ||&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{won|place=3}} or =Bronze&amp;lt;/nowiki&amp;gt; || {{won|place=3}} ||&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{won|text=white|color=blue}} or =#1122CC&amp;lt;/nowiki&amp;gt; || {{won|text=white|color=blue}} ||&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|good}}, {{Tlp|good|A}} || {{good}} || {{good|A}}&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=3| &amp;lt;code&amp;gt;table-no2&amp;lt;/code&amp;gt; || {{Tl|no2}}&amp;lt;ref name=&amp;quot;table-cell-templates-table-after&amp;quot;&amp;gt;Does not take a parameter; the content should be placed after the template call.&amp;lt;/ref&amp;gt; Text || {{no2}} Text || &lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|nom}}, {{Tlp|nom|5}} || {{nom}} || {{nom|5}}&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|sho}} || {{sho}} || &lt;br /&gt;
|-&lt;br /&gt;
|rowspan=4| &amp;lt;code&amp;gt;table-partial&amp;lt;/code&amp;gt; || {{Tl|partial}} || {{partial}} || &lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|yes-No}} || {{Yes-No}} || &lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|okay}}, {{Tlp|okay|C}} || {{okay}} || {{okay|C}}&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|some}} || {{some}} || &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-any&amp;lt;/code&amp;gt; || {{Tl|any}} || {{any}} || &lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2| &amp;lt;code&amp;gt;table-na&amp;lt;/code&amp;gt; || {{Tl|n/a}} || {{n/a}} || &lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|BLACK}} || {{BLACK}} ||&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2| &amp;lt;code&amp;gt;table-unknown&amp;lt;/code&amp;gt; || {{Tl|dunno}} || {{dunno}} ||&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|Unknown}} || {{Unknown}} ||&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-depends&amp;lt;/code&amp;gt; || {{Tl|Depends}}, {{Tlp|Depends|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{Depends}}|| {{Depends|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-included&amp;lt;/code&amp;gt; || {{Tl|Included}} || {{Included}} || &lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2| &amp;lt;code&amp;gt;table-dropped&amp;lt;/code&amp;gt; || {{Tl|dropped}} || {{dropped}} ||&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|terminated}} || {{terminated}} ||&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2| &amp;lt;code&amp;gt;table-beta&amp;lt;/code&amp;gt; || {{Tl|beta}} || {{beta}} ||&lt;br /&gt;
|-&lt;br /&gt;
| {{Tl|table-experimental}}, {{Tlp|table-experimental|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{table-experimental}}||{{table-experimental|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-free&amp;lt;/code&amp;gt; || {{Tl|free}}, {{Tlp|free|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{free}} ||{{free|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-nonfree&amp;lt;/code&amp;gt; || {{Tl|nonfree}}, {{Tlp|nonfree|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{nonfree}}|| {{nonfree|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-proprietary&amp;lt;/code&amp;gt; || {{Tl|proprietary}}, {{Tlp|proprietary|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} ||{{proprietary}} || {{proprietary|Alternate [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-needs&amp;lt;/code&amp;gt; || {{Tl|needs}}, {{Tlp|needs|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{needs}} ||{{needs|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| ''no class'' || {{Tl|incorrect}}, {{Tlp|incorrect|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}}  || {{incorrect}} ||{{incorrect|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| ''no class'' || {{Tl|no result}}, {{Tlp|no result|N.R.}} || {{No result}} || {{No result|N.R.}}&lt;br /&gt;
|-&lt;br /&gt;
| ''no class'' || {{Tl|pending}} || {{Pending}} || &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-nightly&amp;lt;/code&amp;gt; || {{Tl|nightly}}, {{Tlp|nightly|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{nightly}}|| {{nightly|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;table-release-candidate&amp;lt;/code&amp;gt; || {{Tl|release-candidate}}, {{Tlp|release-candidate|&amp;lt;nowiki&amp;gt;Alternative [[Plain text|text]]&amp;lt;/nowiki&amp;gt;}} || {{release-candidate}}|| {{release-candidate|Alternative [[Plain text|text]]}}&lt;br /&gt;
|-&lt;br /&gt;
| ''no class'' || {{Tl|?}}&amp;lt;ref name=&amp;quot;table-cell-templates-table-noparam&amp;quot;&amp;gt;Does not take a parameter; not really a table cell template at all, but here for completeness&amp;lt;/ref&amp;gt; || {{?}} || &lt;br /&gt;
|-&lt;br /&gt;
| ''no class'' || {{Tl|unofficial}} || {{Unofficial}} || &lt;br /&gt;
|-&lt;br /&gt;
| ''no class'' || {{Tl|usually}} || {{Usually}} ||&lt;br /&gt;
|-&lt;br /&gt;
| ''no class'' || {{Tl|rarely}} || {{Rarely}} || &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Code ===&lt;br /&gt;
&lt;br /&gt;
Common code to most if not all the templates in this series:&lt;br /&gt;
:&amp;lt;code&amp;gt;{{Table cell templates|class=''automatic''|text=''text''|bg=#''abcdef''}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Code specific to this template:&lt;br /&gt;
:&amp;lt;code&amp;gt;{{ {{BASEPAGENAME}} }}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make a new table cell template you can use:&lt;br /&gt;
&amp;lt;source lang=text&amp;gt;{{subst:Table cell templates| text = default text | bg = background color | class = a class name without prefix | align = standard horizontal alignment}}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should leave out the &amp;lt;code&amp;gt;align&amp;lt;/code&amp;gt; parameter and often the &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; parameter is unnecessary, too.&lt;br /&gt;
&lt;br /&gt;
Add the new template to the table in the [[Template:Table cell templates/doc|common documentation]] afterwards. Please consider reusing one of the other templates and please choose the color sensibly.&lt;br /&gt;
&lt;br /&gt;
If you find a table cell template that does not take a parameter and you want to be able to change the text in the cell, ''do not'' duplicate the template! Instead, edit the template and change the text to a default parameter substitution.  For example, if a template's text is &amp;lt;code&amp;gt;Dropped&amp;lt;/code&amp;gt;, change that to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{1|Dropped}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
&lt;br /&gt;
* {{Tl|multiplayer}}&lt;br /&gt;
* {{Tl|GPL-lic}}&lt;br /&gt;
* {{Tl|chg}}: calculate and display changes between two values&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ADD CATEGORIES BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[Category:Table cell templates]]&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>