Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Zocky
making the box the same size with and without the border, hopefully. will update the documentation immediately. may mess with some pages where border is set, but hopefully it's all handled gracefully
m 1 revision imported
 
(21 intermediate revisions by 13 users not shown)
Line 1: Line 1:
<includeonly><span style="margin:0px; font-size:85%; display:block;"><span style="border:solid 1px {{{border|{{{1|none}}}}}; background-color:{{{1|none}}}; color:{{{1|none}}};">&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;{{{2|}}}</span></includeonly><noinclude>
<includeonly><!--
--><templatestyles src="Legend/styles.css" /><!--
--><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}}};}}"><!--


{{template doc}}
    -->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>|&nbsp;}}<!--
  --></span><!--
 
  -->&nbsp;{{{2|}}}<!--
 
--></div><!--
--></includeonly><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 06:28, 6 June 2021