Vorlage:Karte/Legacy: Unterschied zwischen den Versionen

(Leerzeichen wiederhergestellt)
(Verschiebung GeoJson-Karte zu Modul:Karte)
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
Karte konfigurieren
Karte konfigurieren
===================
===================
--> {{ {{#ifeq:{{{box|ja}}}|nein|Karte/NoBoxDummy|Box}}                              <!-- Box
-->    {{#if: {{{location_|}}}{{{locationlist_|}}}{{{geocode|}}}                      <!-- else: if location, locationlist oder geocode?
--> | {{{headline | {{ifc | {{{geojson|}}} | {{PAGENAME}} }} }}}                    <!--
--> | {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }}                  <!-- if GeoJson-Karte existiert?
-->  | {{#display_map: geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}            <!-- then: Karte ausgeben
-->    | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}                          <!--
-->    | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}                        <!--
-->    | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes    <!--
-->    }}                                                                          <!--
-->  | {{#if: {{{location_|}}}{{{locationlist_|}}}{{{geocode|}}}                      <!-- else: if location, locationlist oder geocode?
-->    | {{#display_map:                                                            <!--      then: Karte ausgeben
-->    | {{#display_map:                                                            <!--      then: Karte ausgeben
-->        {{#if: {{{location_|}}}{{{geocode|}}}                                    <!--
-->        {{#if: {{{location_|}}}{{{geocode|}}}                                    <!--
Zeile 18: Zeile 10:
-->        }}                                                                      <!--
-->        }}                                                                      <!--
-->        {{{locationlist_|}}}                                                      <!--
-->        {{{locationlist_|}}}                                                      <!--
-->      | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}                       <!--
-->      | width={{{width|}}} | height={{{height|}}} | zoom={{{zoom|}}} | enablefullscreen=yes | resizable=yes  <!--
-->      | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}                     <!--
-->      | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes  <!--
-->      }}                                                                        <!--
-->      }}                                                                        <!--
-->      {{#if: {{{geojson|}}}                                                      <!--            if geojson übergeben?
-->      {{#if: {{{geojson|}}}                                                      <!--            if geojson übergeben?
Zeile 29: Zeile 19:
-->      | {{#display_map: {{{lat|}}}, {{{lon|}}}                                  <!--            then: Karte ausgeben
-->      | {{#display_map: {{{lat|}}}, {{{lon|}}}                                  <!--            then: Karte ausgeben
-->        ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}}        <!--
-->        ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}}        <!--
-->        | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}                     <!--
-->        | width={{{width|}}} | height={{{height|}}} | zoom={{{zoom|}}} | enablefullscreen=yes | resizable=yes <!--
-->        | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}                   <!--
-->        | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes <!--
-->        }}                                                                      <!--
-->        }}                                                                      <!--
-->        {{#if: {{{geojson|}}}                                                    <!--            if geojson übergeben?
-->        {{#if: {{{geojson|}}}                                                    <!--            if geojson übergeben?
Zeile 38: Zeile 26:
-->        }}                                                                      <!--
-->        }}                                                                      <!--
-->      | <!--{{Karte/KeineKarteMeldung                                                <!--            else: Fehlermeldung
-->      | <!--{{Karte/KeineKarteMeldung                                                <!--            else: Fehlermeldung
-->        <!--| geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}                      <!--
-->        <!--| geojson={{{geojson_pagename|}}}                      <!--
-->        <!--| form={{{form|nein}}}                                                  <!--
-->        <!--| form={{{form|nein}}}                                                  <!--
-->        <!--}}                                                                      <!--
-->        <!--}}                                                                      <!--
Zeile 44: Zeile 32:
-->      }}                                                                        <!--            end if lat/lon
-->      }}                                                                        <!--            end if lat/lon
-->    }}                                                                          <!--      end if location
-->    }}                                                                          <!--      end if location
-->  }}                                                                            <!-- end if GeoJson
--> | center                                                                        <!--
--> | right                                                                          <!--
--> }}                                                                              <!-- Ende der Box
Attribute setzen
================
--> {{ifl | {{{noattr|}}}                                                                                        <!--
--> |                                                                                                            <!--
--> | {{#if: {{{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
-->                  | ;                                                                                          <!--
-->                  }}                                                                                          <!--
-->    | ; | _l_                                                                                                <!--
-->    | {{#set: Geokoordinate={{#geocode: _l_ }}                                                                <!--
-->      |      Geolokation=_l_                                                                                <!--
-->      }}                                                                                                      <!--
-->    |                                                                                                        <!--
-->    }}                                                                                                        <!--
-->  | {{#if: {{#if: {{{lat|}}} | {{{lon|}}} }}                                                                  <!--
-->    | {{#set: Geokoordinate={{{lat|}}}, {{{lon|}}} }}                                                        <!--
-->    }}                                                                                                        <!--
-->  }}                                                                                                          <!--
     
-->  {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }}          <!--
-->  | {{#set: GeoJson=GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }} }} <!--
-->  }}                                                                    <!--
     
-->  {{#set: Zoomlevel={{ifc | {{{zoom|}}} | 16}} }} <!--
--> }} <!--
--> [[Kategorie:Hat Karte]] <!--


--></includeonly>
--></includeonly>

Aktuelle Version vom 12. Dezember 2025, 19:00 Uhr