Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>XJaM
m (+sl:)
meta>Ed g2s
No edit summary
Line 1: Line 1:
<onlyinclude><p style="margin:0px;font-size:90%"><span style="border:{{{border|none}}};background-color:{{{1|none}}};color:{{{1|none}}};">██</span>&nbsp;{{{2|}}}</p></onlyinclude>
<div style="margin:0px;font-size:90%"><span style="border:{{{border|none}}};background-color:{{{1|none}}};color:{{{1|none}}};">██</span>&nbsp;{{{2|}}}</div><noinclude>
<!-- You are advised to read the talk page before changing this template. -->
<!-- You are advised to read the talk page before changing this template. -->
Shows a legend row with a colored box.
Shows a legend row with a colored box.
Line 15: Line 15:
  <nowiki>{{legend|#ff2800|Asia}}</nowiki>
  <nowiki>{{legend|#ff2800|Asia}}</nowiki>


 
{{legend|black|Africa}}
<p style="margin:0px;font-size:90%"><span style="border:none;color:black;background-color:black">mm</span>&nbsp;Africa</p>
{{legend|green|Americas}}
<p style="margin:0px;font-size:90%"><span style="border:none;color:green;background-color:green">mm</span>&nbsp;Americas</p>
{{legend|blue|Oceania}}
<p style="margin:0px;font-size:90%"><span style="border:none;color:blue;background-color:blue">mm</span>&nbsp;Oceania</p>
{{legend|#ff0|Europe}}
<p style="margin:0px;font-size:90%"><span style="border:none;color:#FF0;background-color:#FF0">mm</span>&nbsp;Europe</p>
{{legend|#ff2800|Asia}}
<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}}.
For legends involving lines on a map, see {{tl|legend-line}}.
Line 41: Line 39:
[[vi:Tiêu bản:Legend]]
[[vi:Tiêu bản:Legend]]
[[zh:Template:Legend]]
[[zh:Template:Legend]]
</noinclude>

Revision as of 11:20, 28 June 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

For legends involving lines on a map, see {{legend-line}}.

ca:Template:Llegenda cy:Nodyn:Legend de:Vorlage:Legende es:Plantilla:Legend fr:Modèle:Légende ka:თარგი:ლეგენდა ko:Template:범례 hu:Sablon:Jelmagyarázat pl:Szablon:Legenda ru:Шаблон:Легенда sl:Predloga:Legenda sr:Шаблон:Легенда vi:Tiêu bản:Legend zh:Template:Legend