Ero sivun ”Malline:ObsSNOWLOAD” versioiden välillä
Järvi-meriwikistä
Rivi 29: | Rivi 29: | ||
|Lumitilanne={{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|50}}}}} | |Lumitilanne={{#if: {{{SNOWcover|}}}|{{{SNOWcover|}}}|{{{SNOWcat|50}}}}} | ||
|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: {{{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: {{{SNOWcat|0}}}|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 94: | Rivi 94: | ||
}}, "loadunit": "{{{WEIGHTunit|kg}}}/m²" | }}, "loadunit": "{{{WEIGHTunit|kg}}}/m²" | ||
|{{#ifeq: {{{SNOWcat|}}}|0 | |{{#ifeq: {{{SNOWcat|}}}|0 | ||
− | |, "load": 0, "loadunit": "{{{ | + | |, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" |
|, "load": -999, "loadunit": "" | |, "load": -999, "loadunit": "" | ||
}} | }} | ||
}} | }} | ||
|{{#ifeq: {{{SNOWcat|}}}|0 | |{{#ifeq: {{{SNOWcat|}}}|0 | ||
− | |, "load": 0, "loadunit": "{{{ | + | |, "load": 0, "loadunit": "{{{LOADunit|kg/m²}}}" |
|, "load": -999, "loadunit": "" | |, "load": -999, "loadunit": "" | ||
}} | }} |