Template:Legend: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(more tweaks)
(Giving up for now... main.css needs to be changed)
Line 1:
<onlyinclude><divp style="margin:0px!important;font-size:90%!important"><span style="border:{{{border|none}}};paddingbackground-leftcolor:2.2em!important{{{1|none}}};color:{{{1|none}}};">██</span>&nbsp;{{{2|}}}</p></onlyinclude>
<div style="float:left; height:1.2em; width:1.6em; background:{{{1|none}}}; border:{{{border|solid silver 1px}}};margin-left:-2.2em"/>{{{2|}}}</div></onlyinclude>
<!-- You are advised to read the talk page before changing this template. -->
Shows a legend row with a colored box.
Line 17 ⟶ 16:
 
 
<p style="margin:0px;font-size:90%"><span style="border:none;color:black;background-color:black">mm</span>&nbsp;Africa</p>
<div style="float:left; height:0.8em; width:1.2em; background:black; border:solid silver 1px;clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Africa</p>
<divp style="floatmargin:left0px; height:0.8em; width:1.2em; background:green; border:solid silver 1px;clear:both;marginfont-topsize:0.2em90%"/><pspan style="marginborder:0pxnone;font-sizecolor:90%green;marginbackground-leftcolor:1.8em;green">mm</span>&nbsp;Americas</p>
<p style="margin:0px;font-size:90%"><span style="border:none;color:blue;background-color:blue">mm</span>&nbsp;Oceania</p>
<div style="float:left; height:0.8em; width:1.2em; background:blue; border:solid silver 1px; clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Oceania</p>
<p style="margin:0px;font-size:90%"><span style="border:none;color:#FF0;background-color:#FF0">mm</span>&nbsp;Europe</p>
<div style="float:left; height:0.8em; width:1.2em; background:#ff0; border:solid silver 1px; clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Europe</p>
<p style="margin:0px;font-size:90%"><span style="border:none;color:#FF2800;background-color:#FF2280">mm</span>&nbsp;Asia</p>
<div style="float:left; height:0.8em; width:1.2em; background:#ff2800; border:solid silver 1px; clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">Asia</p>
 
 
For legends involving lines on a map, see {{tl|legend-line}}.