De Wiki @ Brest
Ligne 4 : | Ligne 4 : | ||
| | | | ||
{|style="border: 1px solid gray" cellspacing=1 width=100% height=15x | {|style="border: 1px solid gray" cellspacing=1 width=100% height=15x | ||
− | {{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background-color: #14E512; | + | {{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background-color: #14E512;background: -webkit-gradient(linear, left center, right center, from(#9A0B0B), to(#14E512), color-stop(.5,#DFDE15));background: -moz-linear-gradient(left, #9A0B0B 0%, #DFDE15 50%, #14E512 100%); height:5px; width: {{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}%}}"{{!}} }} |
− | background: -webkit-gradient(linear, left center, right center, from(#9A0B0B), to(#14E512), color-stop(.5,#DFDE15)); | + | |
− | background: -moz-linear-gradient(left, #9A0B0B 0%, #DFDE15 50%, #14E512 100%); height:5px; width: {{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}round 1}}|0}}%}}"{{!}} }} | + | |
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }} | {{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|100}}}}}|0}}|100|| {{!}}style="background: #E2E2E2;" {{!}} }} | ||
|} | |} | ||
|}</includeonly><noinclude>{{TemplateDoc}}[[Category:Template]]</noinclude> | |}</includeonly><noinclude>{{TemplateDoc}}[[Category:Template]]</noinclude> |
Version du 27 juin 2013 à 18:16
[edit]
|