Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
m ahem
m 1 revision imported
 
(78 intermediate revisions by 48 users not shown)
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><!--
<noinclude>
--><templatestyles src="Legend/styles.css" /><!--
Shows a legend row with a colored box.
--><div class="legend"><!--
  --><span class="legend-color" style="<!--
-->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}}<!--
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!--
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!--
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}"><!--


;Usage:
    -->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>|&nbsp;}}<!--
<nowiki>{{</nowiki>legend|''color''|''label''|border=''border''<nowiki>}}</nowiki>
  --></span><!--


''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.
  -->&nbsp;{{{2|}}}<!--


;Example:
--></div><!--
<nowiki>{{legend|black|Africa}}</nowiki>
--></includeonly><noinclude>
<nowiki>{{legend|green|Americas}}</nowiki>
{{Documentation}}
<nowiki>{{legend|blue|Oceania}}</nowiki>
<nowiki>{{legend|#ff0|Europe}}</nowiki>
<nowiki>{{legend|#ff2800|Asia}}</nowiki>
 
 
<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: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: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:#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:#FF2800;">&emsp;&emsp;</span>&nbsp;Asia</p>
 
[[de:Vorlage:Legende]]
[[pl:Szablon:Legenda]]
[[sr:Шаблон:Легенда]]
</noinclude>
</noinclude>

Latest revision as of 06:28, 6 June 2021