Difference between revisions of "Template:Legend inline"
Jump to navigation
Jump to search
imported>DePiep (use param font-size-all, to differentiate from earlier font-size option to prevent stacking % in tables) |
imported>DePiep m |
||
| Line 1: | Line 1: | ||
| − | <includeonly><span style="display:inline-block; width:1.5em; height:1.5em; margin:1px 0; border:{{{border|1px solid {{{outline|black}}}}}}; background-color:{{{1|transparent}}}; color:{{{textcolor|black}}}; font-size:{{{font-size-all|{{{size|100%}}}}}}; text-align:center;">{{#if:{{{text|}}}|<span style="font-size:{{{font-size-all|95%}}};">{{{text}}}</span>| }}</span><span style="{{{font-size-all|100%}}};"> {{{2|}}}</span><!-- | + | <includeonly><span style="display:inline-block; width:1.5em; height:1.5em; margin:1px 0; border:{{{border|1px solid {{{outline|black}}}}}}; background-color:{{{1|transparent}}}; color:{{{textcolor|black}}}; font-size:{{{font-size-all|{{{size|100%}}}}}}; text-align:center;">{{#if:{{{text|}}}|<span style="font-size:{{{font-size-all|95%}}};">{{{text}}}</span>| }}</span><span style="font-size:{{{font-size-all|100%}}};"> {{{2|}}}</span><!-- |
-->{{#if:{{{size|}}}|[[Category:Pages that use a Legend template and need attention|inline, {{PAGENAME}}]]}}</includeonly><noinclude> | -->{{#if:{{{size|}}}|[[Category:Pages that use a Legend template and need attention|inline, {{PAGENAME}}]]}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 11:37, 9 January 2013
Script error: No such module "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.
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. Please add categories to the /doc subpage. Subpages of this template. |