Template:Legend/doc

From Zoophilia Wiki
Revision as of 13:10, 20 September 2007 by meta>Zocky (update)
Jump to navigationJump to search

Shows a legend row with a colored box.

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

color is passed to the css background-color property. The optional border argument is the color of the 1 pixel border that will be drawn around the box. If the border color is omitted, the border will be the same color as the box, i.e. invisible.

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

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