Vorlage:Wahldiagramm einfach: Unterschied zwischen den Versionen

Aus HammWiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<div style="float: right; border: 1px solid #ccc; padding: 0 0.8em 0.4em 0.8em; background-color: #fff; width: auto !important; max-width: 100%; margin-left: 20px; margin-bottom: 20px; overflow: auto; overflow-style: move;">
<div class="wahldiagramm">
{{#if:{{{Titel_Wahl|}}}|<p style="font-size: 100%; font-weight: bold; text-align: center; margin: 1em 0 0 0;">{{{Titel_Wahl}}}</p>}}
{{#if:{{{Titel_Wahl|}}}|<p style="font-size: 100%; font-weight: bold; text-align: center; margin: 1em 0 0 0;">{{{Titel_Wahl}}}</p>}}
{{#if:{{{Untertitel|}}}|<p style="font-size: 100%; font-weight: regular; text-align: center; margin: 0;">{{{Untertitel}}}</p>}}
{{#if:{{{Untertitel|}}}|<p style="font-size: 100%; font-weight: regular; text-align: center; margin: 0;">{{{Untertitel}}}</p>}}
Zeile 20: Zeile 20:
{{#if:{{{Partei_X4|}}}|<dd><span style="height:{{#expr: {{DezimalkommaZuPunkt|{{{Partei_X4_Prozent}}}}} * 2 }}%;">{{#ifexpr: {{DezimalkommaZuPunkt|{{{Partei_X4_Prozent|}}}}}>=4|{{{Partei_X4_Prozent}}} %}}</span></dd><dt>{{{Partei_X4}}}{{#ifexpr: {{DezimalkommaZuPunkt|{{{Partei_X4_Prozent|}}}}}<=4|<br/>{{{Partei_X4_Prozent}}} %}}</dt>}}
{{#if:{{{Partei_X4|}}}|<dd><span style="height:{{#expr: {{DezimalkommaZuPunkt|{{{Partei_X4_Prozent}}}}} * 2 }}%;">{{#ifexpr: {{DezimalkommaZuPunkt|{{{Partei_X4_Prozent|}}}}}>=4|{{{Partei_X4_Prozent}}} %}}</span></dd><dt>{{{Partei_X4}}}{{#ifexpr: {{DezimalkommaZuPunkt|{{{Partei_X4_Prozent|}}}}}<=4|<br/>{{{Partei_X4_Prozent}}} %}}</dt>}}
</dl>
</dl>
</div>
</div>
</div>

Version vom 25. Mai 2022, 18:22 Uhr