Template:Legend-line

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Legend-line/doc.


Template parameters[edit]

  1. border: a border definition, up to three subparameters (color, style, thickness; default: 2px dotted #000) as e.g.
    black solid 2px
    dotted 3px blue
    #F0F thin solid
    medium dashed green
  2. any text, may be wikicode (e.g. linked); default: none
  3. "w=" width of the line; default: 2em

Usage[edit]

Shows a legend row with a colored line. The default width w is 2em.
To have the text in one row with Legend use the parameter w=33px, and with Legend-small w=20px

 
that's a Legend
 double 3px, w=33px
 double 6px (2em default)
 double 9px, w=20px
  that's a Legend-small


Example
 Borders in 1914
 Borders in 1920
 green dot in 2022
{{legend-line|black solid 3px|Borders in 1914}}
{{legend-line|red dotted 3px|Borders in 1920}}
{{Legend-line|#093 dotted 12px|green dot in 2022}}
Usage
{{legend-line|line_type|label}}

line_type is passed to the css border property, and can include the properties: solid, dotted, dashed.


Without any parameter: default border
 


Multiple lines

{{ Leglin#F0F solid 3pxvioletsolid #00F 3pxblue3px solid #F00red }} 0 (with Module:Iteration)

 violet
 blue
 red

See also[edit]