• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Legend-line

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Legend/styles.css

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

  • Template:Legend

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)

Template parameters[Edit template data]

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
The above documentation is transcluded from Template:Legend-line/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Legend-line&oldid=1099731746"
Last edited on 22 July 2022, at 08:55

Languages

    • Afrikaans
    • العربية
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • Беларуская
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Български
    • Català
    • Čeština
    • Cymraeg
    • Dagbanli
    • Dansk
    • Deutsch
    • Eesti
    • Ελληνικά
    • Español
    • فارسی
    • Føroyskt
    • Français
    • Galego
    • 한국어
    • Հայերեն
    • हिन्दी
    • Hornjoserbsce
    • Hrvatski
    • Bahasa Indonesia
    • Íslenska
    • Italiano
    • Jawa
    • ქართული
    • Қазақша
    • Kurdî
    • Македонски
    • മലയാളം
    • مصرى
    • Bahasa Melayu
    • Монгол
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • नेपाल भाषा
    • 日本語
    • Napulitano
    • Нохчийн
    • Nordfriisk
    • Norsk bokmål
    • Occitan
    • Олык марий
    • ਪੰਜਾਬੀ
    • ပအိုဝ်ႏဘာႏသာႏ
    • پښتو
    • ភាសាខ្មែរ
    • Português
    • Română
    • Русский
    • Scots
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Suomi
    • Svenska
    • தமிழ்
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Українська
    • اردو
    • Vèneto
    • Vepsän kel’
    • Tiếng Việt
    • 粵語
    • 中文
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 22 July 2022, at 08:55 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop