<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AColor_sample%2Fdoc</id>
	<title>Template:Color sample/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AColor_sample%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Color_sample/doc&amp;action=history"/>
	<updated>2026-11-01T03:29:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Color_sample/doc&amp;diff=112106&amp;oldid=prev</id>
		<title>Wikipedia&gt;Andrybak: /* Usage */ copyedit /* Parameters */ new section</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Color_sample/doc&amp;diff=112106&amp;oldid=prev"/>
		<updated>2026-09-05T13:51:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage: &lt;/span&gt; copyedit &lt;span class=&quot;autocomment&quot;&gt;Parameters: &lt;/span&gt; new section&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;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
* {{tlc|_show_result=true|Color sample|red}}&lt;br /&gt;
* {{tlc|_show_result=true|Color sample|#00FF00}}&lt;br /&gt;
* {{tlc|_show_result=true|Color sample|#00FF00|description{{=}}green}}&amp;lt;br/&amp;gt;Adds a description of the color for [[screen reader]] users&lt;br /&gt;
* {{tlc|Color sample|&amp;amp;#123;&amp;amp;#123;party color{{!}}Independent politician&amp;amp;#125;&amp;amp;#125;}}&amp;amp;nbsp;→&amp;amp;nbsp;{{Color sample|{{party color|Independent politician}}}}&amp;lt;br/&amp;gt;(Instead of specifying a color directly, this example uses &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{party color|Independent politician}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, which generates &amp;lt;code&amp;gt;{{party color|Independent politician}}&amp;lt;/code&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Size option:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* A second parameter allows to define the size of the square: 1 is large (default), 0.6 is quite small, 0.2 is minuscule. Examples:&amp;lt;br&amp;gt;&lt;br /&gt;
*:&amp;lt;nowiki&amp;gt;{{Color sample|#008000}}&amp;lt;/nowiki&amp;gt; or &amp;lt;nowiki&amp;gt;{{Color sample|#008000|1}}&amp;lt;/nowiki&amp;gt; gives: {{Color sample|#008000}}&lt;br /&gt;
*:&amp;lt;nowiki&amp;gt;{{Color sample|#008000|0.5}}&amp;lt;/nowiki&amp;gt; gives: {{Color sample|#008000|0.6}}&lt;br /&gt;
*:&amp;lt;nowiki&amp;gt;{{Color sample|#008000|0.2}}&amp;lt;/nowiki&amp;gt; gives: {{Color sample|#008000|0.2}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
;{{Parameter|1|&amp;lt;var&amp;gt;CSS color&amp;lt;/var&amp;gt;}}&lt;br /&gt;
:The color of the sample. See [[Web colors]].&lt;br /&gt;
;{{Parameter|2|&amp;lt;var&amp;gt;number&amp;lt;/var&amp;gt;}}&lt;br /&gt;
:Size of the box in [[Em (typography)#CSS|&amp;lt;code&amp;gt;em&amp;lt;/code&amp;gt; units]]. Examples: {{tlc|_show_result=true|Color sample|purple|0.5}}, {{tlc|_show_result=true|Color sample|purple|1.5}}&lt;br /&gt;
;{{Parameter|w|&amp;lt;var&amp;gt;number&amp;lt;/var&amp;gt;}} and {{Parameter|h|&amp;lt;var&amp;gt;number&amp;lt;/var&amp;gt;}}&lt;br /&gt;
:An alternative to {{Parameter|2}} to specify the width and height separately.&lt;br /&gt;
;{{Parameter|border-color|&amp;lt;var&amp;gt;CSS color&amp;lt;/var&amp;gt;}}&lt;br /&gt;
:The color of the border. Examples: {{tlc|_show_result=true|Color sample|purple|border-color{{=}}orange}}, {{tlc|_show_result=true|Color sample|purple|border-color{{=}}#0FF}}&lt;br /&gt;
;{{Parameter|border-width|&amp;lt;var&amp;gt;CSS size&amp;lt;/var&amp;gt;}}&lt;br /&gt;
:The width of the border around the color sample. Examples: {{tlc|_show_result=true|Color sample|purple|border-width{{=}}3px}}, {{tlc|_show_result=true|Color sample|purple|border-width{{=}}0.15cm}}&lt;br /&gt;
;{{Parameter|description|&amp;lt;var&amp;gt;text&amp;lt;/var&amp;gt;}}&lt;br /&gt;
:An override of the text for the &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; [[HTML attribute]]. Shows up as a tooltip when a mouse cursor is hovering over the color sample. When hovered over, the template shows the value used for color as a tooltip by default. This is also heard by a screen reader. This parameter can be used to change that to something more user-friendly. Double quotations must be escaped as an [[HTML character entity]] &amp;lt;code&amp;gt;&amp;amp;amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Template:Swatch inline]]&lt;br /&gt;
*[[Template:Swatch]]&lt;br /&gt;
*[[Lists of colors]]&lt;br /&gt;
*[[Web colors]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Color templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Andrybak</name></author>
	</entry>
</feed>