Vorlage:Karte: Unterschied zwischen den Versionen

besserer Variablen-Inhaltscheck
(#if: {{{location|}}} für Geolokation)
(besserer Variablen-Inhaltscheck)
Zeile 3: Zeile 3:
Karte konfigurieren
Karte konfigurieren
===================
===================
-->{{ {{#ifeq:{{{box|ja}}}|nein|Karte/NoBoxDummy|Box}}                             <!-- Box -->
-->{{ {{#ifeq:{{{box|ja}}}|nein|Karte/NoBoxDummy|Box}}                           <!-- Box -->
| {{{headline|{{{geojson|{{PAGENAME}}}}}}}}
| {{{headline|{{ifc | {{{geojson|}}} | {{PAGENAME}} }}}}}
| {{#ifexist: GeoJson:{{{geojson|{{PAGENAME}}}}}                                    <!-- if GeoJson-Karte existiert? -->
| {{#ifexist: GeoJson:{{ifc | {{{geojson|}}} | {{PAGENAME}} }}                   <!-- if GeoJson-Karte existiert? -->
   | {{#display_map: geojson={{{geojson|{{PAGENAME}}}}}                              <!-- then: Karte ausgeben -->
   | {{#display_map: geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}             <!-- then: Karte ausgeben -->
     | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}
     | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}
     | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}
     | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}
     | zoom={{{zoom|16}}} | enablefullscreen=yes | resizable=yes
     | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes
     }}
     }}
   | {{#if: {{{location|}}}{{{locationlist|}}}                                       <!-- else: if location? -->
   | {{#if: {{{location|}}}{{{locationlist|}}}                                   <!-- else: if location? -->
     | {{#display_map: {{{location|}}}                                               <!--      then: Karte ausgeben -->
     | {{#display_map: {{{location|}}}                                           <!--      then: Karte ausgeben -->
       ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}} ;
       ~ {{{popuptitle|{{{headline|{{PAGENAME}}}}}}}} ~ {{{popuptext|}}} ;
       {{{locationlist|}}}
       {{{locationlist|}}}
       | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}
       | width={{#ifeq:{{{box|ja}}}|nein|{{{width|50%}}}}}
       | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}
       | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}
       | zoom={{{zoom|16}}} | enablefullscreen=yes | resizable=yes
       | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes
       }}
       }}
     | {{#if: {{{lat|}}}{{{lon|}}}                                                   <!--      else: if lat/lon? -->
     | {{#if: {{{lat|}}}{{{lon|}}}                                               <!--      else: if lat/lon? -->
       | {{#display_map: {{{lat|0}}},{{{lon|0}}}                                    <!--            then: Karte ausgeben -->
       | {{#display_map: {{ifc | {{{lat|}}} | 0}}, {{ifc | {{{lon|}}} | 0}}       <!--            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%}}}}}
         | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}
         | height={{#ifeq:{{{box|ja}}}|nein|{{{height|25%}}}}}
         | zoom={{{zoom|16}}} | enablefullscreen=yes | resizable=yes
         | zoom={{ifc | {{{zoom|}}} | 16}} | enablefullscreen=yes | resizable=yes
         }}
         }}
       | {{Karte/KeineKarteMeldung                                                 <!--              else: Fehlermeldung -->
       | {{Karte/KeineKarteMeldung                                               <!--              else: Fehlermeldung -->
         | geojson={{{geojson|{{PAGENAME}}}}}
         | geojson={{ifc | {{{geojson|}}} | {{PAGENAME}} }}
         | form={{{form|nein}}}
         | form={{{form|nein}}}
         }} <!--
         }} <!--
-->    [[Kategorie:Ohne Position]]
-->    [[Kategorie:Ohne Position]]
       }}                                                                           <!--              end if lat/lon -->
       }}                                                                         <!--              end if lat/lon -->
     }}                                                                             <!--        end if location -->
     }}                                                                           <!--        end if location -->
   }}                                                                               <!-- end if GeoJson -->
   }}                                                                             <!-- end if GeoJson -->
| center
| center
| right
| right
Zeile 48: Zeile 48:
   }}<!--
   }}<!--


-->{{#set: Zoomlevel={{{zoom|16}}} }}<!--
-->{{#set: Zoomlevel={{ifc | {{{zoom|}}} | 16}} }}<!--


-->[[Kategorie:Hat Karte]]<!--
-->[[Kategorie:Hat Karte]]<!--


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