Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
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
meta>Zocky
mNo edit summary
Line 1: Line 1:
<onlyinclude><div style="float:left; height:0.8em; width:1.2em; background:{{{1|none}}}; border:{{{border|solid silver 1px}}};clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">{{{2|label}}}</p></onlyinclude>
<includeonly><div style="float:left; height:0.8em; width:1.2em; background:{{{1|none}}}; border:{{{border|solid silver 1px}}};clear:both;margin-top:0.2em"/><p style="margin:0px;font-size:90%;margin-left:1.8em;">{{{2|}}}</p></includeonly>
<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 31: Line 32:
[[sr:Шаблон:Легенда]]
[[sr:Шаблон:Легенда]]
[[vi:Tiêu bản:Legend]]
[[vi:Tiêu bản:Legend]]
</noinclude>

Revision as of 15:35, 3 February 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}}