Format: Infocaseta Persona/Graf: Diferență între versiuni
De la alegeri.md
Linia 3: | Linia 3: | ||
{{#ifexpr:{{{3}}} = 2 | | {{#ifexpr:{{{3}}} = 2 | | ||
<div style="background:#ccc; height:3px; position:absolute; width:{{Cifra|{{#expr: ({{#expr:({{{7}}} - {{{5}}})*12 + ({{{6}}} - {{{4}}}) +1}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; left:{{Cifra|{{#expr: ({{#expr:({{{5}}} - {{{2}}})*12 + ({{{4}}} - {{{1}}})}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; z-index:7"></div> | <div style="background:#ccc; height:3px; position:absolute; width:{{Cifra|{{#expr: ({{#expr:({{{7}}} - {{{5}}})*12 + ({{{6}}} - {{{4}}}) +1}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; left:{{Cifra|{{#expr: ({{#expr:({{{5}}} - {{{2}}})*12 + ({{{4}}} - {{{1}}})}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; z-index:7"></div> | ||
− | <div style="background:#{{#ifexpr:{{{12}}} > 0 | 639400 | ccc}}; height:3px; position:absolute; width:{{Cifra|{{#expr: ({{#expr:({{{11}}} - {{{9}}})*12 + ({{{10}}} - {{{8}}}) +1}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; left:{{Cifra|{{#expr: ({{#expr:({{{9}}} - {{{2}}})*12 + ({{{8}}} - {{{1}}})}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; z-index:7"></div> | + | <div style="background:#{{#ifexpr:{{{12}}} > 0 | 639400 | ccc}}; height:3px; position:absolute; width:{{Cifra|{{#expr: ({{#expr:({{{11}}} - {{{9}}})*12 + ({{{10}}} - {{{8}}}) +1}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; left:{{Cifra|{{#expr: ({{#expr:({{{9}}} - {{{2}}})*12 + ({{{8}}} - {{{1}}})}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; z-index:7"></div> | |
+ | <div style="background:#{{#ifexpr:{{{8}}} > 0 | 639400 | ccc}}; height:3px; position:absolute; width:{{Cifra|{{#expr: ({{#expr:({{{7}}} - {{{5}}})*12 + ({{{6}}} - {{{4}}}) +1}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; left:{{Cifra|{{#expr: ({{#expr:({{{5}}} - {{{2}}})*12 + ({{{4}}} - {{{1}}})}}) / ({{#expr:({{#time:Y}} - {{{2}}})*12 + ({{#time:n}} - {{{1}}}) +1}}) * 100}}|1}}%; z-index:7"></div> | ||
}} | }} | ||
</div> | </div> | ||
</includeonly> | </includeonly> |