Template:Legend/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(new) |
(fixing the docs to describe how the template works now) |
||
Line 4: | Line 4: | ||
<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 property |
''color'' is passed to the [[Cascading Style Sheets|css]] background-color property. The optional ''border'' argument is passed to the css border property. |
||
;Example: |
;Example: |
Revision as of 03:08, 7 November 2006
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 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}}.