Template:Color box striped: Difference between revisions
From Vigyanwiki
No edit summary |
m (1 revision imported from alpha:Template:Color_box_striped) |
||
(2 intermediate revisions by 2 users not shown) | |||
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> |
Latest revision as of 10:09, 1 December 2023
Template documentation
[create]