Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 3: | Rivi 3: | ||
{{#arraydefine: lastweek|{{#replace: {{#ask: [[LeväbarometridataUUSI::+]][[Tyyppi::Viikkoarvo]][[Vesistö::{{{Vesistö|}}}]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{#expr: {{{Viikko|}}}-1}}]]|mainlabel=- |?Leväbarometri#-p3 |headers=hide }} |,|. }} }} | {{#arraydefine: lastweek|{{#replace: {{#ask: [[LeväbarometridataUUSI::+]][[Tyyppi::Viikkoarvo]][[Vesistö::{{{Vesistö|}}}]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{#expr: {{{Viikko|}}}-1}}]]|mainlabel=- |?Leväbarometri#-p3 |headers=hide }} |,|. }} }} | ||
{{#arraydefine: history|{{#replace: {{#ask: [[LeväbarometridataUUSI::+]][[Tyyppi::Vertailuarvo]][[Vesistö::{{{Vesistö|}}}]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{{Viikko|}}}]]|mainlabel=- |?Leväbarometri#-p3 |headers=hide }} |,|. }} }} | {{#arraydefine: history|{{#replace: {{#ask: [[LeväbarometridataUUSI::+]][[Tyyppi::Vertailuarvo]][[Vesistö::{{{Vesistö|}}}]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{{Viikko|}}}]]|mainlabel=- |?Leväbarometri#-p3 |headers=hide }} |,|. }} }} | ||
{{#arraydefine: changeamount| abs( {{#expr: {{#arrayindex:lastweek|0|0}} - {{#arrayindex:curweek|0|0}} }} ) }} | |||
Cur week: {{#arrayindex:curweek|0|0}} | Cur week: {{#arrayindex:curweek|0|0}} | ||
Last week: {{#arrayindex:lastweek|0|0}} | Last week: {{#arrayindex:lastweek|0|0}} | ||
history week: {{#arrayindex:history|0|0}} | history week: {{#arrayindex:history|0|0}} | ||
change: {{#arrayindex:changeamount|0|0}} | |||
Last - cur: {{#expr: {{#arrayindex:lastweek|0|0}} - {{#arrayindex:curweek|0|0}} }} | Last - cur: {{#expr: {{#arrayindex:lastweek|0|0}} - {{#arrayindex:curweek|0|0}} }} | ||


