Template:Legend: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(transcluding doc from {{Template:Legend/doc}}.) |
|||
Line 1: | Line 1: | ||
<span style="margin:0px;font-size:90%; display: block;"><span style="border:{{{border|none}}};background-color:{{{1|none}}};color:{{{1|none}}};">██</span> {{{2|}}}</span><noinclude> |
<span style="margin:0px;font-size:90%; display: block;"><span style="border:{{{border|none}}};background-color:{{{1|none}}};color:{{{1|none}}};">██</span> {{{2|}}}</span><noinclude> |
||
{{Template:Legend/doc}} |
|||
<!-- You are advised to read the talk page before changing this template. --> |
|||
Shows a legend row with a colored box. |
|||
;Usage: |
|||
<nowiki>{{</nowiki>legend|''color''|''label''|border=''border''<nowiki>}}</nowiki> |
|||
''color'' is passed to the [[Cascading Style Sheets|css]] background property, so it can also include images. The optional ''border'' argument is passed to the css border property. |
|||
;Example: |
|||
<nowiki>{{legend|black|Africa}}</nowiki> |
|||
<nowiki>{{legend|green|Americas}}</nowiki> |
|||
<nowiki>{{legend|blue|Oceania}}</nowiki> |
|||
<nowiki>{{legend|#ff0|Europe}}</nowiki> |
|||
<nowiki>{{legend|#ff2800|Asia}}</nowiki> |
|||
{{legend|black|Africa}} |
|||
{{legend|green|Americas}} |
|||
{{legend|blue|Oceania}} |
|||
{{legend|#ff0|Europe}} |
|||
{{legend|#ff2800|Asia}} |
|||
For legends involving lines on a map, see {{tl|legend-line}}. |
|||
[[Category:Legend templates]] |
[[Category:Legend templates]] |
||