<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.p1gsel.com/p1gwars/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="https://www.p1gsel.com/p1gwars/index.php?action=history&amp;feed=atom&amp;title=Template%3AColor%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Color/doc&amp;action=history"/>
	<updated>2026-06-02T17:28:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.p1gsel.com/p1gwars/index.php?title=Template:Color/doc&amp;diff=13629&amp;oldid=prev</id>
		<title>P1gsel: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Color/doc&amp;diff=13629&amp;oldid=prev"/>
		<updated>2026-06-02T11:53:29Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:53, 2 June 2026&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>P1gsel</name></author>
	</entry>
	<entry>
		<id>https://www.p1gsel.com/p1gwars/index.php?title=Template:Color/doc&amp;diff=13628&amp;oldid=prev</id>
		<title>wikipedia&gt;Dissident93: unless there are issues I didn&#039;t see, the template now works in dark mode the same as using {{White}} and {{Red}}</title>
		<link rel="alternate" type="text/html" href="https://www.p1gsel.com/p1gwars/index.php?title=Template:Color/doc&amp;diff=13628&amp;oldid=prev"/>
		<updated>2026-04-25T18:19:08Z</updated>

		<summary type="html">&lt;p&gt;unless there are issues I didn&amp;#039;t see, the template now works in dark mode the same as using {{White}} and {{Red}}&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}}&lt;br /&gt;
{{Warning |&amp;#039;&amp;#039;&amp;#039;Prose text intended for readers should never be manually colored.&amp;#039;&amp;#039;&amp;#039; ([[MOS:PROSECOLOR]])}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Color/styles.css}}&lt;br /&gt;
{{tl|color}} 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;
* {{#invoke:demoTemplate|color|red|Hello, world!}}&lt;br /&gt;
* {{#invoke:demoTemplate|color|#00F000|Hello, world!}}&lt;br /&gt;
&lt;br /&gt;
If the second parameter is omitted, the color value is displayed as text:&lt;br /&gt;
* {{#invoke:demoTemplate|color|#00F000}}&lt;br /&gt;
* {{#invoke:demoTemplate|color|red}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:var(--background-color-base); color:var(--color-base); border:1px solid var(--border-color-base); padding:4px; margin:4px;&amp;quot;&amp;gt;Using the [[wmdoc:codex/latest/design-tokens/color.html|Codex Design Style Guide for Wikimedia]] text colors:&lt;br /&gt;
* {{#invoke:demoTemplate|color|var(--color-success, #177860)|&amp;#039;&amp;#039;&amp;#039;Success&amp;#039;&amp;#039;&amp;#039;}}&lt;br /&gt;
* {{#invoke:demoTemplate|color|var(--color-error, #bf3c2c)|&amp;#039;&amp;#039;&amp;#039;Error&amp;#039;&amp;#039;&amp;#039;}}&lt;br /&gt;
* {{#invoke:demoTemplate|color|var(--color-content-added, #006400)|&amp;#039;&amp;#039;&amp;#039;Content added&amp;#039;&amp;#039;&amp;#039;}}&lt;br /&gt;
* {{#invoke:demoTemplate|color|var(--color-content-removed, #8b0000)|&amp;#039;&amp;#039;&amp;#039;Content removed&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/div&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;
* {{Template link|overcoloured}} – when color is used in a way that hides information from color-blind people&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&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. &amp;#039;red&amp;#039; or &amp;#039;#00F000&amp;#039;.&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;
&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>wikipedia&gt;Dissident93</name></author>
	</entry>
</feed>