<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.digitalcellulose.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AColor2dec%2Fdoc</id>
	<title>Module:Color2dec/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.digitalcellulose.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AColor2dec%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.digitalcellulose.com/wiki/index.php?title=Module:Color2dec/doc&amp;action=history"/>
	<updated>2026-07-02T17:49:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://www.digitalcellulose.com/wiki/index.php?title=Module:Color2dec/doc&amp;diff=152487&amp;oldid=prev</id>
		<title>Adminsuzy: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.digitalcellulose.com/wiki/index.php?title=Module:Color2dec/doc&amp;diff=152487&amp;oldid=prev"/>
		<updated>2020-09-13T20:46:53Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:46, 13 September 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Adminsuzy</name></author>
		
	</entry>
	<entry>
		<id>https://www.digitalcellulose.com/wiki/index.php?title=Module:Color2dec/doc&amp;diff=152486&amp;oldid=prev</id>
		<title>Imported&gt;Sarang: +link</title>
		<link rel="alternate" type="text/html" href="https://www.digitalcellulose.com/wiki/index.php?title=Module:Color2dec/doc&amp;diff=152486&amp;oldid=prev"/>
		<updated>2020-09-07T11:43:15Z</updated>

		<summary type="html">&lt;p&gt;+link&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;[[Category:Modules for general use]]&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
Written a bit complicated, due to my poor LUA knowledge. &lt;br /&gt;
__NOTOC__&lt;br /&gt;
This module contains global functions, some  functions which can be used either global or local, and local functions. &lt;br /&gt;
&lt;br /&gt;
== Global function &amp;quot;tbcgen&amp;quot; ==&lt;br /&gt;
accepts &amp;amp; needs two parameters, a color code and a descriptive text.&lt;br /&gt;
* the color code may be a valid hexadecimal color triplet, as e.g.&amp;quot;#ABCDEF&amp;quot; or &amp;quot;#80c&amp;quot;;&amp;lt;br&amp;gt;otherwise it is treated with the local/global function &amp;quot;'''tincture'''&amp;quot;;&lt;br /&gt;
:: it may also be a valid tincture name, e.g. &amp;quot;céleste&amp;quot; (see {{T0|ColorString|examples}}) &lt;br /&gt;
:: from the ''many other color names'' just the set of CSS colors is valid for conversion; &lt;br /&gt;
::: when a string ''not'' starting with &amp;quot;#&amp;quot; cannot find its hexadecimal representation, an error is raised.&lt;br /&gt;
* when the descriptive text starts with e.g. &amp;quot;#&amp;quot; that becomes replaced by its ''decimal numeric character reference'' &amp;lt;br&amp;gt; by the local/global function &amp;quot;'''decode'''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Function &amp;quot;convert&amp;quot; ==&lt;br /&gt;
Converts a hexadecimal string (#rrggbb or #rgb) to a table of three decimal values  (see also the dec·hex function of {{T0|D2x|+|case=l}}).&lt;br /&gt;
&lt;br /&gt;
== Function &amp;quot;tincture&amp;quot; ==&lt;br /&gt;
Used also globally by template {{T0|Igen/cbox}}&amp;lt;br&amp;gt;&lt;br /&gt;
Converts the {{#tag:span|{{T0|Tincture/draw0|'''standard''' tinctures names}}|style=&amp;quot;text-align:center;border:.5px solid#CEB;background-color:#CF8;margin:1.5em 0em;width:40%&amp;quot;}} to their hexadecimal color codes;&amp;lt;br&amp;gt;&lt;br /&gt;
Color codes of six hexadecimal numbers #aabbcc are shortened to #ABC when possible (see also {{T0|D2s|+|case=l}}).&lt;br /&gt;
:when not successful, the {{M|convCSS|conversion of CSS}} names is tried;&lt;br /&gt;
:other values are passed &amp;lt;u&amp;gt;without check&amp;lt;/u&amp;gt; as-they-are, which may cause an error &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Function &amp;quot;decode&amp;quot; ==&lt;br /&gt;
Used also globally by template {{T0|Igen/cbox}} and by other templates (same code as in module {{M|Char}})&amp;lt;br&amp;gt;&lt;br /&gt;
Avoids the wiki problem with &amp;lt;code&amp;gt;# * : ;&amp;lt;/code&amp;gt; at the first position&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
***Global functions:&lt;br /&gt;
== Global function &amp;quot;tbcgen&amp;quot; ==&lt;br /&gt;
&amp;quot;tbcgen&amp;quot; calls the template {{T0|Tbc}} with the 5 parameters needed by that template.&lt;br /&gt;
&lt;br /&gt;
== Global function &amp;quot;cstring&amp;quot; ==&lt;br /&gt;
Global init for e.g. ColorString, can split slash-separated params &lt;br /&gt;
&lt;br /&gt;
== Global function &amp;quot;colorts&amp;quot; ==&lt;br /&gt;
Testfunction for drawing boxes, used at [[Template talk:ColorString]].&lt;br /&gt;
&lt;br /&gt;
== Global function &amp;quot;colortab&amp;quot; ==&lt;br /&gt;
Generates a 16 × 16 × 16 tabla, shown at [[Module talk:Color2dec]]&lt;/div&gt;</summary>
		<author><name>Imported&gt;Sarang</name></author>
		
	</entry>
</feed>