4.394
Bearbeitungen
HeikoK (Diskussion | Beiträge) (Attribut GeoJson) |
HeikoK (Diskussion | Beiträge) (Fall fehlende geojson-Karte bei lat/lon/location) |
||
| Zeile 3: | Zeile 3: | ||
Karte konfigurieren | Karte konfigurieren | ||
=================== | =================== | ||
-->{{ {{#ifeq:{{{box|ja}}}|nein|Karte/NoBoxDummy|Box}} | --> {{ {{#ifeq:{{{box|ja}}}|nein|Karte/NoBoxDummy|Box}} <!-- Box | ||
| {{{headline|{{ifc | {{{geojson|}}} | {{PAGENAME}} }}}}} | --> | {{{headline | {{ifc | {{{geojson|}}} | {{PAGENAME}} }} }}} <!-- | ||
| {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }} <!-- if GeoJson-Karte existiert? --> | --> | {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }} <!-- if GeoJson-Karte existiert? | ||
| {{#display_map: geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }} <!-- then: Karte ausgeben --> | --> | {{#display_map: geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }} <!-- then: Karte ausgeben | ||
| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} | --> | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} <!-- | ||
| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}} | --> | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}} <!-- | ||
| zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes | --> | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes <!-- | ||
}} | --> }} <!-- | ||
| {{#if: {{{location|}}}{{{locationlist|}}} <!-- else: if location? --> | --> | {{#if: {{{location|}}}{{{locationlist|}}} <!-- else: if location? | ||
| {{#display_map: {{{location|}}} <!-- then: Karte ausgeben --> | --> | {{#display_map: {{{location|}}} <!-- then: Karte ausgeben | ||
~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}} ; | --> ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}}; <!-- | ||
{{{locationlist|}}} | --> {{{locationlist|}}} <!-- | ||
| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} | --> | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} <!-- | ||
| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}} | --> | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}} <!-- | ||
| zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes | --> | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes <!-- | ||
}} | --> }} <!-- | ||
| {{#if: {{{lat|}}}{{{lon|}}} <!-- else: if lat/lon? --> | --> {{#if: {{{geojson|}}} <!-- if geojson übergeben? | ||
| {{#display_map: {{ifc | {{{lat|}}} | 0}}, {{ifc | {{{lon|}}} | 0}} <!-- then: Karte ausgeben --> | --> | <small>Karte [{{canonicalurl:GeoJson:{{{geojson|}}}}} {{{geojson|}}}] <!-- then: Edit-Link | ||
~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}} | --> nicht gefunden</small> <!-- | ||
| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} | --> }} <!-- | ||
| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}} | --> | {{#if: {{{lat|}}}{{{lon|}}} <!-- else: if lat/lon? | ||
| zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes | --> | {{#display_map: {{ifc | {{{lat|}}} | 0}}, {{ifc | {{{lon|}}} | 0}} <!-- then: Karte ausgeben | ||
}} | --> ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}} <!-- | ||
| {{Karte/KeineKarteMeldung <!-- | --> | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} <!-- | ||
| geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }} | --> | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}} <!-- | ||
| form={{{form|nein}}} | --> | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes <!-- | ||
}} <!-- | --> }} <!-- | ||
--> | --> {{#if: {{{geojson|}}} <!-- if geojson übergeben? | ||
}} <!-- | --> | <small>Karte [{{canonicalurl:GeoJson:{{{geojson|}}}}} {{{geojson|}}}] <!-- then: Edit-Link | ||
}} <!-- | --> nicht gefunden</small> <!-- | ||
}} <!-- end if GeoJson --> | --> }} <!-- | ||
| center | --> | {{Karte/KeineKarteMeldung <!-- else: Fehlermeldung | ||
| right | --> | geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }} <!-- | ||
}}<!-- Ende der Box | --> | form={{{form|nein}}} <!-- | ||
--> }} <!-- | |||
--> [[Kategorie:Ohne Position]] <!-- | |||
--> }} <!-- end if lat/lon | |||
--> }} <!-- end if location | |||
--> }} <!-- end if GeoJson | |||
--> | center <!-- | |||
--> | right <!-- | |||
--> }} <!-- Ende der Box | |||
Attribute setzen | Attribute setzen | ||
================ | ================ | ||
-->{{#if: {{{location|}}} | --> {{#if: {{{location|}}} <!-- | ||
--> | {{#set: Geokoordinate={{#geocode: {{{location|}}} }} <!-- | |||
--> | Geolokation={{{location|}}} <!-- | |||
--> }} <!-- | |||
--> | {{#if: {{{lat|}}}{{{lon|}}} <!-- | |||
--> | {{#set: Geokoordinate={{{lat|}}}, {{{lon|}}} }} <!-- | |||
--> }} <!-- | |||
--> }} <!-- | |||
-->{{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }} | --> {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }} <!-- | ||
--> | {{#set: GeoJson=GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }} }} <!-- | |||
--> }} <!-- | |||
-->{{#set: Zoomlevel={{ifc | {{{zoom|}}} | 16}} }}<!-- | --> {{#set: Zoomlevel={{ifc | {{{zoom|}}} | 16}} }} <!-- | ||
-->[[Kategorie:Hat Karte]]<!-- | --> [[Kategorie:Hat Karte]] <!-- | ||
--></includeonly> | --></includeonly> | ||