p (Tekstin korvaus – ”|Vesistö={{#arrayindex:SiteProps|2|}}” muotoon ”|Vesistö#list={{#arrayindex:SiteProps|2|}}”) |
Ei muokkausyhteenvetoa |
||
| (19 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 23: | Rivi 23: | ||
<!-- 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={{# | |Lumen paksuus={{#if: {{{DEPTHval|}}}|{{#replace: {{{DEPTHval|}}}|.|,}} {{{DEPTHunit|cm}}} |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0|0 cm }} }} | ||
|Sample weight={{#if: {{{ | |Gross weight={{#if: {{{GROSSval|}}} |{{#replace: {{{GROSSval|}}}|.|,}} {{{GROSSunit|kg}}} }} | ||
|Sample diameter={{#if: {{{DIAMval|}}}|{{#replace:{{{DIAMval|}}}|.|,}} {{{DIAMunit|cm}}} | |Tare weight={{#if: {{{TAREval|}}} |{{#replace: {{{TAREval|}}}|.|,}} {{{TAREunit|kg}}} } | ||
|Lumikuorma={{#replace: | |Sample weight={{#if: {{{GROSSval|}}} |{{#replace: {{#expr: {{#replace: {{{GROSSval|}}}|,|.}} - {{#replace: {{{TAREval|0}}} }} |,|.}} }} |.|,}} {{{GROSSunit|kg}}} }} | ||
|Sample diameter={{#if: {{{DIAMval|}}}|{{#replace:{{{DIAMval|}}}|.|,}} {{{DIAMunit|cm}}} }} | |||
|Lumikuorma={{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0|0 kg/m²|{{#replace: | |||
{{#if: {{{LOADval|}}} | {{#if: {{{LOADval|}}} | ||
|{{{LOADval|}}} {{{LOADunit|kg/m²}}} | |{{{LOADval|}}} {{{LOADunit|kg/m²}}} | ||
|{{#if: {{{ | |{{#if: {{{GROSSval|}}} | ||
|{{#if: {{{DIAMval|}}} | |{{#if: {{{DIAMval|}}} | ||
| | | | ||
{{#expr: | |||
{{#expr: | {{#expr: | ||
{{#replace: {{{ | {{#expr: {{#replace: {{{GROSSval|}}}|,|.}} - {{#replace: {{{TAREval|0}}}|,|.}} }} | ||
/ | / | ||
{{#expr: | {{#expr: | ||
| Rivi 59: | Rivi 62: | ||
}} | }} | ||
}} | }} | ||
* 10000 | |||
}} | |||
kg/m² | |||
}} | }} | ||
}} | }} | ||
}} | }} | ||
|.|, | |.|, | ||
}} | }} }} | ||
|Snow type={{{SNOWtype|}}} | |Snow type={{{SNOWtype|}}} | ||
|Display_fi={{#if: {{{LOADval|}}} | |Display_fi={{#if: {{{LOADval|}}}|{{#replace:{{{LOADval|}}}|.|,}} {{{LOADunit|kg/m²}}} (Lumikuorma)|{{#if: {{{DEPTHval|}}}|{{#replace:{{{DEPTHval|}}}|.|,}} {{{DEPTHunit|cm}}} (Lumipeite)|{{SNOWcatToStr|{{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}} |{{{SNOWcat|50}}}}}|fi }} }} }} | ||
|{{#replace | |Display_sv={{#if: {{{LOADval|}}}|{{#replace:{{{LOADval|}}}|.|,}} {{{LOADunit|kg/m²}}} (Snöbelastning)|{{#if: {{{DEPTHval|}}}|{{#replace:{{{DEPTHval|}}}|.|,}} {{{DEPTHunit|cm}}} (Snötäcket) |{{SNOWcatToStr |{{#if: {{{SNOWcover|}}} |{{{SNOWcover|}}} |{{{SNOWcat|50}}} }} |sv }} }} }} | ||
|Display_en={{#if: {{{LOADval|}}} |{{#replace:{{{LOADval|}}}|,|.}} {{{LOADunit|kg/m²}}} (Snow load) |{{#if: {{{DEPTHval|}}} |{{#replace:{{{DEPTHval|}}}|,|.}} {{{DEPTHunit|cm}}} (Snow cover) |{{SNOWcatToStr |{{#if: {{{SNOWcover|}}} |{{{SNOWcover|}}} |{{{SNOWcat|50}}} }} |en }} }} }} | |||
|Display_sv={{#if: {{{LOADval | |||
|Display_en={{#if: {{{LOADval | |||
|DataJSON={ "cat": "{{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|50}}}}}" | |DataJSON={ "cat": "{{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|50}}}}}" | ||
{{#if: {{{ | {{#if: {{{DEPTHval|}}} | ||
|, "val": {{#replace:{{{ | |, "val": {{#replace:{{{DEPTHval|}}}|,|.}}, "unit": "{{{DEPTHunit|cm}}}" | ||
|{{# | |{{#ifeq: {{{SNOWcover|}}}{{{SNOWcat|}}}|0 | ||
|, "val": 0, "unit": "{{{DEPTHunit|cm}}}" | |||
|, "val": - | |, "val": -999, "unit": "" | ||
}} | }} | ||
}} | }} | ||
{{#if: {{{LOADval|}}} | {{#if: {{{LOADval|}}} | ||
|, "load": {{#replace:{{{LOADval|}}}|,|.}}, "loadunit": "{{{LOADunit|kg/m²}}}" | |, "load": {{#replace:{{{LOADval|}}}|,|.}}, "loadunit": "{{{LOADunit|kg/m²}}}" | ||
|{{#if: {{{ | |{{#if: {{{GROSSval|}}} | ||
|{{#if: {{{DIAMval|}}} | |{{#if: {{{DIAMval|}}} | ||
|, "load": {{#expr: | |, "load": {{#expr: {{#expr: | ||
{{#expr: {{#replace: {{{GROSSval|}}}|,|.}} - {{#replace: {{{TAREval|0}}}|,|.}} }} | |||
/ | |||
{{#expr: | |||
}}, "loadunit": "{{{ | 3.14159265 | ||
* | |||
{{#expr: | |||
{{#expr: | |||
{{#replace: {{{DIAMval|}}}|,|.}} | |||
/ | |||
2 | |||
}} | |||
* | |||
{{#expr: | |||
{{#replace: {{{DIAMval|}}}|,|.}} | |||
/ | |||
2 | |||
}} | |||
}} | |||
}} | |||
}} * 10000 }}, "loadunit": "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": "" | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
} | } | ||
|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: | |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: {{{DEPTHval|}}}|{{{DEPTHval|}}} {{{DEPTHunit|cm}}}}}|.|,}} (Lumipeitteen paksuus)|{{SNOWcatToStr|{{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|50}}} }}|fi}} }} }}</p>{{#if: {{{AddInfo|}}}|<p class="jwImgCapAddInfo">{{{AddInfo|}}}</p>}} | ||
|Vuosi={{#time: Y | {{{Observation time|}}} }} | |||
<!-- COMMON --> | <!-- COMMON --> | ||
|Päivämäärä={{#if: {{{Observation time|}}}|{{{Observation time|}}}|{{{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}}}}}} | ||
| Rivi 102: | Rivi 126: | ||
|KoordIta={{#replace:{{#if: {{{Lon|}}}|{{{Lon|}}}|{{#arrayindex:SiteProps|4|}}}}|.|,}} | |KoordIta={{#replace:{{#if: {{{Lon|}}}|{{{Lon|}}}|{{#arrayindex:SiteProps|4|}}}}|.|,}} | ||
|Koordinaatit={{#if: {{{Lat|}}}|{{#replace:{{{Lat|}}}|,|.}}, {{#replace:{{{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={{# | |Tiedosto={{#ifexist: Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}}|Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}} }} | ||
|Image={{# | |Image={{#ifexist: Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}}|Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}} }} | ||
<!-- METADATA --> | <!-- METADATA --> | ||
|SiteID={{#arrayindex:SiteProps|0|-}} | |SiteID={{#arrayindex:SiteProps|0|-}} | ||
|SiteName={{#arrayindex:SiteProps|11|-}} | |SiteName={{#arrayindex:SiteProps|11|-}} | ||
|Alue | |Alue={{#arrayindex:SiteProps|1|}}|+sep=, | ||
|Vesistö | |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|-}} }} | ||


