Template:Color box: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(Update from sandbox; this allows custom padding to be specified, and if so does not add   to text.)
(per edit request on talk page - TfD notice)
Line 1: Line 1:
<noinclude>{{Template for discussion/dated|action=|page=Color box|otherpage=|link=Wikipedia:Templates for discussion/Log/2022 October 6#Template:Color box|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}
<templatestyles src="Legend/styles.css" /><span class="legend-color" style="{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|black|white|css=y}}
</noinclude><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}}};
}}{{#if:{{{3|}}}|color:{{{3}}};
}}{{#if:{{{border|}}}|border:1px solid {{{border}}};
}}{{#if:{{{border|}}}|border:1px solid {{{border}}};

Revision as of 04:25, 6 October 2022

Template:Template for discussion/dated