Vorlage:Artikeltest/rgb: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
WiMu (Diskussion | Beiträge) K (+ Kat, + Erklärung) |
WiMu (Diskussion | Beiträge) K (+ , -> .) |
||
Zeile 1: | Zeile 1: | ||
− | {{#vardefine: r | (10 - {{{1|0}}}) * 10 round 0}}{{#vardefine: g | {{{1|0}}} * 10 round 0}}{{#iferror: {{#expr: {{#var:r}} }} | (100%, 0%, 0%) | ({{#expr: {{#var:r}} }}%, {{#expr: {{#var:g}} }}%, 0%) }}<noinclude> | + | {{#vardefine: r | (10 - {{#replace:{{{1|0}}}|,|.}}) * 10 round 0}}{{#vardefine: g | {{#replace:{{{1|0}}}|,|.}} * 10 round 0}}{{#iferror: {{#expr: {{#var:r}} }} | (100%, 0%, 0%) | ({{#expr: {{#var:r}} }}%, {{#expr: {{#var:g}} }}%, 0%) }}<noinclude> |
---- | ---- |