Template:Legend/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(update) |
|||
Line 5: | Line 5: | ||
<nowiki>{{</nowiki>legend|''color''|''label''|border=''border''<nowiki>}}</nowiki> |
<nowiki>{{</nowiki>legend|''color''|''label''|border=''border''<nowiki>}}</nowiki> |
||
''color'' is passed to the [[Cascading Style Sheets|css]] background-color property. The optional ''border'' argument is |
''color'' is passed to the [[Cascading Style Sheets|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: |
;Example: |
Revision as of 13:10, 20 September 2007
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}}.