Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (3 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 10: | Rivi 10: | ||
{{#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.025 |x|{{#arrayindex:changedirection|0|0}}}}{{#ifexpr: {{#arrayindex:historyamount|0|0}} < 0.025 |x|{{#arrayindex:historydirection|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}}}}/}} | ||
{{#arraydefine: amountword|{{#ifexpr: {{#arrayindex:changeamount|0|0}} < 0.05 |hieman|}} }} | {{#arraydefine: amountword|{{#ifexpr: {{#arrayindex:changeamount|0|0}} < 0.05 |hieman|selvästi }} }} | ||
{{#switch: {{#arrayprint:thecode}} | {{#ifeq: {{{Viikko|}}}|23|{{#switch: /{{#ifexpr: {{#arrayindex:historyamount|0|0}} < 0.025 |x|{{#arrayindex:historydirection|0|0}}}}/ | ||
| /-/ = sinilevätilanne ajankohtaan nähden huono | |||
| /x/ = sinilevätilanne ajankohdalle tavanomainen | |||
| /+/ = sinilevätilanne tavanomaista rauhallisempi | |||
}}|{{#switch: {{#arrayprint:thecode}} | |||
| /-+/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} heikentynyt – yhä tavanomaista rauhallisempi | | /-+/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} heikentynyt – yhä tavanomaista rauhallisempi | ||
| /-x/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} heikentynyt – yhä tavanomainen | | /-x/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} heikentynyt – yhä tavanomainen | ||
| Rivi 18: | Rivi 22: | ||
| /xx/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne ennallaan – ajankohdalle tavanomainen | | /xx/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne ennallaan – ajankohdalle tavanomainen | ||
| /x-/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne ennallaan – yhä tavanomaista huonompi | | /x-/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne ennallaan – yhä tavanomaista huonompi | ||
| /++/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} | | /++/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} parantunut – nyt tavanomaista rauhallisempi | ||
| /+x/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} parantunut – nyt ajankohdalle tavanomainen | | /+x/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}} parantunut – nyt ajankohdalle tavanomainen | ||
| /+-/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}}parantunut – edelleen tavanomaista huonompi | | /+-/ = {{#ifeq: {{{Vesistö|}}}|Meri|Rannikon|Sisävesien}} sinilevätilanne {{#arrayindex:amountword|0|0}}parantunut – edelleen tavanomaista huonompi | ||
| #default = | | #default = | ||
}} }} }} }}</includeonly> | }} }} }} }} }}</includeonly> | ||


