<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ALegend%2Fdoc</id>
	<title>Template:Legend/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ALegend%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Legend/doc&amp;action=history"/>
	<updated>2026-04-25T19:46:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Legend/doc&amp;diff=169056&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Updating</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Legend/doc&amp;diff=169056&amp;oldid=prev"/>
		<updated>2023-04-03T00:29:05Z</updated>

		<summary type="html">&lt;p&gt;Updating&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;
{{Uses TemplateStyles|Template:Legend/styles.css}}&lt;br /&gt;
Shows a legend row with a colored box.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;legend|&amp;#039;&amp;#039;background-color&amp;#039;&amp;#039;|&amp;#039;&amp;#039;caption&amp;#039;&amp;#039;|outline=&amp;#039;&amp;#039;outline color&amp;#039;&amp;#039;|border=&amp;#039;&amp;#039;css border&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;background-color&amp;#039;&amp;#039; is passed to the [[w:Cascading Style Sheets|css]] background-color property of the color box.&lt;br /&gt;
*The optional &amp;#039;&amp;#039;outline&amp;#039;&amp;#039; parameter is the color of the outline around the box.&lt;br /&gt;
*The optional &amp;#039;&amp;#039;border&amp;#039;&amp;#039; argument which overrides the &amp;#039;&amp;#039;outline&amp;#039;&amp;#039; argument and sets the css description (e.g., &amp;lt;code&amp;gt;1px solid #aaa&amp;lt;/code&amp;gt;) of the border that will be drawn around the box.&lt;br /&gt;
&lt;br /&gt;
==Full parameter list==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{legend&lt;br /&gt;
| [legend box&amp;#039;s colo(u)r]&lt;br /&gt;
| [text following legend box]&lt;br /&gt;
| outline =  &amp;lt;!--colo(u)r of border around legend box--&amp;gt;&lt;br /&gt;
| border =   &amp;lt;!--use to specify custom CSS styling for border (overrides &amp;#039;outline&amp;#039;)--&amp;gt;&lt;br /&gt;
| color =    &amp;lt;!--colo(u)r of &amp;#039;text&amp;#039;--&amp;gt;&lt;br /&gt;
| size =     &amp;lt;!--&amp;#039;text&amp;#039; font-size--&amp;gt;&lt;br /&gt;
| text =     &amp;lt;!--to place text inside the legend box--&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Limitations==&lt;br /&gt;
Using certain special characters in {{para|text}} that have meaning in wikitext can cause unexpected results. To use {{asterisk}} in {{para|text}}, use {{para|text|{{tlf|asterisk}}}}. To use # in {{para|text}}, use {{para|text|{{tlf|number sign}}}}.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
===Templates===&lt;br /&gt;
*To colour text and background:&lt;br /&gt;
** {{tl|Font color}}&lt;br /&gt;
** {{tl|background color}}&lt;br /&gt;
** {{tl|font}}&lt;br /&gt;
*To provide example squares of colour:&lt;br /&gt;
** {{tl|Color sample}}&lt;br /&gt;
** {{tl|Swatch}}&lt;br /&gt;
** {{tl|Swatch inline}}&lt;br /&gt;
* To provide a list colors&lt;br /&gt;
** {{tl|Colornames}}&lt;br /&gt;
** {{tl|Formula Supported Named Colors}}&lt;br /&gt;
** {{tl|X11 color chart}}&lt;br /&gt;
** {{tl|Web Colors}}&lt;br /&gt;
&lt;br /&gt;
===Wikipedia articles===&lt;br /&gt;
* [[w:Color picker|Color picker]]&lt;br /&gt;
* [[w:Web colors|Web colors]]&lt;br /&gt;
* [[w:HTML color names|HTML color names]]&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;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;The color for the legend entry, in any CSS format&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;\&amp;quot;#6D6E00\&amp;quot;, \&amp;quot;#ffa\&amp;quot;, \&amp;quot;yellow\&amp;quot;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&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;Caption&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Label for the legend entry&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;\&amp;quot;soda\&amp;quot; is most common&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;
		&amp;quot;border&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;CSS border style&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;CSS style for the legend entry&amp;#039;s border&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;outline&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Entry outline&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;CSS color for the outline of the legend entry&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;silver&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;text&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Text in the entry&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Text to be displayed in the legend entry box, i.e. within the color specified&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Af&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;line&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;textcolor&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Text color&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;CSS color of text inside the legend&amp;#039;s colored box&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;size&amp;quot;: {&lt;br /&gt;
            &amp;quot;label&amp;quot;: &amp;quot;Size&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Font size of the legend entry, including colored box&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Shows a legend row with a colored box and a caption.&amp;quot;&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; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Legend templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>