Template:Legend inline/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} {{High-use}} {{Uses TemplateStyles|Template:Legend/styles.css}} {{Template shortcut|Legend2}} ==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 === <pre>That is a {{legend inline|#bfb|size=80%}} green box.</pre> That is a {{legend inline|#bf..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Uses TemplateStyles|Template:Legend/styles.css}} | {{Uses TemplateStyles|Template:Legend/styles.css}} | ||
{{Template shortcut|Legend2}} | {{Template shortcut|Legend2}} |
Latest revision as of 10:05, 17 February 2025
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. |
This template uses TemplateStyles: |
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}}