Template:Legend
Jump to navigation
Jump 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
The above documentation is transcluded from Template:Legend/doc. (edit | history) Please add categories to the /doc subpage. Subpages of this template. |