Vorlage:ProzentBalken: Unterschied zwischen den Versionen
(rundung) |
(rundung) |
||
Zeile 4: | Zeile 4: | ||
{| cellspacing="0" style="width: 100%;" | {| cellspacing="0" style="width: 100%;" | ||
|- style="outline: 1px solid black; height: 10px; font-size: 8px; text-align: center;" | |- style="outline: 1px solid black; height: 10px; font-size: 8px; text-align: center;" | ||
− | | style="{{#ifexpr:{{{OK|0}}} = {{{STIMMANTEIL|0}}} | display: none; | {{#ifexpr:{{{OK|0}}} >= 100 | display: none; | {{#ifexpr:{{{STIMMANTEIL|0}}} >= 100 || width: {{#expr:(({{{STIMMANTEIL|0}}}-{{{OK|0}}})*10) round 2}}%;}}}}}} background-color:#ff8800; padding: 0;"| {{#ifexpr:{{{STIMMANTEIL|0}}} < 100 | {{#expr:({{{STIMMANTEIL|0}}}) round | + | | style="{{#ifexpr:{{{OK|0}}} = {{{STIMMANTEIL|0}}} | display: none; | {{#ifexpr:{{{OK|0}}} >= 100 | display: none; | {{#ifexpr:{{{STIMMANTEIL|0}}} >= 100 || width: {{#expr:(({{{STIMMANTEIL|0}}}-{{{OK|0}}})*10) round 2}}%;}}}}}} background-color:#ff8800; padding: 0;"| {{#ifexpr:{{{STIMMANTEIL|0}}} < 100 | {{#expr:({{{STIMMANTEIL|0}}}) round 2}} % |}} |
− | | style="{{#ifexpr:{{{STIMMANTEIL|0}}} >= 100 | display: none; | width: {{#expr:(100-({{{STIMMANTEIL|0}}}*10)) round | + | | style="{{#ifexpr:{{{STIMMANTEIL|0}}} >= 100 | display: none; | width: {{#expr:(100-({{{STIMMANTEIL|0}}}*10)) round 2}}%;}} background-color: #dddddd; padding: 0; overflow: visible;"| |
|} | |} | ||
{| style="font-size:65%; width: 100%;" | {| style="font-size:65%; width: 100%;" |
Aktuelle Version vom 24. März 2010, 18:46 Uhr
Prozentanteil PIRATEN in diesem Wahlkreis |
Endergebnis: 0% |
Verwendung
Dies ist eine Vorlage, gefüllt wird sie per
{{ProzentBalken |STIMMANTEIL = z.B. 4.23 erhaltene Stimmen in % }}