|
|
Rivi 1: |
Rivi 1: |
| <includeonly><div style="display: none;"> | | <includeonly> |
| | | {{#ifeq: {{#ask: [[Havainto::+]][[SiteID::{{PAGEID}}]][[ObsCode::ice]] |format=count }}|0| |
| <!-- Get SiteID -->
| | |[[Luokka:Jäätilanteen havaintopaikka]]{{#ifeq: {{#ask: [[Havainto::+]][[SiteID::{{PAGEID}}]][[Jään paksuus::>2]] |format=count }}|0| |
| {{#arraydefine:SiteID|{{#show: {{FULLPAGENAME}}|?SiteID#- |default=- }}|,|}} | | |[[Luokka:Jään paksuuden havaintopaikka]]<div class="jwChartWidget" |
| <!-- /Get SiteID -->
| | data-height="350" |
| | | data-jw-siteid="{{PAGEID}}" |
| <!-- Get site properties -->
| | data-jw-obscode="ice" |
| {{#arraydefine:SiteProps|{{#ask: [[Luokka:Paikka]][[SiteID::{{#arrayindex:SiteID|0}}]] | | data-graph-type="season" |
| |?SiteID#-
| | data-min="0" |
| |?Alue#-
| | data-edit-url="{{#ifpageright:edit|//www.jarviwiki.fi/wiki/Toiminnot:Lomakemuokkaus/ObsICE/{{FULLPAGENAME}}|-}}" |
| |?Vesistö#-
| | data-lang={{int:Lang}} |
| |?KoordPohj#-
| | ></div>{{#widget:JwObsCharts}} |
| |?KoordIta#-
| | }}{{#ifeq: {{#ask: [[Havainto::+]][[SiteID::{{PAGEID}}]][[Jäätilanne::2 || 5]] |format=count }}|0| |
| |?Kunta#-
| | |<div class="jwChartWidget" |
| |?ELY-keskus#-
| | data-height="{{#ifeq: {{#ask: [[Havainto::+]][[SiteID::{{PAGEID}}]][[Jäätilanne::2]] |format=count }}|0|350|{{#ifeq: {{#ask: [[Havainto::+]][[SiteID::{{PAGEID}}]][[Jäätilanne::5]] |format=count }}|0|350|450}}}}" |
| |?Maakunta#-
| | data-jw-siteid="{{PAGEID}}" |
| |?Ylläpito#-
| | data-jw-obscode="ice_cat_2,5" |
| |?Seuranta#-
| | data-graph-type="dateofyear" |
| |?Päävesistö#-
| | data-edit-url="{{#ifpageright:edit|//www.jarviwiki.fi/wiki/Toiminnot:Lomakemuokkaus/ObsICE/{{FULLPAGENAME}}|-}}" |
| |?
| | data-lang={{int:Lang}} |
| |mainlabel=- |format=array |manysep=, |propsep=¤¤¤}}|¤¤¤}}
| | ></div>{{#widget:JwObsCharts}} |
| <!-- /Get site properties --> | | {{#ifeq: {{#ask: [[Havainto::+]][[SiteID::{{PAGEID}}]][[Jäätilanne::2]] |format=count }}|0||[[Luokka:Jäätymisen havaintopaikka]]}} |
| | | {{#ifeq: {{#ask: [[Havainto::+]][[SiteID::{{PAGEID}}]][[Jäätilanne::5]] |format=count }}|0||[[Luokka:Jäänlähdön havaintopaikka]]}} |
| <!-- Set observation properties -->
| | }} |
| {{#set_internal:Havainto | |
| <!-- SPECIFIC -->
| |
| |ObsCode=ice
| |
| |Tyyppi=Jäätilanne
| |
| |Jäätilanne={{{ICEcat|}}}
| |
| |JäätilanneStr={{JäätilanneNumToStr|{{{ICEcat|}}}}}
| |
| |Jään paksuus={{#switch: {{{ICEcat|}}}|0|1|5=0 cm|2=1 cm|3={{#if: {{{ICEval|}}}|{{#replace:{{{ICEval|}}}|.|,}} {{{ICEunit|cm}}} }} }}
| |
| |Display_fi={{ICEcatNumToStr|{{{ICEcat|}}}|fi}} {{#if: {{{ICEval|}}}|({{#replace:{{{ICEval|}}}|.|,}} {{{ICEunit|cm}}})}}
| |
| |Display_sv={{ICEcatNumToStr|{{{ICEcat|}}}|sv}} {{#if: {{{ICEval|}}}|({{#replace:{{{ICEval|}}}|.|,}} {{{ICEunit|cm}}})}}
| |
| |Display_en={{ICEcatNumToStr|{{{ICEcat|}}}|en}} {{#if: {{{ICEval|}}}|({{#replace:{{{ICEval|}}}|,|.}} {{{ICEunit|cm}}})}}
| |
| |DataJSON={ "cat": "{{{ICEcat|}}}", "val": {{#switch: {{{ICEcat|}}}|0|1|5=0|2=1|3={{#if: {{{ICEval|}}}|{{#replace:{{{ICEval|-999}}}|,|.}}|-999}}|#default=-999 }}, "unit": "{{#switch: {{{ICEcat|}}}|0|2|5=cm|3={{{ICEunit|cm}}}|#default=cm }}" }
| |
| |ImageCaption=<p class="jwImgCapSiteLink">[[{{#arrayindex:SiteProps|11|-}}|<span class="jwImgCapLakeName">{{#titleparts: {{#arrayindex:SiteProps|11|-}}|1|1}}/</span>{{#titleparts: {{#arrayindex:SiteProps|11|-}}|0|2}}]]</p>{{#if: {{{Date|}}}|<p class="jwImgCapDate">{{#time: j. F Y {{#if:{{{Time}}}|H:i}}|{{{Date|}}} {{{Time|}}}|fi}}</p>}}<p class="jwImgCapTheObs">{{ICEcatNumToStr|{{{ICEcat|}}}|fi}} {{#if: {{{ICEval|}}}|({{#replace:{{{ICEval|}}}|.|,}} {{{ICEunit|cm}}})}}</p>{{#if: {{{AddInfo|}}}|<p class="jwImgCapAddInfo">{{{AddInfo|}}}</p>}} | |
| <!-- COMMON -->
| |
| |Päivämäärä={{{Observation time|}}}
| |
| |KoordPohj={{#replace:{{#if: {{{Lat|}}}|{{{Lat|}}}|{{#arrayindex:SiteProps|3|}}}}|.|,}}
| |
| |KoordIta={{#replace:{{#if: {{{Lon|}}}|{{{Lon|}}}|{{#arrayindex:SiteProps|4|}}}}|.|,}}
| |
| |Koordinaatit={{#if: {{{Lat|}}}|{{#replace:{{{Lat|}}}|,|.}}, {{#replace:{{{Lon|}}}|,|.}}|{{#replace:{{#arrayindex:SiteProps|3|}}|,|.}}, {{#replace:{{#arrayindex:SiteProps|4|}}|,|.}}}}
| |
| |Tag#list={{{Tags|}}}
| |
| |Lisätiedot={{{AddInfo|}}}
| |
| |Tiedosto={{#if: {{{Img|}}}|Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}}}}
| |
| |Image={{#if: {{{Img|}}}|Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}}}}
| |
| <!-- METADATA -->
| |
| |SiteID={{#arrayindex:SiteProps|0|-}}
| |
| |SiteName={{#arrayindex:SiteProps|11|-}}
| |
| |Alue#list={{#arrayindex:SiteProps|1|}}
| |
| |Vesistö#list={{#arrayindex:SiteProps|2|}}
| |
| |Päävesistö={{#arrayindex:SiteProps|10|}}
| |
| |Kunta#list={{#if: {{{Muni|}}}|{{{Muni|}}}|{{#arrayindex:SiteProps|5|-}}}} | |
| |ELY-keskus={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?ELY-keskus#- }}|{{#arrayindex:SiteProps|6|-}}}}
| |
| |Maakunta#list={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?Maakunta#- }}|{{#arrayindex:SiteProps|7|-}}}}
| |
| |Ylläpito={{#arrayindex:SiteProps|8|Tavallisen käyttäjän ylläpitämä}}
| |
| |Seuranta={{#if: {{{Seuranta|}}}|{{{Seuranta|}}}|{{#arrayindex:SiteProps|9|-}} }}
| |
| |Source={{{Source|}}}
| |
| |Sort date={{{Observation time|2000-01-01 00:00}}}
| |
| |User={{{User|}}}
| |
| }} | | }} |
| <!-- /Set observation properties -->
| | </includeonly> |
| | |
| <!-- Handle archiving -->
| |
| {{#switch: {{{toArchive|}}}|Y |d=[[Luokka:Arkistoon vrk]]|w=[[Luokka:Arkistoon vko]]|m=[[Luokka:Arkistoon kk]]|y=[[Luokka:Arkistoon v]]}}
| |
| {{#ifeq: {{#ask: [[{{FULLPAGENAME}}]][[Luokka:Arkisto]]|format=count}}|0|[[Arkistoitu::0| ]]|[[Arkistoitu::1| ]]}}
| |
| <!-- /Handle archiving -->
| |
| | |
| </div></includeonly>
| |