Difference between revisions of "Template:Legend2"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(doc template)
imported>Stifle
(syncing with sandbox per editprotected request)
Line 1: Line 1:
<span style="margin:0px; font-size:90%;"><span style="border:{{{border|none}}}; background-color:{{{1|none}}}; color:{{{1|none}}};">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;{{{2|}}}</span><noinclude>
+
<span style="margin:0px; font-size:90%;"><span style="border:{{{border|none}}}; background-color:{{{1|none}}}; color:{{{textcolor|black}}};">{{#if:{{{text|}}}|<span class="legend-text" style="font-size:95%;">&nbsp;{{{text}}}&nbsp;</span>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}}</span>&nbsp;{{{2|}}}</span><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:11, 23 December 2011

      

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