<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AIgen%2Fcbx</id>
	<title>Template:Igen/cbx - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AIgen%2Fcbx"/>
	<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Template:Igen/cbx&amp;action=history"/>
	<updated>2026-05-04T17:45:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Template:Igen/cbx&amp;diff=11093&amp;oldid=prev</id>
		<title>Kg7qin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Template:Igen/cbx&amp;diff=11093&amp;oldid=prev"/>
		<updated>2022-01-24T07:59:30Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:59, 24 January 2022&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff::1.12:old-11092:rev-11093 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Template:Igen/cbx&amp;diff=11092&amp;oldid=prev</id>
		<title>Mediawiki&gt;Sarang: +parm</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Template:Igen/cbx&amp;diff=11092&amp;oldid=prev"/>
		<updated>2021-11-13T12:24:12Z</updated>

		<summary type="html">&lt;p&gt;+parm&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{{{#ifeq:{{padleft:|1|{{{1}}}}}|+|{{#ifeq:{{{2}}}|T|Nil2|InFi}}|Nil2}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;|1={{#ifeq:{{padleft:|2|{{{1}}}}}|+=|{{#ifeq:{{{1}}}|+=w|Wikimedia colors|{{Strr|{{{1}}}|2}}}}&amp;lt;!--&lt;br /&gt;
 --&amp;gt;|{{#switch:{{{2}}}|T=|S|B=Color box{{#if:{{{4|}}}|es}}|C|M|D=Colour{{#if:{{{5|}}}|s}}|Legend}}}}&lt;br /&gt;
|2={{#switch:{{{2}}}&lt;br /&gt;
|+|-|B|C|D|L|M|S|T|X|=&lt;br /&gt;
|{{#if:{{{1|}}}|{{Igen/cb1|||{{{1|}}}|{{{2|}}}}}}}}}{{#ifeq:{{{2}}}|T&lt;br /&gt;
|{{Tbc|{{#if:{{{5|}}}|B|F}}&lt;br /&gt;
|{{#switch:{{{1|}}}|+|-|=|e=e|{{#ifeq:{{padleft:|1|{{{1}}}}}|&amp;amp;#32;|e}}}}&lt;br /&gt;
|text={{#ifeq:{{padleft:|2|{{{1}}}}}|+=|{{#invoke:Color2dec|rem2bp|{{{1}}}}}&lt;br /&gt;
|{{#switch:{{{1|}}}|+|-|e|=|{{{1}}}}}}}}}}}&amp;lt;!-- Tbc:start&lt;br /&gt;
--&amp;gt;{{#if:{{{3|}}}{{{4|}}}|{{#invoke:Iteration|colorbox}}}}&amp;lt;!--  &lt;br /&gt;
--&amp;gt;{{#ifeq:{{{2}}}|T|{{Tbc|6}}}}}}&amp;lt;!-- Tbc:end --&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Image generation subtemplates| ]]&lt;br /&gt;
[[Category:Color text formatting templates| ]]&lt;br /&gt;
This {{T0|Image generation|Image generation subtemplate}} performs a display of '''color boxes''', by e.g. {{T|Legend}}.&lt;br /&gt;
{{Lua|Module:Color2dec|Module:ConvCSS|Module:Iteration}}&lt;br /&gt;
;[[Template:Image_generation#Color_boxes|Transclusion (Igen):]]:&lt;br /&gt;
{{Tle|t=Igen|p1=cb|textstring}}&lt;br /&gt;
*only ''one'' parameter: either a color name (e.g. &amp;quot;lime&amp;quot;) or a color triplet (e.g. &amp;quot;#FC23C4&amp;quot; or &amp;quot;#F0F&amp;quot;)&lt;br /&gt;
*a parameter ''pair'', like above plus a display text separated by a slash &amp;quot;/&amp;quot;,&lt;br /&gt;
: or the slash only for an empty second parameter (the first parameter will be used)  &lt;br /&gt;
*''more'' parameters pairs, like that, separated by slashes&lt;br /&gt;
In any of these cases this string can be preceded by a ''control code pair'', e.g. &amp;quot;+/ &amp;quot;;&amp;lt;br&amp;gt;&lt;br /&gt;
the first code may be missing, or a &amp;quot;+&amp;quot; to generate a field name; the second parameter may be &lt;br /&gt;
* missing for {{T|Legend}} with parameter pairs, &lt;br /&gt;
* a &amp;quot;-&amp;quot; for {{T|Legend-small}} with parameter pairs ¹)&lt;br /&gt;
* a &amp;quot;L&amp;quot; for the {{T|Legend}} with '''single''' parameter values ²)&lt;br /&gt;
* a &amp;quot;B&amp;quot; for {{T|ColorBox|Color boxes}} with '''single''' parameter values &lt;br /&gt;
* a &amp;quot;S&amp;quot; for {{T|Legend-small|Color boxes}} with '''single''' parameter values&lt;br /&gt;
* a &amp;quot;D&amp;quot; for {{T|ColorBox|Color boxes}} with parameter pairs&lt;br /&gt;
* a &amp;quot;T&amp;quot; for {{T|Tbc}} with parameter pairs&lt;br /&gt;
:¹) &amp;lt;small&amp;gt;the &amp;quot;-&amp;quot; possibility can also be expressed with an &amp;quot;M&amp;quot; or &amp;quot;C&amp;quot; (caption &amp;quot;Color&amp;quot;)&amp;lt;/small&amp;gt; &lt;br /&gt;
:²) &amp;lt;small&amp;gt;the &amp;quot;L&amp;quot; possibility exists just for completion – normally a &amp;quot;Legend&amp;quot; without an explaining second value will not be useful.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
;Transclusion (Igen/cbx):&lt;br /&gt;
All slashes are replaced by pipes, so this template gets a row of unnamed parameters.&amp;lt;br&amp;gt;&lt;br /&gt;
When the second parameter of a pair is missing, the first parameter &amp;lt;!-- or the color triplet --&amp;gt; will be displayed instead.&amp;lt;br&amp;gt;&lt;br /&gt;
When the ''first'' parameter of such a pair is empty, the template terminates.&amp;lt;br&amp;gt;&lt;br /&gt;
Template {{T0|Igen/cbox}} and LUA module {{M|Color2dec}} is used.&lt;br /&gt;
&lt;br /&gt;
See examples at {{T0|ColorString|+}} {{0}} &amp;lt;small&amp;gt;and its [[Template talk:ColorString|talk page]]&amp;lt;/small&amp;gt;. &lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mediawiki&gt;Sarang</name></author>
	</entry>
</feed>