Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
does this work?
meta>Zocky
more tweaks
Line 1: Line 1:
<onlyinclude><div style="margin:0px;font-size:90%;padding-left:2.2em;clear:both;">
<onlyinclude><div style="margin:0px!important;font-size:90%!important;padding-left:2.2em!important;">
<div style="float:left; height:1.2em; width:1.6em; background:{{{1|none}}}; border:{{{border|solid silver 1px}}};margin-left:-2.2em"/>{{{2|}}}</div></onlyinclude>
<div style="float:left; height:1.2em; width:1.6em; background:{{{1|none}}}; border:{{{border|solid silver 1px}}};margin-left:-2.2em"/>{{{2|}}}</div></onlyinclude>
<!-- You are advised to read the talk page before changing this template. -->
<!-- You are advised to read the talk page before changing this template. -->

Revision as of 15:49, 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}}