Template:Legend/doc

From CivWiki
Revision as of 14:55, 16 August 2006 by wikipedia>Ligulem (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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