Template:Legend

From Eratosthenia
Jump to navigation Jump to search
[view] [edit] [history] [purge] Documentation icon Template documentation

Shows a legend row with a colored box.

Usage

{{legend|color|label|outline=outline color|border=css border}}

color is passed to the CSS background-color property of the color box. The optional outline parameter is the color of the outline around the box. If you need to customize the border further, you can use the border argument, which overrides the outline argument and sets the css description (e.g., 1px solid #aaa) of the border that will be drawn around the box.

Examples

Use in text

{{legend|black|Africa}}
{{legend|green|Americas}}
{{legend|blue|Oceania}}
{{legend|#ffa|Europe|outline=silver}}
{{legend|#ff2800|Asia}}
  Africa
  Americas
  Oceania
  Europe
  Asia