Template:Legend-line
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Usage[edit]
Shows a legend row with a colored line.
- Example
{{legend-line|black solid 2px|Borders in 1914}} {{legend-line|red dotted 2px|Borders in 1920}}
Inline: Borders in 1914 Borders in 1920
{{legend-line|black solid 2px|Borders in 1914|inline=yes}} {{legend-line|red dotted 2px|Borders in 1920|inline=yes}}
- Usage
{{legend-line|line type|label}}
line type is passed to the css border property, and can include properties like solid
, dotted
, dashed
, double
, etc.
See also[edit]
TemplateData[edit]
TemplateData for Legend-line
<templatedata> { "params": { "1": { "label": "CSS style", "description": "The CSS style for the legend entry", "example": "2px dashed black", "type": "string", "required": true }, "2": { "label": "Caption", "description": "Text displayed in the entry, next to the line style", "example": "Borders in 1920", "type": "line", "required": true }, "inline": { "type": "string", "label": "inline?", "description": "If 'yes', suppresses new line/line feed", "example": "yes" } }, "description": "Shows a legend entry with a styled line (including color)", "format": "inline" } </templatedata>