Template:Legend: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
+de |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div style="border:none;background:none;text-align:left"><span style="border:solid 1px silver; background:{{{1|none}}}"> </span> {{{2|}}}</div></includeonly> | <includeonly><div style="border:none;background:none;text-align:left"><span style="border:solid 1px silver; background-color:{{{1|none}}}"> </span> {{{2|}}}</div></includeonly> | ||
<noinclude> | <noinclude> | ||
Show a legend row with a colored box. | Show a legend row with a colored box. | ||
Line 16: | Line 16: | ||
<div><span style="border:solid 1px silver; background:black;"> </span> Africa</div> | <div><span style="border:solid 1px silver; background-color:black;"> </span> Africa</div> | ||
<div><span style="border:solid 1px silver; background:green"> </span> Americas</div> | <div><span style="border:solid 1px silver; background-color:green"> </span> Americas</div> | ||
<div><span style="border:solid 1px silver; background:blue"> </span> Oceania</div> | <div><span style="border:solid 1px silver; background-color:blue"> </span> Oceania</div> | ||
<div><span style="border:solid 1px silver; background:#ff0"> </span> Europe</div> | <div><span style="border:solid 1px silver; background-color:#ff0"> </span> Europe</div> | ||
<div><span style="border:solid 1px silver; background:#ff2800"> </span> Asia</div> | <div><span style="border:solid 1px silver; background-color:#ff2800"> </span> Asia</div> | ||
[[de:Vorlage:Legende]] | [[de:Vorlage:Legende]] | ||
</noinclude> | </noinclude> |
Revision as of 17:41, 6 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