Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
mNo edit summary
m 1 revision imported
 
(96 intermediate revisions by 53 users not shown)
Line 1: Line 1:
<includeonly><div style="border:none;background:none;text-align:left"><span style="border:solid 1px silver; background:{{{1|none}}}">&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 [[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; background:black;">&emsp;</span>&nbsp;Africa</div>
<div><span style="border:solid 1px silver; background:green">&emsp;</span>&nbsp;Americas</div>
<div><span style="border:solid 1px silver; background:blue">&emsp;</span>&nbsp;Oceania</div>
<div><span style="border:solid 1px silver; background:#ff0">&emsp;</span>&nbsp;Europe</div>
<div><span style="border:solid 1px silver; background:#ff2800">&emsp;</span>&nbsp;Asia</div>
</noinclude>
</noinclude>

Latest revision as of 06:28, 6 June 2021