Template:Color box: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(Updated from sandbox: synchronizes with other legend templates)
m (30 revisions imported from wikipedia:Template:Color_box)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<templatestyles src="Legend/styles.css" /><!--
<templatestyles src="Legend/styles.css" /><span class="legend-color" style="{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|black|white|css=y}}
}}{{#if:{{{3|}}}|color:{{{3}}};
--><span class="legend-color" style="<!--
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|black|white|css=y}}}}<!--
}}{{#if:{{{border|}}}|border:1px solid {{{border}}};
-->{{#if:{{{3|}}}|color:{{{3}}};}}<!--
}}{{#if:{{{padding|}}}|padding:{{{padding}}};}}">{{#if:{{{2|}}}
-->{{#if:{{{border|}}}|border:1px solid {{{border}}};}}<!--
|{{#if:{{{padding|}}}|{{{2}}}|&nbsp;{{{2}}}&nbsp;}}
|&nbsp;}}</span><noinclude>
-->"><!--
{{documentation}}</noinclude>
-->{{#if:{{{2|}}}|&nbsp;{{{2}}}&nbsp;|&nbsp;}}</span><!--
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 19:24, 17 February 2024