Template:Legend inline/doc
Jump to navigation
Jump to search
| icon | This is a documentation subpage for Template:Legend inline. It may contain usage information, categories and other content that is not part of the original template page. |
| Warning | This template is used on approximately 27,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. |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Description
[edit source]- 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
[edit source]See Template:Legend/doc for usage.
Example 1
[edit source]That is a {{legend inline|#bfb|size=80%}} green box.
That is a green box.
Example 2
[edit source]That is a {{legend inline|#bfb|text=green}} box.
That is a green box.
Example 3
[edit source]That is a {{legend inline
|#bfb
|box
|border = 1px solid red
|textcolor = #00e
|size = 150%
|text = _green_}}.
That is a green box .
See also
[edit source]- For the original version of this template using display:block, see {{Legend}}
- For legend rows representing lines, see {{legend-line}}