Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 8: | Rivi 8: | ||
{{#arraydefine: historydirection|{{#ifexpr: {{#arrayindex:history|0|0}} < {{#arrayindex:curweek|0|0}}|-|+}}}} | {{#arraydefine: historydirection|{{#ifexpr: {{#arrayindex:history|0|0}} < {{#arrayindex:curweek|0|0}}|-|+}}}} | ||
{{#arraydefine: historyamount| {{#expr: abs( {{#expr: {{#arrayindex:history|0|0}} - {{#arrayindex:curweek|0|0}} }} ) }} }} | {{#arraydefine: historyamount| {{#expr: abs( {{#expr: {{#arrayindex:history|0|0}} - {{#arrayindex:curweek|0|0}} }} ) }} }} | ||
{{#arraydefine: thecode|/{{#ifexpr: {{#arrayindex:changeamount|0|0}} < 0. | {{#arraydefine: thecode|/{{#ifexpr: {{#arrayindex:changeamount|0|0}} < 0.025 |x|{{#arrayindex:changedirection|0|0}}}}{{#ifexpr: {{#arrayindex:historyamount|0|0}} < 0.025 |x|{{#arrayindex:historydirection|0|0}}}}/}} | ||
{{#switch: {{#arrayprint:thecode}} | {{#switch: {{#arrayprint:thecode}} | ||
| /-+/ = Sinilevätilanne on heikentynyt mutta on edelleen tavanomaista parempi | | /-+/ = Sinilevätilanne on heikentynyt mutta on edelleen tavanomaista parempi | ||


