Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
No edit summary
meta>Hdante
Changed one 'emsp' to a 'nbsp' - see talk page
Line 1: Line 1:
<includeonly><p style="border:none;background:none;text-align:left;font-size:90%!important;margin:0px!important"><span style="border:{{{border|solid 1px silver}}}; background-color:{{{1|none}}};font-size:80%!important;vertical-align:middle;">&emsp;&emsp;</span>&nbsp;{{{2|}}}</p></includeonly>
<includeonly><p style="border:none;background:none;text-align:left;font-size:90%!important;margin:0px!important"><span style="border:{{{border|solid 1px silver}}}; background-color:{{{1|none}}};font-size:80%!important;vertical-align:middle;">&emsp;&nbsp;</span>&nbsp;{{{2|}}}</p></includeonly>
<noinclude>
<noinclude>
Shows a legend row with a colored box.
Shows a legend row with a colored box.
Line 16: Line 16:




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


[[de:Vorlage:Legende]]
[[de:Vorlage:Legende]]

Revision as of 00:32, 20 January 2006


Shows a legend row with a colored box.

Usage
{{legend|color|label|border=border}}

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

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


   Africa

   Americas

   Oceania

   Europe

   Asia

de:Vorlage:Legende es:Plantilla:Legend pl:Szablon:Legenda sr:Шаблон:Легенда