15.155
Bearbeitungen
(Verbesserung locationlist mit ~ zu Geokoordinate/Geolokation) |
(lat/lon-Prüfung verbessert. Debug-Switch) |
||
| Zeile 1: | Zeile 1: | ||
<noinclude>{{Doku}}</noinclude><includeonly><!-- | <noinclude>{{Doku}}</noinclude><includeonly>{{ifl | {{{Debug|}}} | {{#invoke:Debug|print_template_args}} }}<!-- | ||
Karte konfigurieren | Karte konfigurieren | ||
| Zeile 23: | Zeile 23: | ||
--> nicht gefunden</small> <!-- | --> nicht gefunden</small> <!-- | ||
--> }} <!-- | --> }} <!-- | ||
--> | {{#if: {{{lat|}}}{{{lon|}}} | --> | {{#if: {{#if: {{{lat|}}} | {{{lon|}}} }} <!-- else: if lat/lon? | ||
--> | {{#display_map: | --> | {{#display_map: {{{lat|}}}, {{{lon|}}} <!-- then: Karte ausgeben | ||
--> ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}} <!-- | --> ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}} <!-- | ||
--> | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} <!-- | --> | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}} <!-- | ||
| Zeile 51: | Zeile 51: | ||
--> | <!-- | --> | <!-- | ||
--> | {{#if: {{{location|}}}{{{locationlist|}}} <!-- | --> | {{#if: {{{location|}}}{{{locationlist|}}} <!-- | ||
--> | {{#arraymap: {{#arraymap: {{#replace: {{{location|}}};{{{locationlist|}}} | ~ | ;~ }} | --> | {{#arraymap: {{#arraymap: {{#replace: {{{location|}}};{{{locationlist|}}} | ~ | ;~ }} | ; | _l_ <!-- alles ab ~ abschneiden. Dabei in künstliche Liste umwandeln | ||
--> | {{#ifexpr: {{#count: _l_ | ~ }} = 0 | _l_ }} <!-- wenn Element mit ~, dann verwerfen | |||
--> | {{#ifexpr: {{#count: _l_ | ~ }} = 0 | _l_ }} <!-- | |||
--> | ; <!-- | --> | ; <!-- | ||
--> }} <!-- | --> }} <!-- | ||
--> | ; | --> | ; | _l_ <!-- | ||
--> | {{#set: Geokoordinate={{#geocode: _l_ }} <!-- | --> | {{#set: Geokoordinate={{#geocode: _l_ }} <!-- | ||
--> | Geolokation=_l_ <!-- | --> | Geolokation=_l_ <!-- | ||
| Zeile 64: | Zeile 61: | ||
--> | <!-- | --> | <!-- | ||
--> }} <!-- | --> }} <!-- | ||
--> | {{#if: {{{lat|}}}{{{lon|}}} | --> | {{#if: {{#if: {{{lat|}}} | {{{lon|}}} }} <!-- | ||
--> | {{#set: Geokoordinate={{{lat|}}}, {{{lon|}}} }} <!-- | --> | {{#set: Geokoordinate={{{lat|}}}, {{{lon|}}} }} <!-- | ||
--> }} <!-- | --> }} <!-- | ||