Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
let's see if this helps outside image captions
m 1 revision imported
 
(85 intermediate revisions by 50 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%;vertical-align:middle;">&emsp;&emsp;</span>&nbsp;{{{2|}}}</p>
<includeonly><!--
</includeonly>
--><templatestyles src="Legend/styles.css" /><!--
<noinclude>
--><div class="legend"><!--
Show a legend row with a colored box.
  --><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>
 
 
<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]]
</noinclude>
</noinclude>

Latest revision as of 06:28, 6 June 2021