Vorlage:Karte: Unterschied zwischen den Versionen

Aus FürthWiki

Umstellung Modul:Karte
K (HeikoBot verschob die Seite Vorlage:Karte/Legacy nach Vorlage:Karte, ohne dabei eine Weiterleitung anzulegen)
(Umstellung Modul:Karte)
 
Zeile 1: Zeile 1:
<noinclude>{{Doku}}</noinclude><includeonly>{{ifl | {{{Debug|}}} | {{#invoke:Development|print_template_args}} }}<!--
<noinclude>{{Doku}}</noinclude><includeonly>{{#invoke:Karte{{ifl|{{{Work|}}}|/Work}}|Karte|lat={{{lat|}}}|lon={{{lon|}}}|location={{{location|}}}|geocode={{{geocode|}}}|locationlist={{{locationlist|}}}|geojson={{{geojson|}}}|zoom={{{zoom|}}}|popuptitle={{{popuptitle|}}}|popuptext={{{popuptext|}}}|box={{{box|}}}|noattr={{{noattr|}}}|headline={{{headline|}}}|width={{{width|}}}|height={{{height|}}}|form={{{form|}}}}}</includeonly>
 
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}} }}<!-- 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
-->{{#if: {{{location_|}}}{{{geocode|}}}<!--
-->| {{{geocode|{{{location_|}}}}}}<!--
-->~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}};<!--
-->}}<!--
-->{{{locationlist_|}}}<!--
-->| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}<!--
-->| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}<!--
-->| 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><!--
-->}}<!--
-->| {{#if: {{#if: {{{lat|}}} | {{{lon|}}} }}<!--      else: if lat/lon?
-->| {{#display_map: {{{lat|}}}, {{{lon|}}}<!--            then: Karte ausgeben
-->~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}}<!--
-->| width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}<!--
-->| height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}<!--
-->| 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><!--
-->}}<!--
-->|<!--{{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>