<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>http://docs.fox-labs.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACell_color%2Fdoc</id>
	<title>Template:Cell color/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://docs.fox-labs.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACell_color%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://docs.fox-labs.io/wiki/index.php?title=Template:Cell_color/doc&amp;action=history"/>
	<updated>2026-07-17T01:54:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://docs.fox-labs.io/wiki/index.php?title=Template:Cell_color/doc&amp;diff=172&amp;oldid=prev</id>
		<title>Inari: Created page with &quot;{{Documentation subpage}} {{Template shortcut|ccolor}}   This template creates a shaded table cell according to its value. It interpolates the colour between given &#039;&#039;min&#039;&#039; and &#039;&#039;max&#039;&#039; values and colors (if not specified, these are assumed to be white for the &#039;&#039;min&#039;&#039; and black for the &#039;&#039;max&#039;&#039;). The font colour is turned black or white depending on the luminosity of the cell background. The background color is generated by the {{tl|Value color}} template.  == Usage == &lt;cod...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.fox-labs.io/wiki/index.php?title=Template:Cell_color/doc&amp;diff=172&amp;oldid=prev"/>
		<updated>2026-01-17T06:18:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Template shortcut|ccolor}}   This template creates a shaded table cell according to its value. It interpolates the colour between given &amp;#039;&amp;#039;min&amp;#039;&amp;#039; and &amp;#039;&amp;#039;max&amp;#039;&amp;#039; values and colors (if not specified, these are assumed to be white for the &amp;#039;&amp;#039;min&amp;#039;&amp;#039; and black for the &amp;#039;&amp;#039;max&amp;#039;&amp;#039;). The font colour is turned black or white depending on the luminosity of the cell background. The background color is generated by the {{tl|Value color}} template.  == Usage == &amp;lt;cod...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Template shortcut|ccolor}} &lt;br /&gt;
&lt;br /&gt;
This template creates a shaded table cell according to its value. It interpolates the colour between given &amp;#039;&amp;#039;min&amp;#039;&amp;#039; and &amp;#039;&amp;#039;max&amp;#039;&amp;#039; values and colors (if not specified, these are assumed to be white for the &amp;#039;&amp;#039;min&amp;#039;&amp;#039; and black for the &amp;#039;&amp;#039;max&amp;#039;&amp;#039;). The font colour is turned black or white depending on the luminosity of the cell background. The background color is generated by the {{tl|Value color}} template.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;{{tlc|Cell color|&amp;#039;&amp;#039;value&amp;#039;&amp;#039;|&amp;#039;&amp;#039;min&amp;#039;&amp;#039;|&amp;#039;&amp;#039;max&amp;#039;&amp;#039;|&amp;#039;&amp;#039;min color&amp;#039;&amp;#039;|&amp;#039;&amp;#039;max color&amp;#039;&amp;#039;[|bold{{=}}yes]}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Parameters&lt;br /&gt;
* {{para|1}} - The value of the cell. Must be a number.&lt;br /&gt;
* {{para|2}} - The minimum value of the range.&lt;br /&gt;
* {{para|3}} - The maximum value of the range.&lt;br /&gt;
* {{para|4}} - The color for the minimum value specified by {{para|2}}.&lt;br /&gt;
* {{para|5}} - The color for the maximum value specified by {{para|3}}.&lt;br /&gt;
* {{para|bold}} - Set to a truthy value to make the value bold.&lt;br /&gt;
* {{para|align}} - The alignment of the text. Can be &amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;justified&amp;lt;/code&amp;gt;. Set to &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt; by default.&lt;br /&gt;
* {{para|style}} - Any additional [[CSS|CSS]] to apply to the cell.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;margin:0;&amp;quot;&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
| {{Cell color|50|25|100|FFFF00|80FFFF}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
| {{Cell color|50|25|100|FFFF00|80FFFF}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; style=&amp;quot;margin:0;&amp;quot;&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
| {{Cell color|0.7|0|1|bold=yes}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
| {{Cell color|0.7|0|1|bold=yes}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Table cell templates#Templates]]&lt;br /&gt;
* {{tl|Shade}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Color templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Inari</name></author>
	</entry>
</feed>