Template:Color box: Difference between revisions
From Research Realm
(Created page with "<span style="background-color:{{{1|}}}; color:{{#if:{{{3|}}}|{{{3}}}|{{greater color contrast ratio|{{{1|}}}|black|white}}}}; border:1px solid {{{border|#000000}}}; text-align:center;">{{#if:{{{2|}}}| {{{2}}} | }}</span>") |
(Undo revision 494 by Ringtail Raider (talk)) Tag: Undo |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span | <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:{{{border|}}}|border:1px solid {{{border}}}; | |||
}}{{#if:{{{padding|}}}|padding:{{{padding}}};}}">{{#if:{{{2|}}} | |||
|{{#if:{{{padding|}}}|{{{2}}}| {{{2}}} }} | |||
| }}</span><noinclude> | |||
{{documentation}}</noinclude> |