Vorlage:Karte/Legacy: Unterschied zwischen den Versionen

Aus FürthWiki
(Die Seite wurde neu angelegt: „<noinclude>{{Doku}}</noinclude><includeonly>{{ifl | {{{Debug|}}} | {{#invoke:Development|print_template_args}} }}<!-- Karte konfigurieren =================== -->{{ {{#ifeq:{{{box|ja}}}|nein|Karte/NoBoxDummy|Box}}<!-- Box -->| {{{headline | {{ifc | {{{geojson|}}} | {{PAGENAME}} }} }}}<!-- -->| {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }}<!-- if GeoJson-Karte existiert? -->| {{#display_map: geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}<!…“)
 
(Verschiebung GeoJson-Karte zu Modul:Karte)
 
(6 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}} }} }}}<!--
-->     | {{#display_map:                                                           <!--      then: Karte ausgeben
-->| {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }}<!-- if GeoJson-Karte existiert?
-->         {{#if: {{{location_|}}}{{{geocode|}}}                                     <!--
-->| {{#display_map: geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}<!-- then: Karte ausgeben
-->         | {{{geocode|{{{location_|}}}}}}                                         <!--
-->| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}<!--
-->           ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}};     <!--
-->| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}<!--
-->         }}                                                                       <!--
-->| zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes<!--
-->         {{{locationlist_|}}}                                                     <!--
-->}}<!--
-->       | width={{{width|}}} | height={{{height|}}} | zoom={{{zoom|}}} | enablefullscreen=yes | resizable=yes   <!--
-->| {{#if: {{{location_|}}}{{{locationlist_|}}}{{{geocode|}}}<!-- else: if location, locationlist oder geocode?
-->       }}                                                                         <!--
-->| {{#display_map:<!--      then: Karte ausgeben
-->       {{#if: {{{geojson|}}}                                                     <!--            if geojson übergeben?
-->{{#if: {{{location_|}}}{{{geocode|}}}<!--
-->       | <small>Karte [{{canonicalurl:GeoJson:{{{geojson|}}}}} {{{geojson|}}}]   <!--            then: Edit-Link
-->| {{{geocode|{{{location_|}}}}}}<!--
-->         nicht gefunden</small>                                                   <!--
-->~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}};<!--
-->       }}                                                                         <!--
-->}}<!--
-->     | {{#if: {{#if: {{{lat|}}} | {{{lon|}}} }}                                   <!--      else: if lat/lon?
-->{{{locationlist_|}}}<!--
-->       | {{#display_map: {{{lat|}}}, {{{lon|}}}                                   <!--            then: Karte ausgeben
-->| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}<!--
-->         ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}}       <!--
-->| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}<!--
-->         | width={{{width|}}} | height={{{height|}}} | zoom={{{zoom|}}} | enablefullscreen=yes | resizable=yes <!--
-->| zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes<!--
-->         }}                                                                       <!--
-->}}<!--
-->         {{#if: {{{geojson|}}}                                                   <!--            if geojson übergeben?
-->{{#if: {{{geojson|}}}<!--            if geojson übergeben?
-->         | <small>Karte [{{canonicalurl:GeoJson:{{{geojson|}}}}} {{{geojson|}}}] <!--            then: Edit-Link
-->| <small>Karte [{{canonicalurl:GeoJson:{{{geojson|}}}}} {{{geojson|}}}]<!--            then: Edit-Link
-->           nicht gefunden</small>                                                 <!--
-->nicht gefunden</small><!--
-->         }}                                                                       <!--
-->}}<!--
-->       | <!--{{Karte/KeineKarteMeldung                                               <!--            else: Fehlermeldung
-->| {{#if: {{#if: {{{lat|}}} | {{{lon|}}} }}<!--      else: if lat/lon?
-->         <!--| geojson={{{geojson_pagename|}}}                       <!--
-->| {{#display_map: {{{lat|}}}, {{{lon|}}}<!--            then: Karte ausgeben
-->         <!--| form={{{form|nein}}}                                                   <!--
-->~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}}<!--
-->         <!--}}                                                                       <!--
-->| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}<!--
-->         [[Kategorie:Ohne Position]]<br>Karte temporär außer Betrieb<br>&nbsp;                                             <!--
-->| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}<!--
-->       }}                                                                         <!--            end if lat/lon
-->| zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes<!--
-->     }}                                                                           <!--      end if location
-->}}<!--
-->{{#if: {{{geojson|}}}<!--            if geojson übergeben?
-->| <small>Karte [{{canonicalurl:GeoJson:{{{geojson|}}}}} {{{geojson|}}}]<!--            then: Edit-Link
-->nicht gefunden</small><!--
-->}}<!--
-->|<!--{{Karte/KeineKarteMeldung<!--            else: Fehlermeldung
--><!--| geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}<!--
--><!--| form={{{form|nein}}}<!--
--><!--}}<!--
-->[[Kategorie:Ohne Position]]<br>Karte temporär außer Betrieb<br>&nbsp;<!--
-->}}<!--            end if lat/lon
-->}}<!--      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