Difference between revisions of "Template:Legend4"

From blackwiki
Jump to navigation Jump to search
imported>Windroff
(Created page with '<includeonly><table class="legend"><tr><td style="vertical-align:text-top;"><span class="legend-color" style="display:inline-block; width:1.5em; height:1.5em; ma...')
 
imported>Windroff
m
Line 1: Line 1:
<includeonly><table class="legend"><tr><td style="vertical-align:text-top;"><span class="legend-color" style="display:inline-block; width:1.5em; height:1.5em; margin:1px 0; border:{{{border|1px solid {{{outline|black}}}}}}; background-color:{{trim|{{{1|transparent}}}}}; color:{{{textcolor|black}}}; font-size:{{{size|100%}}};text-align:center;">{{#if:{{{text|}}}|<span class="legend-text" style="font-size:95%;">{{{text}}}</span>|&nbsp;}}</span></td><td>{{{2|}}}</td></tr></table></includeonly><noinclude>
+
<includeonly><table class="legend" cellspacing="0"><tr><td style="vertical-align:text-top;"><span class="legend-color" style="display:inline-block; width:1.5em; height:1.5em; margin:0px 2px 0px 0px; border:{{{border|1px solid {{{outline|black}}}}}}; background-color:{{trim|{{{1|transparent}}}}}; color:{{{textcolor|black}}}; font-size:{{{size|100%}}}; text-align:left;">{{#if:{{{text|}}}|<span class="legend-text" style="font-size:95%;">{{{text}}}</span>|&nbsp;}}</span></td><td>{{{2|}}}</td></tr></table></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 23:10, 18 October 2014

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

Script error: No such module "Uses TemplateStyles". A version of {{Legend}} that uses indented block formatting via formatting the legend as a small table.

Usage

  • {{Legend4|#ff0000|Example}}
     Example
  • {{Legend4|#0000ff|Foobar|text=Ex|border=1px dashed red}}
    ExFoobar

See also