Template:Legend-line/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} {{Uses TemplateStyles|Template:Legend/styles.css}} == Usage == Shows a legend row with a colored line. <nowiki>{{</nowiki>legend-line|''line type''|''label''<nowiki>}}</nowiki> ''line type'' is passed to the css border property, and can include properties like <code>solid</code>, <code>dotted</code>, <code>dashed</code>, <code>double</code>, etc. ;Examples: {{legend-line|black solid 2px|Borders in 1914}} {{legend-..." |
(No difference)
|
Latest revision as of 11:23, 17 February 2025
This is a documentation subpage for Template:Legend-line. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
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
Borders in 1914
Borders in 1920
Borders in 1926
Borders in 1932
Borders in 1938
{{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
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Legend-line in articles based on its TemplateData.
TemplateData for Legend-line
Shows a legend entry with a styled line (including color)
Parameter | Description | Type | Status | |
---|---|---|---|---|
CSS style | 1 | The CSS style for the legend entry
| String | required |
Caption | 2 | Text displayed in the entry, next to the line style
| Line | required |
inline? | inline | If 'yes', suppresses new line/line feed
| String | optional |