Template:Legend/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Kooma |
meta>Zocky 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}}.