Jump to content
Main menu
Navigation
●Main page
●Contents
●Current events
●Random article
●About Wikipedia
●Contact us
●Donate
Contribute
●Help
●Learn to edit
●Community portal
●Recent changes
●Upload file
Search
●Create account
●Log in
●Create account
● Log in
Pages for logged out editors learn more
●Contributions
●Talk
(Top)
1
Description
2
Usage
2.1
Example 1
2.2
Example 2
2.3
Example 3
3
See also
Template:Legend inline
●العربية
●Авар
●تۆرکجه
●Basa Bali
●বাংলা
●閩南語 / Bân-lâm-gú
●Беларуская (тарашкевіца)
●भोजपुरी
●Bikol Central
●Bosanski
●Буряад
●Cebuano
●Cymraeg
●Dagbanli
●Dansk
●الدارجة
●Eesti
●Ελληνικά
●Euskara
●فارسی
●ગુજરાતી
●한국어
●Հայերեն
●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á
●粵語
●中文
Edit links
●Template
●Talk
●Read
●View source
●View history
Tools
Actions
●Read
●View source
●View history
General
●What links here
●Related changes
●Upload file
●Special pages
●Permanent link
●Page information
●Get shortened URL
●Download QR code
●Wikidata item
Print/export
●Download as PDF
●Printable version
In other projects
●Meta-Wiki
Appearance
From Wikipedia, the free encyclopedia
(Redirected from Template:Legend2)
-
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}}
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Legend_inline&oldid=1186521061"
Categories:
●Templates using TemplateStyles
●Legend templates
Hidden category:
●Wikipedia template-protected templates
●This page was last edited on 23 November 2023, at 18:59 (UTC).
●Text is available under the Creative Commons Attribution-ShareAlike License 4.0;
additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
●Privacy policy
●About Wikipedia
●Disclaimers
●Contact Wikipedia
●Code of Conduct
●Developers
●Statistics
●Cookie statement
●Mobile view