Template:Legend: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
No edit summary
(bah... reverting for now)
Line 1: Line 1:
<includeonly><div style="float:left; font-size:90%;height:0.8em; width:1.2em; background:{{{1|none}}}; border:{{{border|solid silver 1px}}};clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">{{{2|}}}</p></includeonly>
<onlyinclude><p style="margin:0px;font-size:90%"><span style="border:{{{border|none}}};background-color:{{{1|none}}};color:{{{1|none}}};">██</span>&nbsp;{{{2|}}}</p></onlyinclude>
<noinclude>
<!-- You are advised to read the talk page before changing this template. -->
<!-- You are advised to read the talk page before changing this template. -->
Shows a legend row with a colored box.
Shows a legend row with a colored box.
Line 17: Line 16:




<p style="margin:0px;font-size:90%"><span style="border:none;color:black;background-color:black">mm</span>&nbsp;Africa</p>
<div style="float:left; height:0.8em; width:1.2em; background:black; border:solid silver 1px;clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Africa</p>
<div style="float:left; height:0.8em; width:1.2em; background:green; border:solid silver 1px;clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Americas</p>
<p style="margin:0px;font-size:90%"><span style="border:none;color:green;background-color:green">mm</span>&nbsp;Americas</p>
<p style="margin:0px;font-size:90%"><span style="border:none;color:blue;background-color:blue">mm</span>&nbsp;Oceania</p>
<div style="float:left; height:0.8em; width:1.2em; background:blue; border:solid silver 1px; clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Oceania</p>
<p style="margin:0px;font-size:90%"><span style="border:none;color:#FF0;background-color:#FF0">mm</span>&nbsp;Europe</p>
<div style="float:left; height:0.8em; width:1.2em; background:#ff0; border:solid silver 1px; clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Europe</p>
<p style="margin:0px;font-size:90%"><span style="border:none;color:#FF2800;background-color:#FF2280">mm</span>&nbsp;Asia</p>
<div style="float:left; height:0.8em; width:1.2em; background:#ff2800; border:solid silver 1px; clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Asia</p>



For legends involving lines on a map, see {{tl|legend-line}}.
For legends involving lines on a map, see {{tl|legend-line}}.
Line 32: Line 32:
[[sr:Шаблон:Легенда]]
[[sr:Шаблон:Легенда]]
[[vi:Tiêu bản:Legend]]
[[vi:Tiêu bản:Legend]]
</noinclude>

Revision as of 15:38, 3 February 2006

██ 

Shows a legend row with a colored box.

Usage
{{legend|color|label|border=border}}

color is passed to the css background property, so it can also include images. The optional border argument is passed to the css border property.

Example
{{legend|black|Africa}}
{{legend|green|Americas}}
{{legend|blue|Oceania}}
{{legend|#ff0|Europe}}
{{legend|#ff2800|Asia}}


mm Africa

mm Americas

mm Oceania

mm Europe

mm Asia


For legends involving lines on a map, see {{legend-line}}.

de:Vorlage:Legende es:Plantilla:Legend ko:Template:범례 hu:Sablon:Jelmagyarázat pl:Szablon:Legenda sr:Шаблон:Легенда vi:Tiêu bản:Legend