Author: WIKImaniac
Description:
According to the wiki's default locale settings in de.wikipedia.org the magic word "formatnum" leads to replacing "." by ",", e.g. {{formatnum:1.2}} results in "1,2".
If a template with some parameters is called and the result of this template should be formatted via "formatnum" a parser error occurs. This happends because the parameters contain "," and the parser expects to receive ".".
example:
{{formatnum: {{sum|1.2|3.4}} }}
- step of incorrect evalutation:
{{sum|1,2|3,4}}
- step of incorrect evaluation: (parser error in Template:Sum)
{{#expr: 1,2 + 3,4}}
workaround:
{{formatnum: {{#expr: 1,2 + 3,4}} }}
Version: unspecified
Severity: normal
URL: http://de.wikipedia.org/w/index.php?title=Vorlage%3AKlimatabelle&diff=40952394&oldid=40951597