Template:Legend-line
Jump to navigation
Jump to search
This documentation is transcluded from Template:Legend-line/doc.
Template parameters
[edit]- 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 - any text, may be wikicode (e.g. linked); default: none
- "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
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
.
- Multiple lines
{{ Leglin | #F0F solid 3px | violet | solid #00F 3px | blue | 3px solid #F00 | red }} (with Module:Iteration)
violet
blue
red