Template:Legend: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(test code from .de)
(test code from .de)
Line 1: Line 1:
<includeonly><div style="border:{{{border|none}}};background:none;text-align:left"><span style="border:solid 1px silver; background:{{{1|none}}}; font-size:1em; color:{{{1}}}">0</span>&nbsp;{{{2|}}}</div></includeonly>
<includeonly><div style="border:none;background:none;text-align:left"><span style="border:{{{border|none}}}; background:{{{1|none}}}; font-size:1em; color:{{{1}}}">0</span>&nbsp;{{{2|}}}</div></includeonly>
<!-- 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.

Revision as of 11:51, 21 January 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}}


 Africa

 Americas

 Oceania

 Europe

 Asia

de:Vorlage:Legende es:Plantilla:Legend pl:Szablon:Legenda sr:Шаблон:Легенда vi:Tiêu bản:Legend