Template:Legend/doc: Difference between revisions

Jump to navigation Jump to search
Reverted 2 edits by Hohum (talk): Rv self. (TW)
(Reverted 2 edits by Hohum (talk): Rv self. (TW))
Line 5:
 
==Usage==
<nowiki>{{</nowiki>legend inline|''color''|''label''|outline=''outline color''|border=''css border''<nowiki>}}</nowiki>
 
''color'' is passed to the [[Cascading Style Sheets|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., <code>1px solid #aaa</code>) of the border that will be drawn around the box.
Line 11:
==Examples==
===Use in text===
<nowiki>{{legend inline|black|Africa}}</nowiki>
<nowiki>{{legend inline|green|Americas}}</nowiki>
<nowiki>{{legend inline|blue|Oceania}}</nowiki>
<nowiki>{{legend inline|#ffa|Europe|outline=silver}}</nowiki>
<nowiki>{{legend inline|#ff2800|Asia}}</nowiki>
 
{{legend inline|black|Africa}}
{{legend inline|green|Americas}}
{{legend inline|blue|Oceania}}
{{legend inline|#ffa|Europe|outline=silver}}
{{legend inline|#ff2800|Asia}}
 
===Use in a caption ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu