<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fallenchungus.wiki/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://www.fallenchungus.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ALegend%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Template:Legend/doc&amp;action=history"/>
	<updated>2026-04-18T21:22:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://www.fallenchungus.wiki/index.php?title=Template:Legend/doc&amp;diff=7337&amp;oldid=prev</id>
		<title>CapybaraKiller: 1 revision imported from :Wikipedia:Template:Legend/doc</title>
		<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Template:Legend/doc&amp;diff=7337&amp;oldid=prev"/>
		<updated>2025-05-27T07:22:28Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/Template:Legend/doc&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Template:Legend/doc&quot;&gt;Wikipedia:Template:Legend/doc&lt;/a&gt;&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 00:22, 27 May 2025&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>CapybaraKiller</name></author>
	</entry>
	<entry>
		<id>https://www.fallenchungus.wiki/index.php?title=Template:Legend/doc&amp;diff=7336&amp;oldid=prev</id>
		<title>Wikipedia&gt;Moscow Mule: Online sites that can identify the color of any pixel in an uploaded image are also available:  *[https://imagecolorpicker.com/ imagecolorpicker.com] (v. helpful)</title>
		<link rel="alternate" type="text/html" href="https://www.fallenchungus.wiki/index.php?title=Template:Legend/doc&amp;diff=7336&amp;oldid=prev"/>
		<updated>2025-05-22T18:23:38Z</updated>

		<summary type="html">&lt;p&gt;Online sites that can identify the color of any pixel in an uploaded image are also available:  *[https://imagecolorpicker.com/ imagecolorpicker.com] (v. helpful)&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;
{{High-use|17355.142857142857142857142857142857142857142857142857142857142857142857}}&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;
{{Missing information|section|&amp;#039;&amp;#039;the function of the &amp;#039;&amp;#039;&amp;#039;parameter &amp;lt;code&amp;gt;alt&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;|date=December 2023}}&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 [[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. Not to be confused with the CSS outline property.&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 property (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;
==Examples==&lt;br /&gt;
===Use in text===&lt;br /&gt;
{{demo|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{legend|black|Africa}}&lt;br /&gt;
{{legend|green|Americas}}&lt;br /&gt;
{{legend|blue|Oceania}}&lt;br /&gt;
{{legend|#ffa|Europe|outline=silver}}&lt;br /&gt;
{{legend|#ff2800|Asia|outline=#A2A9B1}}&lt;br /&gt;
&amp;lt;!-- #A2A9B1 is the [[Help:Basic table markup|wikitables]] border color. --&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
===Use in captions===&lt;br /&gt;
{{markup|&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
 [[File:Celts in Europe.png|upright=.9|thumb|right|The Celts in Europe, past and present:&lt;br /&gt;
 {{legend|#1a8000|Present-day Celtic-speaking areas}}&lt;br /&gt;
 {{legend|#27c600|Other parts of the six most commonly recognized &amp;quot;Celtic nations&amp;quot; and where a Celtic language is spoken but not the dominating language}}&lt;br /&gt;
 {{legend|#97ffb6|Other parts of Europe once peopled by Celts; modern-day inhabitants of many of these areas often claim a Celtic heritage and/or culture}}&lt;br /&gt;
 {{legend|#D2FFD2|Lusitanian area of Iberia, &amp;quot;Celticity&amp;quot; uncertain}}&lt;br /&gt;
 {{legend|yellow|The core Hallstatt territory, expansion before 500 BC}}&lt;br /&gt;
 ]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;|&lt;br /&gt;
[[File:Celts in Europe.png|upright=.9|thumb|right|The Celts in Europe, past and present:&lt;br /&gt;
{{legend|#1a8000|Present-day Celtic-speaking areas}}&lt;br /&gt;
{{legend|#27c600|Other parts of the six most commonly recognized &amp;quot;Celtic nations&amp;quot; and where a Celtic language is spoken but not the dominating language}}&lt;br /&gt;
{{legend|#97ffb6|Other parts of Europe once peopled by Celts; modern-day inhabitants of many of these areas often claim a Celtic heritage and/or culture}}&lt;br /&gt;
{{legend|#D2FFD2|Lusitanian area of Iberia, &amp;quot;Celticity&amp;quot; uncertain}}&lt;br /&gt;
{{legend|yellow|The core Hallstatt territory, expansion before 500 BC}}]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Use with all parameters ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{legend&lt;br /&gt;
| #ded &amp;lt;!--light green--&amp;gt;&lt;br /&gt;
| The meadow is green.&lt;br /&gt;
| outline   = #00e &amp;lt;!--blue &amp;gt;&amp;gt; will be not used because overridden by border-parameter--&amp;gt;&lt;br /&gt;
| border    = 2px solid #e00 &amp;lt;!--red--&amp;gt;&lt;br /&gt;
| textcolor = #00e &amp;lt;!--blue--&amp;gt;&lt;br /&gt;
| size      = 200%&lt;br /&gt;
| text      = green&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{legend&lt;br /&gt;
| #ded &amp;lt;!--light green--&amp;gt;&lt;br /&gt;
| The meadow is green.&lt;br /&gt;
| outline   = #00e &amp;lt;!--blue &amp;gt;&amp;gt; will be not used because overridden by border-parameter--&amp;gt;&lt;br /&gt;
| border    = 2px solid #e00 &amp;lt;!--red--&amp;gt;&lt;br /&gt;
| textcolor = #00e &amp;lt;!--blue--&amp;gt;&lt;br /&gt;
| size      = 200%&lt;br /&gt;
| text      = green&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Full parameter list==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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;
| textcolor = &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;/syntaxhighlight&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;
==Determine hex colors for legend==&lt;br /&gt;
&lt;br /&gt;
One way to determine the exact color is via freeware [[IrfanView]]. Open image. Then:&lt;br /&gt;
:Edit menu &amp;gt; Show Paint dialog &amp;gt; click on the eyedropper &amp;gt; click somewhere in the image &amp;gt; click on the color at the bottom of the Paint dialog &amp;gt; Write down the Red, Green, and Blue color numbers (RGB).&lt;br /&gt;
&lt;br /&gt;
Online sites that can identify the color of any pixel in an uploaded image are also available: &lt;br /&gt;
*[https://imagecolorpicker.com/ imagecolorpicker.com]&lt;br /&gt;
&lt;br /&gt;
Convert [[RGB colors]] to [[hex color]] or [[Web colors#HTML color names|color name]] (if there is one):&lt;br /&gt;
*[https://www.w3schools.com/colors/colors_converter.asp Color Converter].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*Variant blocks&lt;br /&gt;
**{{tl|legend striped}}, two colors, for striped color areas&lt;br /&gt;
**{{tl|legend inline}}, uses &amp;#039;&amp;#039;display:inline&amp;#039;&amp;#039; to avoid line breaks after each legend&lt;br /&gt;
**{{tl|legend0}}, without the line-feed&lt;br /&gt;
**{{tl|leftlegend}}, with text-align set to left&lt;br /&gt;
**{{tl|color box}} and {{tl|RouteBox}}, with text placed inside the colored legend and article linking&lt;br /&gt;
*{{tl|legend-line}}, legends for lines&lt;br /&gt;
*{{tl|image key}}, allows legend templates being used in image captions to use multiple columns&lt;br /&gt;
&lt;br /&gt;
* [[Lists of colors]]&lt;br /&gt;
* [[Web colors]]&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Templates that list colors&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tl|Colornames}}&lt;br /&gt;
* {{tl|X11 color chart}}&lt;br /&gt;
* {{tl|Web Colors}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{Missing information|section|&amp;#039;&amp;#039;the function of the &amp;#039;&amp;#039;&amp;#039;parameter &amp;lt;code&amp;gt;alt&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;|date=December 2023}}&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>Wikipedia&gt;Moscow Mule</name></author>
	</entry>
</feed>