Unterstütze uns! Spende jetzt!

Vorlage:ProzentBalken: Unterschied zwischen den Versionen

Aus PiratenWiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
(rundung)
 
(5 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
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 1}} % |}}
| 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 2}}%;}} background-color: #dddddd; padding: 0; overflow: visible;"|
| 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%;"
| style="text-align: right;"| Vorläufiges&nbsp;Endergebnis:&nbsp;<big>'''{{{STIMMANTEIL|0}}}%'''</big>
| style="text-align: right;"| Endergebnis:&nbsp;<big>'''{{{STIMMANTEIL|0}}}%'''</big>
|}
|}
<noinclude>
<noinclude>
== Verwendung ==
== Verwendung ==
Dies ist eine [[Vorlage]], gefüllt wird sie per
Dies ist eine Vorlage, gefüllt wird sie per


  <nowiki>{{ProzentBalken</nowiki>
  <nowiki>{{ProzentBalken</nowiki>
Zeile 18: Zeile 18:
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>


Sollte eigentlich funktionieren wer [http://wiki.piratenpartei.de/Vorlage:Sammelbalken/Wahlkreisauswertung] - woran liegts? [[Benutzer:RicoB CB|RicoB_CB]] 10:21, 28. Sep. 2009 (CEST)
[[Kategorie:Vorlage]]
 
</noinclude>
</noinclude>

Aktuelle Version vom 24. März 2010, 16:46 Uhr

Prozentanteil PIRATEN in diesem Wahlkreis
0 %
Endergebnis: 0%

Verwendung

Dies ist eine Vorlage, gefüllt wird sie per

{{ProzentBalken
|STIMMANTEIL          = z.B. 4.23 erhaltene Stimmen in %
}}