Template:Legend

From CreationWiki, the encyclopedia of creation science
Jump to navigationJump to search


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

Use in a caption


[[File:Abortion Laws Map.png|thumb|right|350px}|International status of abortion law:
{{legend|#3465a4|Legal on request}}
{{legend|#73d216|Legal for rape, maternal life, health, mental health, socioeconomic factors, and/or fetal defects}}
{{legend|#edd400|Illegal with exception for rape, maternal life, health, fetal defects, and/or mental health}}
{{legend|#c17d11|Illegal with exception for rape, maternal life, health, and/or mental health}}
{{legend|#f57900|Illegal with exception for maternal life, health, and/or mental health}}
{{legend|#cc0000|Illegal with no exceptions}}
{{legend|#2e3436|Varies}}
{{legend|#b9b9b9|No information}}]]

International status of abortion law:
  Legal on request
  Legal for rape, maternal life, health, mental health, socioeconomic factors, and/or fetal defects
  Illegal with exception for rape, maternal life, health, fetal defects, and/or mental health
  Illegal with exception for rape, maternal life, health, and/or mental health
  Illegal with exception for maternal life, health, and/or mental health
  Illegal with no exceptions
  Varies
  No information