Ero sivun ”Malline:ObsSNOW” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”|Maakunta#list={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?Maakunta#- }}|{{#arrayindex:SiteProps|7|-}}}}” muotoon ”|Maakunta={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?Maakunta#- }}|{{#arrayindex:SiteProps|7|-}}}}|+sep=,”) |
|||
(17 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 19: | Rivi 19: | ||
|?Päävesistö#- | |?Päävesistö#- | ||
|? | |? | ||
− | |mainlabel=- |format=array |propsep=¤¤¤}}|¤¤¤}} | + | |mainlabel=- |format=array |manysep=, |propsep=¤¤¤}}|¤¤¤}} |
<!-- /Get site properties --> | <!-- /Get site properties --> | ||
<!-- Set observation properties --> | <!-- Set observation properties --> | ||
− | {{# | + | {{#subobject: |Havainto=true |
<!-- SPECIFIC --> | <!-- SPECIFIC --> | ||
|ObsCode=snow | |ObsCode=snow | ||
|Tyyppi=Lumitilanne | |Tyyppi=Lumitilanne | ||
− | |Lumitilanne={{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat| | + | |Lumitilanne={{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|100}}}}} |
|Maastotyyppi={{{TERRAINcat|}}} | |Maastotyyppi={{{TERRAINcat|}}} | ||
− | |Lumen paksuus={{#replace: {{#if: {{{SNOWval|}}}|{{{SNOWval|}}} {{{SNOWunit|cm}}}|{{#if: {{{DEPTHval|}}}|{{{DEPTHval|}}} {{{DEPTHunit|cm}}}}}}}|.|,}} | + | |Lumen paksuus={{#replace: {{#if: {{{SNOWval|}}}|{{{SNOWval|}}} {{{SNOWunit|cm}}}|{{#if: {{{DEPTHval|}}}|{{{DEPTHval|}}} {{{DEPTHunit|cm}}}|{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0|0 cm }} }} }}|.|,}} |
|Sample weight={{#if: {{{WEIGHTval|}}}|{{#replace:{{{WEIGHTval|}}}|.|,}} {{{WEIGHTunit|kg}}}|}} | |Sample weight={{#if: {{{WEIGHTval|}}}|{{#replace:{{{WEIGHTval|}}}|.|,}} {{{WEIGHTunit|kg}}}|}} | ||
|Sample diameter={{#if: {{{DIAMval|}}}|{{#replace:{{{DIAMval|}}}|.|,}} {{{DIAMunit|cm}}}|}} | |Sample diameter={{#if: {{{DIAMval|}}}|{{#replace:{{{DIAMval|}}}|.|,}} {{{DIAMunit|cm}}}|}} | ||
− | |Lumikuorma={{#replace: | + | |Lumikuorma={{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0|0 kg/m²|{{#replace: |
{{#if: {{{LOADval|}}} | {{#if: {{{LOADval|}}} | ||
|{{{LOADval|}}} {{{LOADunit|kg/m²}}} | |{{{LOADval|}}} {{{LOADunit|kg/m²}}} | ||
Rivi 64: | Rivi 64: | ||
}} | }} | ||
|.|, | |.|, | ||
− | }} | + | }} }} |
|Snow type={{{SNOWtype|}}} | |Snow type={{{SNOWtype|}}} | ||
|Display_fi={{#if: {{{LOADval|}}}{{{WEIGHTval|}}}{{{DIAMval|}}}{{{SNOWval|}}}{{{DEPTHval|}}} | |Display_fi={{#if: {{{LOADval|}}}{{{WEIGHTval|}}}{{{DIAMval|}}}{{{SNOWval|}}}{{{DEPTHval|}}} | ||
Rivi 78: | Rivi 78: | ||
|{{#if: {{{DEPTHval|}}} | |{{#if: {{{DEPTHval|}}} | ||
|, "val": {{#replace:{{{DEPTHval|}}}|,|.}}, "unit": "{{{DEPTHunit|cm}}}" | |, "val": {{#replace:{{{DEPTHval|}}}|,|.}}, "unit": "{{{DEPTHunit|cm}}}" | ||
− | |, "val": - | + | |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0 |
+ | |, "val": 0, "unit": "{{{DEPTHunit|cm}}}" | ||
+ | |, "val": -999, "unit": "" | ||
+ | }} | ||
}} | }} | ||
}} | }} | ||
Rivi 90: | Rivi 93: | ||
10000 | 10000 | ||
}}, "loadunit": "{{{WEIGHTunit|kg}}}/m²" | }}, "loadunit": "{{{WEIGHTunit|kg}}}/m²" | ||
+ | |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0 | ||
+ | |, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" | ||
+ | |, "load": -999, "loadunit": "" | ||
+ | }} | ||
+ | }} | ||
+ | |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0 | ||
+ | |, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" | ||
|, "load": -999, "loadunit": "" | |, "load": -999, "loadunit": "" | ||
}} | }} | ||
− | |||
}} | }} | ||
}} | }} | ||
Rivi 98: | Rivi 107: | ||
|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">{{#if: {{{LOADval|}}}{{{WEIGHTval|}}}{{{DIAMval|}}}|{{#replace:{{#if: {{{LOADval|}}}|{{{LOADval|}}} {{{LOADunit|kg/m²}}}|{{#if: {{{WEIGHTval|}}}{{{DIAMval|}}}|{{#expr: {{#replace:{{{WEIGHTval|}}}|,|.}} / {{#expr: {{#replace:{{{DIAMval|}}}|,|.}} * {{#replace:{{{DIAMval|}}}|,|.}} }} }} {{{WEIGHTunit|kg}}}/{{{DIAMunit|cm}}}² |}} }}|.|,}} (Lumikuorma)|{{#if: {{{SNOWval|}}}{{{DEPTHval|}}}|{{#replace: {{#if: {{{SNOWval|}}}|{{{SNOWval|}}} {{{SNOWunit|cm}}}|{{#if: {{{DEPTHval|}}}|{{{DEPTHval|}}} {{{DEPTHunit|cm}}}}}}}|.|,}} (Lumipeitteen paksuus)|{{SNOWcatToStr|{{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|50}}} }}|fi}} }} }}</p>{{#if: {{{AddInfo|}}}|<p class="jwImgCapAddInfo">{{{AddInfo|}}}</p>}} | |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">{{#if: {{{LOADval|}}}{{{WEIGHTval|}}}{{{DIAMval|}}}|{{#replace:{{#if: {{{LOADval|}}}|{{{LOADval|}}} {{{LOADunit|kg/m²}}}|{{#if: {{{WEIGHTval|}}}{{{DIAMval|}}}|{{#expr: {{#replace:{{{WEIGHTval|}}}|,|.}} / {{#expr: {{#replace:{{{DIAMval|}}}|,|.}} * {{#replace:{{{DIAMval|}}}|,|.}} }} }} {{{WEIGHTunit|kg}}}/{{{DIAMunit|cm}}}² |}} }}|.|,}} (Lumikuorma)|{{#if: {{{SNOWval|}}}{{{DEPTHval|}}}|{{#replace: {{#if: {{{SNOWval|}}}|{{{SNOWval|}}} {{{SNOWunit|cm}}}|{{#if: {{{DEPTHval|}}}|{{{DEPTHval|}}} {{{DEPTHunit|cm}}}}}}}|.|,}} (Lumipeitteen paksuus)|{{SNOWcatToStr|{{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|50}}} }}|fi}} }} }}</p>{{#if: {{{AddInfo|}}}|<p class="jwImgCapAddInfo">{{{AddInfo|}}}</p>}} | ||
<!-- COMMON --> | <!-- COMMON --> | ||
− | |Päivämäärä={{{Date|}}} {{#if: {{{Time|}}}|{{#if: {{#pos: {{#replace:{{{Time|}}}|.|:}}|:}}|{{#replace:{{{Time|}}}|.|:}}|{{{Time|}}}:00}}}} | + | |Päivämäärä={{#if: {{{Observation time|}}}|{{{Observation time|}}}|{{{Date|}}} {{#if: {{{Time|}}}|{{#if: {{#pos: {{#replace:{{{Time|}}}|.|:}}|:}}|{{#replace:{{{Time|}}}|.|:}}|{{{Time|}}}:00}}}}}} |
|KoordPohj={{#replace:{{#if: {{{Lat|}}}|{{{Lat|}}}|{{#arrayindex:SiteProps|3|}}}}|.|,}} | |KoordPohj={{#replace:{{#if: {{{Lat|}}}|{{{Lat|}}}|{{#arrayindex:SiteProps|3|}}}}|.|,}} | ||
|KoordIta={{#replace:{{#if: {{{Lon|}}}|{{{Lon|}}}|{{#arrayindex:SiteProps|4|}}}}|.|,}} | |KoordIta={{#replace:{{#if: {{{Lon|}}}|{{{Lon|}}}|{{#arrayindex:SiteProps|4|}}}}|.|,}} | ||
− | |Koordinaatit={{#if: {{{Lat|}}}|{{{Lat|}}}, {{{Lon|}}}|{{#replace:{{#arrayindex:SiteProps|3|}}|,|.}},{{#replace:{{#arrayindex:SiteProps|4|}}|,|.}}}} | + | |Koordinaatit={{#if: {{{Lat|}}}|{{#replace:{{{Lat|}}}|,|.}}, {{#replace:{{{Lon|}}}|,|.}}|{{#replace:{{#arrayindex:SiteProps|3|}}|,|.}}, {{#replace:{{#arrayindex:SiteProps|4|}}|,|.}}}} |
− | |Tag | + | |Tag={{{Tags|}}}|+sep=, |
|Lisätiedot={{{AddInfo|}}} | |Lisätiedot={{{AddInfo|}}} | ||
|Tiedosto={{#if: {{{Img|}}}|Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}}}} | |Tiedosto={{#if: {{{Img|}}}|Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}}}} | ||
Rivi 109: | Rivi 118: | ||
|SiteID={{#arrayindex:SiteProps|0|-}} | |SiteID={{#arrayindex:SiteProps|0|-}} | ||
|SiteName={{#arrayindex:SiteProps|11|-}} | |SiteName={{#arrayindex:SiteProps|11|-}} | ||
− | |Alue | + | |Alue={{#arrayindex:SiteProps|1|}}|+sep=, |
− | |Vesistö={{#arrayindex:SiteProps|2|}} | + | |Vesistö={{#arrayindex:SiteProps|2|}}|+sep=, |
|Päävesistö={{#arrayindex:SiteProps|10|}} | |Päävesistö={{#arrayindex:SiteProps|10|}} | ||
− | |Kunta | + | |Kunta={{#if: {{{Muni|}}}|{{{Muni|}}}|{{#arrayindex:SiteProps|5|-}}}}|+sep=, |
|ELY-keskus={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?ELY-keskus#- }}|{{#arrayindex:SiteProps|6|-}}}} | |ELY-keskus={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?ELY-keskus#- }}|{{#arrayindex:SiteProps|6|-}}}} | ||
− | |Maakunta | + | |Maakunta={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?Maakunta#- }}|{{#arrayindex:SiteProps|7|-}}}}|+sep=, |
|Ylläpito={{#arrayindex:SiteProps|8|Tavallisen käyttäjän ylläpitämä}} | |Ylläpito={{#arrayindex:SiteProps|8|Tavallisen käyttäjän ylläpitämä}} | ||
|Seuranta={{#if: {{{Seuranta|}}}|{{{Seuranta|}}}|{{#arrayindex:SiteProps|9|-}} }} | |Seuranta={{#if: {{{Seuranta|}}}|{{{Seuranta|}}}|{{#arrayindex:SiteProps|9|-}} }} | ||
|Source={{{Source|}}} | |Source={{{Source|}}} | ||
− | | | + | |Sort date={{{Observation time|2000-01-01 00:00}}} |
|User={{{User|}}} | |User={{{User|}}} | ||
}} | }} |