Template:Legend-line/doc
This is a documentation subpage for Template:Legend-line. It contains usage information, categories and other content that is not part of the original template page. |
Lua error in package.lua at line 80: module 'Module:Uses TemplateStyles/config' not found.
Usage
Shows a legend row with a colored line.
{{legend-line|line type|label}}
line type is passed to the css border property, and can include properties like solid
, dotted
, dashed
, double
, etc.
- Examples
{{legend-line|black solid 2px|Borders in 1914}} {{legend-line|red dotted 2px|Borders in 1920}} {{legend-line|green dashed 2px|Borders in 1926}} {{legend-line|orange groove 6px|Borders in 1932}} {{legend-line|blueviolet double 6px|Borders in 1938}}
Inline: Borders in 1914 Borders in 1920 Borders in 1926
{{legend-line|black solid 2px|Borders in 1914|inline=yes}} {{legend-line|red dotted 2px|Borders in 1920|inline=yes}} {{legend-line|green dashed 2px|Borders in 1926|inline=yes}}
See also
TemplateData
<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>