Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
adding border argument
meta>Zocky
m bah, stupid me
Line 1: Line 1:
<includeonly><div style="border:none;background:none;text-align:left"><span style="border:{{border|solid 1px silver}}; background-color:{{{1|none}}}">&emsp;</span>&nbsp;{{{2|}}}</div></includeonly>
<includeonly><div style="border:none;background:none;text-align:left"><span style="border:{{{border|solid 1px silver}}}; background-color:{{{1|none}}}">&emsp;</span>&nbsp;{{{2|}}}</div></includeonly>
<noinclude>
<noinclude>
Show a legend row with a colored box.
Show a legend row with a colored box.

Revision as of 13:46, 16 December 2005


Show a legend row with a colored box.

Usage
{{legend|''color''|''label''}}

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


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


 Africa
 Americas
 Oceania
 Europe
 Asia

de:Vorlage:Legende