Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
rv
meta>Zocky
see if this is better
Line 1: Line 1:
<includeonly><div style="border:none;background:none;text-align:left"><span style="border:{{{border|solid 1px silver}}}; background-color:{{{1|none}}};font-size:70%;vertical-align:middle;">&emsp;&emsp;</span>&nbsp;{{{2|}}}</div></includeonly>
<includeonly><p style="border:none;background:none;text-align:left;text-size:90%;margin:0px"><span style="border:{{{border|solid 1px silver}}}; background-color:{{{1|none}}};font-size:80%;vertical-align:middle;">&emsp;&emsp;</span>&nbsp;{{{2|}}}</p>
</includeonly>
<noinclude>
<noinclude>
Show a legend row with a colored box.
Show a legend row with a colored box.
Line 16: Line 17:




<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:black;">&emsp;&emsp;</span>&nbsp;Africa</div>
<p style="margin:0px;font-size:90%"><span style="border:solid 1px silver; font-size:80%;vertical-align:middle; background-color:black;">&emsp;&emsp;</span>&nbsp;Africa</p>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:green">&emsp;&emsp;</span>&nbsp;Americas</div>
<p style="margin:0px;font-size:90%"><span style="border:solid 1px silver; font-size:80%;vertical-align:middle; background-color:green;">&emsp;&emsp;</span>&nbsp;Americas</p>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:blue">&emsp;&emsp;</span>&nbsp;Oceania</div>
<p style="margin:0px;font-size:90%"><span style="border:solid 1px silver; font-size:80%;vertical-align:middle; background-color:blue;">&emsp;&emsp;</span>&nbsp;Oceania</p>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:#ff0">&emsp;&emsp;</span>&nbsp;Europe</div>
<p style="margin:0px;font-size:90%"><span style="border:solid 1px silver; font-size:80%;vertical-align:middle; background-color:#FF0;">&emsp;&emsp;</span>&nbsp;Europe</p>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:#ff2800">&emsp;&emsp;</span>&nbsp;Asia</div>
<p style="margin:0px;font-size:90%"><span style="border:solid 1px silver; font-size:80%;vertical-align:middle; background-color:#FF2800;">&emsp;&emsp;</span>&nbsp;Asia</p>


[[de:Vorlage:Legende]]
[[de:Vorlage:Legende]]
</noinclude>
</noinclude>

Revision as of 15:10, 16 December 2005


Show a legend row with a colored box.

Usage
{{legend|''color''|''label''}}

color is passed to the css background property, so it can also include images.


Example
{{legend|black|Africa}}
{{legend|green|Americas}}
{{legend|blue|Oceania}}
{{legend|#ff0|Europe}}
{{legend|#ff2800|Asia}}


   Africa

   Americas

   Oceania

   Europe

   Asia

de:Vorlage:Legende