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

Template:Legend inline

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:Legend-inline)
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 26,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
CSSThis template uses TemplateStyles:
  • Template:Legend/styles.css
Shortcut
  • {{Legend2Template:Legend2}}

Contents

  • 1 Description
  • 2 Usage
    • 2.1 Example 1
    • 2.2 Example 2
    • 2.3 Example 3
  • 3 See also

Description

  • Shows a legend with a coloured box.
  • This template differs from Template:Legend only in that it uses display:inline to prevent line breaks after each legend.

Usage

See Template:Legend/doc for usage.

Example 1

That is a {{legend inline|#bfb|size=80%}} green box.

That is a   green box.

Example 2

That is a {{legend inline|#bfb|text=green}} box.

That is a green  box.

Example 3

That is a {{legend inline
|#bfb
|box
|border    = 1px solid red
|textcolor = #00e
|size      = 150%
|text      = _green_}}.

That is a  green  box .

See also

  • For the original version of this template using display:block, see {{Legend}}
  • For legend rows representing lines, see {{legend-line}}
The above documentation is transcluded from Template:Legend inline/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_inline&oldid=1301825022"
Last edited on 21 July 2025, at 22:44

Languages

    • العربية
    • Авар
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Bikol Central
    • Bosanski
    • Буряад
    • Cebuano
    • Cymraeg
    • Dagbanli
    • Dansk
    • الدارجة
    • ཇོང་ཁ
    • Eesti
    • Ελληνικά
    • Euskara
    • فارسی
    • ગુજરાતી
    • 한국어
    • Hausa
    • Հայերեն
    • Hrvatski
    • Ilokano
    • Bahasa Indonesia
    • Íslenska
    • Italiano
    • עברית
    • ქართული
    • Қазақша
    • Kurdî
    • Ladin
    • Latviešu
    • Magyar
    • मैथिली
    • Македонски
    • മലയാളം
    • Malti
    • मराठी
    • مصرى
    • ဘာသာမန်
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • မြန်မာဘာသာ
    • 日本語
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ပအိုဝ်ႏဘာႏသာႏ
    • پښتو
    • ភាសាខ្មែរ
    • Português
    • Română
    • Русский
    • Scots
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Svenska
    • தமிழ்
    • တႆး
    • ไทย
    • Тоҷикӣ
    • Türkçe
    • Українська
    • اردو
    • Tiếng Việt
    • 文言
    • 吴语
    • Yorùbá
    • 粵語
    • 中文
    • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 21 July 2025, at 22:44 (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