Baustelle.svg Eine Bearbeitungssperre steht an, welche von 23. Januar bis einschließlich 25. Januar dauern wird. In dieser Zeit wird das FürthWiki weiterhin lesbar, aber nicht bearbeitbar sein.

Vorlage:Karte: Unterschied zwischen den Versionen

Aus FürthWiki

Modul:Karte verwendet ParentArgs
(Attribut GeoJson)
(Modul:Karte verwendet ParentArgs)
 
(29 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>{{Doku}}</noinclude><includeonly><!--
<noinclude>{{Doku}}</noinclude><includeonly>{{#invoke:Karte{{ifl|{{{Work|}}}|/Work}}|Karte}}</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|}}}                                    <!-- else: if location? -->
    | {{#display_map: {{{location|}}}                                            <!--      then: Karte ausgeben -->
      ~ {{{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: {{{lat|}}}{{{lon|}}}                                                <!--      else: if lat/lon? -->
      | {{#display_map: {{ifc | {{{lat|}}} | 0}}, {{ifc | {{{lon|}}} | 0}}      <!--            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
        }}
      | {{Karte/KeineKarteMeldung                                                <!--              else: Fehlermeldung -->
        | geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}
        | form={{{form|nein}}}
        }} <!--
-->    [[Kategorie:Ohne Position]]
      }}                                                                        <!--              end if lat/lon -->
    }}                                                                          <!--        end if location -->
  }}                                                                            <!-- end if GeoJson -->
| center
| right
}}<!-- Ende der Box
 
Attribute setzen
================
-->{{#if: {{{location|}}}                                   <!-- if location? -->
  | {{#set: Geokoordinate={{#geocode: {{{location|}}} }} |  <!-- then: location-Geokoordinate setzen -->
            Geolokation={{{location|}}}                  }} <!--      Geolokation setzen -->
  | {{#if: {{{lat|}}}{{{lon|}}}                            <!-- else: if lat/lon? -->
    | {{#set: Geokoordinate={{{lat|}}}, {{{lon|}}} }}      <!--      then: lat/lon- Geokoordinate setzen -->
    }}
  }}<!--
 
-->{{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }}
  | {{#set: GeoJson=GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }} }}
  }}<!--
 
-->{{#set: Zoomlevel={{ifc | {{{zoom|}}} | 16}} }}<!--
 
-->[[Kategorie:Hat Karte]]<!--
 
--></includeonly>