Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (2 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 1: | Rivi 1: | ||
<includeonly>{{#ifexpr: {{{Viikko|}}} < 23 | Virallinen sinileväseuranta alkaa taas viikolla 23 | <includeonly>{{#ifexpr: {{{Viikko|}}} < 23 | Virallinen sinileväseuranta alkaa taas viikolla 23 | ||
| {{#ifexpr: {{{Viikko|}}} > 39 | Virallinen sinileväseuranta on päättynyt tältä kesältä | | {{#ifexpr: {{{Viikko|}}} > 39 | Virallinen sinileväseuranta on päättynyt tältä kesältä | ||
|{{#arraydefine: obscount|{{#replace: {{#ask: [[Havainto::+]][[ObsCode::alg]][[Seuranta::Valtakunnallinen leväseuranta]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{{Viikko|}}}]]|format=count }} |,|. }} }}{{#arraydefine: algcount|{{#replace: {{#ask: [[Havainto::+]][[ObsCode::alg]][[Seuranta::Valtakunnallinen leväseuranta]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{{Viikko|}}}]][[Levätilanne::>1]]|format=count }} |,|. }} }}{{#arraydefine: totalcount|{{#replace: {{#ask: [[Luokka:Nykyinen leväseurannan havaintopaikka]]|format=count }} |,|. }} }}{{#arraydefine: obsdegree|{{#number_format:{{#expr: {{#arrayindex: obscount|0|0}} / {{#arrayindex: totalcount|0|0}} }}|1}} }}{{#arraydefine: algdegree|{{#number_format:{{#expr: {{#arrayindex: algcount|0|0}} / {{#arrayindex: obscount|0|0}} }}|3}} }}{{#arraydefine: thecode|/{{#ifexpr: {{#arrayindex: obsdegree|0|0}} < 0.2|-|{{#ifexpr: {{#arrayindex: obsdegree|0|0}} < 0.6|x|+}}}}{{#ifexpr: {{#arrayindex: algdegree|0|0}} < 0. | |{{#arraydefine: obscount|{{#replace: {{#ask: [[Havainto::+]][[ObsCode::alg]][[Seuranta::Valtakunnallinen leväseuranta]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{{Viikko|}}}]]|format=count }} |,|. }} }}{{#arraydefine: algcount|{{#replace: {{#ask: [[Havainto::+]][[ObsCode::alg]][[Seuranta::Valtakunnallinen leväseuranta]][[Vuosi::{{{Vuosi|}}}]][[Viikko::{{{Viikko|}}}]][[Levätilanne::>1]]|format=count }} |,|. }} }}{{#arraydefine: totalcount|{{#replace: {{#ask: [[Luokka:Nykyinen leväseurannan havaintopaikka]]|format=count }} |,|. }} }}{{#arraydefine: obsdegree|{{#number_format:{{#expr: {{#arrayindex: obscount|0|0}} / {{#arrayindex: totalcount|0|0}} }}|1}} }}{{#arraydefine: algdegree|{{#number_format:{{#expr: {{#arrayindex: algcount|0|0}} / {{#arrayindex: obscount|0|0}} }}|3}} }}{{#arraydefine: thecode|/{{#ifexpr: {{#arrayindex: obsdegree|0|0}} < 0.2|-|{{#ifexpr: {{#arrayindex: obsdegree|0|0}} < 0.6|x|+}}}}{{#ifexpr: {{#arrayindex: algdegree|0|0}} < 0.01|0|{{#ifexpr: {{#arrayindex: algdegree|0|0}} < 0.05|1|{{#ifexpr: {{#arrayindex: algdegree|0|0}} < 0.1|2|{{#ifexpr: {{#arrayindex: algdegree|0|0}} < 0.2|3|{{#ifexpr: {{#arrayindex: algdegree|0|0}} < 0.3|4|5}}}}}}}}}}/}} | ||
{{#switch: {{#arrayindex: thecode|0|0}} | {{#switch: {{#arrayindex: thecode|0|0}} | ||
| /-0/ = Vasta vähän havaintoja kertynyt | | /-0/ = Vasta vähän havaintoja kertynyt | ||


