Template:Legend: Difference between revisions

m
this should now work for everybody with a css capable browser + making multiline labels work + return of the grey line to make light legend boxes visible
(+ hu:)
m (this should now work for everybody with a css capable browser + making multiline labels work + return of the grey line to make light legend boxes visible)
Line 1:
<onlyinclude><pdiv style="marginfloat:0pxleft;font-size height:90%"><span0.8em; style="borderwidth:{{{border|none}}}1.2em; background-color:{{{1|none}}};color border:{{{1border|nonesolid silver 1px}}};clear:both;margin-top:0.2em">██</span>&nbsp<p style="margin:0px;font-size:90%;margin-left:1.8em;">{{{2|label}}}</p></onlyinclude>
<!-- You are advised to read the talk page before changing this template. -->
Shows a legend row with a colored box.
Line 16:
 
 
<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>
<p style="margin:0px;font-size:90%"><span style="border:none;color:black;background-color:black">mm</span>&nbsp;Africa</p>
<pdiv style="marginfloat:0pxleft;font height:0.8em; width:1.2em; background:green; border:solid silver 1px;clear:both;margin-sizetop:90%0.2em"/><spanp style="bordermargin:none0px;colorfont-size:green90%;backgroundmargin-colorleft:green1.8em;">mm</span>&nbsp;Americas</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:blue;background-color:blue">mm</span>&nbsp;Oceania</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:#FF0;background-color:#FF0">mm</span>&nbsp;Europe</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>
<p style="margin:0px;font-size:90%"><span style="border:none;color:#FF2800;background-color:#FF2280">mm</span>&nbsp;Asia</p>
 
 
For legends involving lines on a map, see {{tl|legend-line}}.
Anonymous user