<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Template%3AColor%2Fdoc</id>
	<title>Template:Color/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Template%3AColor%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Template:Color/doc&amp;action=history"/>
	<updated>2026-04-18T19:50:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>http://wiki.filipefonseca.pt/index.php?title=Template:Color/doc&amp;diff=1005&amp;oldid=prev</id>
		<title>FilipeFonseca: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Template:Color/doc&amp;diff=1005&amp;oldid=prev"/>
		<updated>2021-07-08T07:21:45Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}} __NOTOC__&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{High-use| 122,000 }}&lt;br /&gt;
{{Warning |'''Prose text intended for readers should never be manually colored.''' ([[MOS:PROSECOLOR]])}}&lt;br /&gt;
This template can be used to specify the foreground color of a span of text. Acceptable values are [[RGB color model|RGB]] hex codes, e.g. #C9E72A, or any of the [[web colors]]: red, blue, green, moccasin, darkorchid, etc. To set the background color of a span of text, use {{Template link|background color}}.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
* {{Template link expanded|color|name of color or hex code of color|Text}}&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
*{{demo inline|&amp;lt;nowiki&amp;gt;{{color|red|Hello, world!}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
*{{demo inline|&amp;lt;nowiki&amp;gt;{{color|#00F000|Hello, world!}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
If the second parameter is omitted, the color value is displayed as text:&lt;br /&gt;
&lt;br /&gt;
*{{demo inline|&amp;lt;nowiki&amp;gt;{{color|#00F000}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
*{{demo inline|&amp;lt;nowiki&amp;gt;{{color|red}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
===Performance considerations===&lt;br /&gt;
The template generates an HTML span tag:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span style=&amp;quot;color:{{{1}}}&amp;quot;&amp;gt;{{{2}}}&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
It runs at speeds in excess of 700 per second, and so is functionally identical to using the HTML markup directly.&lt;br /&gt;
&lt;br /&gt;
===Template data===&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;The color template can be used to add a span of text with any given text color&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Color&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;CSS name of color or hex code of color, e.g. 'red' or '#00F000'.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The string of text to be formatted in the desired color&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Redirects===&lt;br /&gt;
* {{Template link general |COLOR|nolink=on|code=on}}&lt;br /&gt;
* {{Template link general |Colored text|nolink=on|code=on}}&lt;br /&gt;
* {{Template link general |Colour|nolink=on|code=on}}&lt;br /&gt;
* {{Template link general|COLOUR|nolink=on|code=on}}&lt;br /&gt;
* {{Template link general |Fgcolor|nolink=on|code=on}}&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* {{Template link|resize}}&lt;br /&gt;
* {{Template link|colored link}}&lt;br /&gt;
* {{Template link|background color}}&lt;br /&gt;
* {{Template link|font color}} – allows setting both text and background color&lt;br /&gt;
* {{Template link|coltit}} – colored table header cell&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!-- CATEGORIES BELOW THIS LINE, PLEASE: --&amp;gt;&lt;br /&gt;
[[Category:Text color templates| ]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>FilipeFonseca</name></author>
	</entry>
</feed>