Difference between revisions of "Template:Legend-line"

From blackwiki
Jump to navigation Jump to search
imported>Davewild
m (Reverted edits by 69.64.32.38 (talk) to last version by 98.210.221.180)
imported>Kralizec!
m (Protected Template:Legend-line: Excessive vandalism ([edit=autoconfirmed] (expires 13:31, 29 December 2008 (UTC)) [move=autoconfirmed] (expires 13:31, 29 December 2008 (UTC))))
(No difference)

Revision as of 13:31, 26 December 2008

Template documentation[view] [edit] [history] [purge]

Script error: No such module "Uses TemplateStyles".

Usage

Shows a legend row with a colored line.

Example

                     Borders in 1914                      Borders in 1920

{{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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Legend-line

Shows a legend entry with a styled line (including color)

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
CSS style1

The CSS style for the legend entry

Example
2px dashed black
Stringrequired
Caption2

Text displayed in the entry, next to the line style

Example
Borders in 1920
Linerequired
inline?inline

If 'yes', suppresses new line/line feed

Example
yes
Stringoptional