Template:Color box striped: Difference between revisions
From Vigyanwiki
m (1 revision imported) |
(Created page with "<templatestyles src="Legend/styles.css" /><span class="legend-color" style="background:repeating-linear-gradient({{{degrees|-45}}}deg, {{{1|}}} 0 {{#expr:2^{{{stripe|1}}}}}px,...") |
||
Line 1: | Line 1: | ||
<templatestyles src="Legend/styles.css" /><span class="legend-color" style="background: | <templatestyles src="Legend/styles.css" /><span class="legend-color" style="background:repeating-linear-gradient({{{degrees|-45}}}deg, {{{1|}}} 0 {{#expr:2^{{{stripe|1}}}}}px, {{#if:{{{2|}}}|{{{2}}}|white}} 0 {{#expr:2*2^{{{stripe|1}}}}}px); border:1px solid {{{border|#000000}}}; text-align:center; color:{{#if:{{{4|}}}|{{{4}}}|{{greater color contrast ratio|{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2}}}|{{!}}white}}|black|white}}}};"> {{#if:{{{3|}}}| {{{3}}} | }}</span><noinclude> | ||
<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 11:48, 12 August 2023
Template documentation
[create]