Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
really improving
m 1 revision imported
 
(89 intermediate revisions by 50 users not shown)
Line 1: Line 1:
<includeonly><div style="border:none;background:none;text-align:left"><span style="border:{{{border|solid 1px silver}}}; background-color:{{{1|none}}};font-size:70%;vertical-align:middle;">&emsp;&emsp;</span>&nbsp;{{{2|}}}</div></includeonly>
<includeonly><!--
<noinclude>
--><templatestyles src="Legend/styles.css" /><!--
Show 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>{{legend|''color''|''label''}}</nowiki>
  --></span><!--
''color'' is passed to the [[Cascading Style Sheets|css]] background property, so it can also include images.


  -->&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>
 
 
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:black;">&emsp;&emsp;</span>&nbsp;Africa</div>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:green">&emsp;&emsp;</span>&nbsp;Americas</div>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:blue">&emsp;&emsp;</span>&nbsp;Oceania</div>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:#ff0">&emsp;&emsp;</span>&nbsp;Europe</div>
<div><span style="border:solid 1px silver; font-size:70%;vertical-align:middle; background-color:#ff2800">&emsp;&emsp;</span>&nbsp;Asia</div>
 
[[de:Vorlage:Legende]]
</noinclude>
</noinclude>

Latest revision as of 06:28, 6 June 2021