Template:Legend: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Nihiltres
Updated from sandbox to use TemplateStyles
meta>Nihiltres
Updated from sandbox to use Template:Greater color contrast ratio to ensure accessible labels by default
Line 1: Line 1:
<includeonly><templatestyles src="Legend/styles.css" /><div class="legend"><span class="legend-color" style="<!--
<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:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}} <!--
-->{{#if:{{{1|}}}|background-color:{{trim|{{{1}}}}};}} <!--
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!--
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}} <!--
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}} <!--
-->{{#if:{{{size|}}}|font-size:{{{size}}};}} <!--
-->{{#if:{{{size|}}}|font-size:{{{size}}};}} <!--
-->-webkit-column-break-inside: avoid;">{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>|&nbsp;}}</span>&nbsp;{{{2|}}}</div></includeonly><noinclude>
-->-webkit-column-break-inside: avoid;"><!--
{{Documentation}}
-->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>|&nbsp;}}</span><!--
</noinclude>
-->&nbsp;{{{2|}}}</div><!--
--></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 21:43, 31 August 2020