Template:Legend: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Szym~enwiki No edit summary |
meta>Zocky border syntax |
||
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;">  </span> {{{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;">  </span> {{{2|}}}</p></includeonly> | ||
<noinclude> | <noinclude> | ||
Shows a legend row with a colored box. | |||
;Usage: | ;Usage: | ||
<nowiki>{{legend|''color''|''label''}}</nowiki> | <nowiki>{{</nowiki>tl|legend|''color''|''label''|border=''border''<nowiki>}}</nowiki> | ||
''color'' is passed to the [[Cascading Style Sheets|css]] background property, so it can also include images. The optional ''border'' argument is passed to the css border property. | |||
;Example: | ;Example: |
Revision as of 11:29, 9 January 2006
Shows a legend row with a colored box.
- Usage
{{tl|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