Vorlage:Betrag: Unterschied zwischen den Versionen

Aus Nerds Go Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
<includeonly><div style="text-align: right; color:red;">{{{1}}} €</div></includeonly>
+
<includeonly>{{#ifexpr: {{#replace:{{{1}}}|,|.}} >= 0 | <div style="text-align:right; color:green;">{{#replace:{{#number_format:{{#replace:{{{1}}}|,|.}}|2|,|.}}|,00|,-}} €</div> | <div style="text-align:right; color:red;">{{#replace:{{#number_format:{{#replace:{{{1}}}|,|.}}|2|,|.}}|,00|,-}} €</div>}}</includeonly>

Version vom 2. Februar 2023, 12:54 Uhr