Template:Legend/doc: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
(fixing the docs to describe how the template works now)
({{Template doc page transcluded}}, IW and category -- here, instead of template)
Line 1: Line 1:
<includeonly>{{Template doc page transcluded}}</includeonly>
Shows a legend row with a colored box.
Shows a legend row with a colored box.


Line 20: Line 21:


For legends involving lines on a map, see {{tl|legend-line}}.
For legends involving lines on a map, see {{tl|legend-line}}.

<includeonly>

[[Category:Legend templates]]

[[bg:Шаблон:Легенда]]
[[ca:Template:Llegenda]]
[[cs:Šablona:Legenda]]
[[cy:Nodyn:Legend]]
[[de:Vorlage:Farblegende]]
[[es:Plantilla:Legend]]
[[fr:Modèle:Légende]]
[[he:תבנית:מקרא]]
[[it:Template:Legenda]]
[[ka:თარგი:ლეგენდა]]
[[ko:Template:범례]]
[[hu:Sablon:Jelmagyarázat]]
[[mk:Шаблон:Легенда]]
[[pl:Szablon:Legenda]]
[[pt:Predefinição:Legenda]]
[[rmy:Format:Xalyaripen]]
[[ro:Format:Legendă]]
[[ru:Шаблон:Легенда]]
[[sk:Šablóna:Legenda]]
[[sl:Predloga:Legenda]]
[[sr:Шаблон:Легенда]]
[[vi:Tiêu bản:Legend]]
[[zh:Template:Legend]]

</includeonly>

Revision as of 16:09, 12 January 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 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}}.