Template:Legend: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(border syntax)
m (ahem)
Line 4: Line 4:


;Usage:
;Usage:
<nowiki>{{</nowiki>tl|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, so it can also include images. The optional ''border'' argument is passed to the css border property.
''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.

Revision as of 14:20, 9 January 2006


Shows a legend row with a colored box.

Usage
{{legend|color|label|border=border}}

color is passed to the css background property, so it can also include images. 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

de:Vorlage:Legende pl:Szablon:Legenda sr:Шаблон:Легенда