Difference between revisions of "Template:Legend inline"

From blackwiki
Jump to navigation Jump to search
imported>Nihiltres
(Updated from sandbox to use TemplateStyles)
imported>Nihiltres
(Removed font-size on legend-text: migrated into TemplateStyles sheet)
Line 4: Line 4:
 
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}} <!--
 
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}} <!--
 
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}<!--
 
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}<!--
-->">{{#if:{{{text|}}}|<span class="legend-text" style="font-size:95%;">{{{text}}}</span>|&nbsp;}}</span>&nbsp;{{{2|}}}</span></includeonly><noinclude>
+
-->">{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>|&nbsp;}}</span>&nbsp;{{{2|}}}</span></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:06, 31 August 2020

Template documentation[view] [edit] [history] [purge]

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}}