p (Tekstin korvaus – ”\{\{\#set_internal:([^|]+)[|]” muotoon ”{{#subobject: |$1=1”) |
Ei muokkausyhteenvetoa |
||
| (Yhtä välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 1: | Rivi 1: | ||
<includeonly><div style="display: none;"> | <includeonly><div style="display: none;"> | ||
{{#subobject: |Linkki | |||
<!-- Get SiteID --> | |||
{{#arraydefine:SiteID|{{#show: {{FULLPAGENAME}}|?SiteID#- |default=- }}|,|}} | |||
<!-- /Get SiteID --> | |||
<!-- Get site properties --> | |||
{{#arraydefine:SiteProps|{{#ask: [[Luokka:Paikka]][[SiteID::{{#arrayindex:SiteID|0}}]] | |||
|?SiteID#- | |||
|?Alue#- | |||
|?Vesistö#- | |||
|?KoordPohj#- | |||
|?KoordIta#- | |||
|?Kunta#- | |||
|?ELY-keskus#- | |||
|?Maakunta#- | |||
|?Ylläpito#- | |||
|?Seuranta#- | |||
|?Päävesistö#- | |||
|? | |||
|?Campaign#- | |||
|mainlabel=- |format=array |manysep=, |propsep=¤¤¤}}|¤¤¤}} | |||
<!-- /Get site properties --> | |||
<!-- Set observation properties --> | |||
{{#subobject: |Linkki=true | |||
<!-- SPECIFIC --> | |||
|Nimi={{{Nimi|}}} | |||
|Url={{{Url|}}} | |Url={{{Url|}}} | ||
|Kuvaus={{{Kuvaus|}}} | |Kuvaus={{{Kuvaus|}}} | ||
<!-- COMMON --> | |||
|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={{{Tags|}}}|+sep=, | |||
|Lisätiedot={{{AddInfo|}}} | |||
|Image={{#if: {{{Img|}}}|Tiedosto:{{#replace:{{{Img|}}}|Tiedosto:|}}}} | |||
<!-- METADATA --> | |||
|SiteID={{#arrayindex:SiteProps|0|-}} | |||
|SiteName={{#arrayindex:SiteProps|11|-}} | |||
|Alue={{#arrayindex:SiteProps|1|}}|+sep=, | |||
|Vesistö={{#arrayindex:SiteProps|2|}}|+sep=, | |||
|Päävesistö={{#arrayindex:SiteProps|10|}} | |||
|Kunta={{#if: {{{Muni|}}}|{{{Muni|}}}|{{#arrayindex:SiteProps|5|-}}}}|+sep=, | |||
|ELY-keskus={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?ELY-keskus#- }}|{{#arrayindex:SiteProps|6|-}}}} | |||
|Maakunta={{#if: {{{Muni|}}}|{{#show: {{{Muni|}}} |?Maakunta#- }}|{{#arrayindex:SiteProps|7|-}}}}|+sep=, | |||
|Ylläpito={{#arrayindex:SiteProps|8|Tavallisen käyttäjän ylläpitämä}} | |||
|Seuranta={{#if: {{{Seuranta|}}}|{{{Seuranta|}}}|{{#arrayindex:SiteProps|9|-}}}} | |||
|Campaign={{#arrayindex:SiteProps|12|-}} | |||
|Source={{{Source|}}} | |||
|Sort date={{{Observation time|2000-01-01 00:00}}} | |||
|User={{{User|}}} | |||
}} | }} | ||
</div> | <!-- /Set observation properties --> | ||
</div></includeonly> | |||


