Format: Infocaseta Persona/Graf: Diferență între versiuni
De la alegeri.md
Linia 2: | Linia 2: | ||
<div style="border-top:1px solid #ddd; border-bottom:1px solid #ddd; position:relative; height:5px; width:100%"> | <div style="border-top:1px solid #ddd; border-bottom:1px solid #ddd; position:relative; height:5px; width:100%"> | ||
<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:#639400; height:3px; position:absolute; width:2 | + | <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> | </div> | ||
</includeonly> | </includeonly> |