15.745
Bearbeitungen
(Karte width/height auto) |
(location/locationlist reaktivert) |
||
| Zeile 1: | Zeile 1: | ||
<noinclude>{{IstKlasse|Gebäude}}</noinclude><includeonly>{{ifl | {{{Debug|}}} | {{#invoke:Development|print_template_args}} }}<!-- | <noinclude>{{IstKlasse|Gebäude}}</noinclude><includeonly>{{ifl | {{{Debug|}}} | {{#invoke:Development|print_template_args}} }}<!-- | ||
-->{{#if: {{#if: {{{lat|}}} | {{{lon|}}} }} {{{ | --> {{#if: {{#if: {{{lat|}}} | {{{lon|}}} }} {{{location|}}} {{{geojson|}}} {{ifl | {{{GeoJsonKarte|}}} }} {{#ifexist: GeoJson:{{PAGENAME}} | ja }} <!-- Soll überhaupt ein Kartentab angezeigt werden? | ||
-->{{ifl | {{{Ehemals|}}} | | nein }} {{{Straße|}}} {{{Straße2|}}} {{{Straße3|}}}<!-- | --> {{ifl | {{{Ehemals|}}} | | nein }} {{{Straße|}}} {{{Straße2|}}} {{{Straße3|}}} <!-- | ||
-->| {{ #invoke:Karte{{ifl|{{{Work|}}}|/Work}}|Karte<!-- | --> | {{ #invoke:Karte{{ifl|{{{Work|}}}|/Work}}|Karte <!-- | ||
-->| lat={{{lat|}}}<!-- | --> | lat={{{lat|}}} <!-- | ||
-->| lon={{{lon|}}}<!-- | --> | lon={{{lon|}}} <!-- | ||
-->| locationlist=<!-- | --> | locationlist= <!-- | ||
-->{{#if: {{{ | --> {{#if: {{{location|}}} <!-- location in Liste aufnehmen | ||
-->| {{{ | --> | {{{location|}}}~[[{{PAGENAME}}]]; <!-- | ||
-->}}<!-- | --> }} <!-- | ||
-->{{#arraymap: {{#ask: [[:+]] [[!{{PAGENAME}}]] [[Kategorie:Gebäude]] [[AnzahlGebäude::1]] [[TeilDesGebäudeKomplexes::{{PAGENAME}}]]<!-- alle Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | --> {{#arraymap: {{#ask: [[:+]] [[!{{PAGENAME}}]] [[Kategorie:Gebäude]] [[AnzahlGebäude::1]] [[TeilDesGebäudeKomplexes::{{PAGENAME}}]] <!-- alle Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | ||
-->| format=plainlist | sep=_;_ | link=none }}<!-- | --> | format=plainlist | sep=_;_ | link=none }} <!-- | ||
-->| _;_ | _g_<!-- | --> | _;_ | _g_ <!-- | ||
-->| {{#arraymap: {{#show: _g_ | ?Geokoordinate | format=plainlist | link=none | valuesep=_;_ }} | _;_ | _k_<!-- alle Geokoordinaten der Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | --> | {{#arraymap: {{#show: _g_ | ?Geokoordinate | format=plainlist | link=none | valuesep=_;_ }} | _;_ | _k_ <!-- alle Geokoordinaten der Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | ||
-->| {{#coordinates: _k_ | format=float | directional=no }}~[[_g_]];<!-- kompaktere Darstellung via float nötig bei langer location-Liste | --> | {{#coordinates: _k_ | format=float | directional=no }}~[[_g_]]; <!-- kompaktere Darstellung via float nötig bei langer location-Liste | ||
-->|<!-- kein Semikolon | --> | <!-- kein Semikolon | ||
-->}}<!-- | --> }} <!-- | ||
-->|<!-- | --> | <!-- | ||
-->}}<!-- | --> }} <!-- | ||
-->{{#if: {{{Straße|}}} {{{Straße2|}}} {{{Straße3|}}}<!-- | --> {{#if: {{{Straße|}}} {{{Straße2|}}} {{{Straße3|}}} <!-- | ||
-->| {{#arraymap: {{{Straße|}}};{{{Straße2|}}};{{{Straße3|}}} | ; | _s_<!-- durch alle Straße/Hausnummer-Kombis durchiterieren | --> | {{#arraymap: {{{Straße|}}};{{{Straße2|}}};{{{Straße3|}}} | ; | _s_ <!-- durch alle Straße/Hausnummer-Kombis durchiterieren | ||
-->| {{#arraymap: {{#switch: _s_ | {{{Straße|}}}={{{Hausnummer|}}} | {{{Straße2|}}}={{{Hausnummer2|}}} | {{{Straße3|}}}={{{Hausnummer3|}}} }}<!-- | --> | {{#arraymap: {{#switch: _s_ | {{{Straße|}}}={{{Hausnummer|}}} | {{{Straße2|}}}={{{Hausnummer2|}}} | {{{Straße3|}}}={{{Hausnummer3|}}} }} <!-- | ||
-->| ; | _h_<!-- | --> | ; | _h_ <!-- | ||
-->| {{#ifexpr: 0{{#show: {{PAGENAME}} | ?AnzahlGebäude }} > 1<!-- Gebäude-Komplex? | --> | {{#ifexpr: 0{{#show: {{PAGENAME}} | ?AnzahlGebäude }} > 1 <!-- Gebäude-Komplex? | ||
-->| {{#ifexpr: {{#ask: [[:+]] [[!{{PAGENAME}}]] [[Kategorie:Gebäude]] [[AnzahlGebäude::1]] [[StraßeHnr::_s_ _h_]] | format=count }} > 0<!-- Einzel-Gebäude-Seite(n) via StraßeHnr auf Vorhandensein prüfen | --> | {{#ifexpr: {{#ask: [[:+]] [[!{{PAGENAME}}]] [[Kategorie:Gebäude]] [[AnzahlGebäude::1]] [[StraßeHnr::_s_ _h_]] | format=count }} > 0 <!-- Einzel-Gebäude-Seite(n) via StraßeHnr auf Vorhandensein prüfen | ||
-->| {{#arraymap: {{#ask: [[:+]] [[!{{PAGENAME}}]] [[Kategorie:Gebäude]] [[AnzahlGebäude::1]] [[StraßeHnr::_s_ _h_]]<!-- alle Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | --> | {{#arraymap: {{#ask: [[:+]] [[!{{PAGENAME}}]] [[Kategorie:Gebäude]] [[AnzahlGebäude::1]] [[StraßeHnr::_s_ _h_]] <!-- alle Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | ||
-->| format=plainlist | sep=_;_ | link=none }}<!-- | --> | format=plainlist | sep=_;_ | link=none }} <!-- | ||
-->| _;_ | _g_<!-- | --> | _;_ | _g_ <!-- | ||
-->| {{#arraymap: {{#show: _g_ | ?Geokoordinate | format=plainlist | link=none | valuesep=_;_ }} | _;_ | _k_<!-- alle Geokoordinaten der Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | --> | {{#arraymap: {{#show: _g_ | ?Geokoordinate | format=plainlist | link=none | valuesep=_;_ }} | _;_ | _k_ <!-- alle Geokoordinaten der Einzel-Gebäude-Seite(n) (sicherheitshalber) durchiterieren | ||
-->| {{#coordinates: _k_ | format=float | directional=no }}~[[_g_]];<!-- kompaktere Darstellung via float nötig bei langer location-Liste | --> | {{#coordinates: _k_ | format=float | directional=no }}~[[_g_]]; <!-- kompaktere Darstellung via float nötig bei langer location-Liste | ||
-->|<!-- kein Semikolon | --> | <!-- kein Semikolon | ||
-->}}<!-- | --> }} <!-- | ||
-->|<!-- kein Semikolon | --> | <!-- kein Semikolon | ||
-->}}<!-- | --> }} <!-- | ||
-->| {{#ifexist: _s_ _h_<!-- Einzel-Gebäude-Seite(n) auf Vorhandensein prüfen | --> | {{#ifexist: _s_ _h_ <!-- Einzel-Gebäude-Seite(n) auf Vorhandensein prüfen | ||
-->| {{#ifexpr: {{#len: {{#replace: _s_ _h_ | {{PAGENAME}} | }} }} = 0 or<!-- Sich selbst erkennen, wenn "_s_ _h_" = {{PAGENAME}} oder | --> | {{#ifexpr: {{#len: {{#replace: _s_ _h_ | {{PAGENAME}} | }} }} = 0 or <!-- Sich selbst erkennen, wenn "_s_ _h_" = {{PAGENAME}} oder | ||
-->{{#len: {{#replace: {{#show: _s_ _h_ | ?Seite | link=none }} | {{PAGENAME}} | }} }} = 0<!-- Seite-Attribut von "_s_ _h_" = {{PAGENAME}}. Damit werden auch Weiterleitungen abgefangen | --> {{#len: {{#replace: {{#show: _s_ _h_ | ?Seite | link=none }} | {{PAGENAME}} | }} }} = 0 <!-- Seite-Attribut von "_s_ _h_" = {{PAGENAME}}. Damit werden auch Weiterleitungen abgefangen | ||
-->| {{ifl | {{{Ehemals|}}} | | _s_ _h_,Fürth,Bayern,{{{PLZ|}}},Deutschland~[[_s_ _h_]]; }}<!-- dann nach sich selbst suchen | --> | {{ifl | {{{Ehemals|}}} | | _s_ _h_,Fürth,Bayern,{{{PLZ|}}},Deutschland~[[_s_ _h_]]; }} <!-- dann nach sich selbst suchen | ||
-->| {{#if: {{#show: _s_ _h_ | ?Geokoordinate | link=none }}<!-- | --> | {{#if: {{#show: _s_ _h_ | ?Geokoordinate | link=none }} <!-- | ||
-->| {{#arraymap: {{#show: _s_ _h_ | ?Geokoordinate | format=plainlist | link=none | valuesep=_;_ }} | _;_ | _k_<!-- alle Geokoordinaten der Einzel-Gebäude-Seite (sicherheitshalber) durchiterieren | --> | {{#arraymap: {{#show: _s_ _h_ | ?Geokoordinate | format=plainlist | link=none | valuesep=_;_ }} | _;_ | _k_ <!-- alle Geokoordinaten der Einzel-Gebäude-Seite (sicherheitshalber) durchiterieren | ||
-->| {{#coordinates: _k_ | format=float | directional=no }}~[[_s_ _h_]];<!-- kompaktere Darstellung via float nötig bei langer location-Liste | --> | {{#coordinates: _k_ | format=float | directional=no }}~[[_s_ _h_]]; <!-- kompaktere Darstellung via float nötig bei langer location-Liste | ||
-->|<!-- kein Semikolon | --> | <!-- kein Semikolon | ||
-->}}<!-- | --> }} <!-- | ||
-->| {{ifl | {{{Ehemals|}}} | | _s_ _h_,Fürth,Bayern,{{{PLZ|}}},Deutschland~[[_s_ _h_]]; }}<!-- Einzel-Gebäude-Seite existiert zwar, hat aber keine Geokoordinate | --> | {{ifl | {{{Ehemals|}}} | | _s_ _h_,Fürth,Bayern,{{{PLZ|}}},Deutschland~[[_s_ _h_]]; }} <!-- Einzel-Gebäude-Seite existiert zwar, hat aber keine Geokoordinate | ||
-->}}<!-- | --> }} <!-- | ||
-->}}<!-- | --> }} <!-- | ||
-->| {{ifl | {{{Ehemals|}}} | | _s_ _h_,Fürth,Bayern,{{{PLZ|}}},Deutschland~_s_ _h_; }}<!-- wenn keine Einzel-Gebäude-Seite existiert, halt nach _s_ _h_ suchen | --> | {{ifl | {{{Ehemals|}}} | | _s_ _h_,Fürth,Bayern,{{{PLZ|}}},Deutschland~_s_ _h_; }} <!-- wenn keine Einzel-Gebäude-Seite existiert, halt nach _s_ _h_ suchen | ||
-->}}<!-- | --> }} <!-- | ||
-->}}<!-- | --> }} <!-- | ||
-->| {{#if: {{{ | --> | {{#if: {{{location|}}} | | {{ifl | {{{Ehemals|}}} | | _s_ _h_,Fürth,Bayern,{{{PLZ|}}},Deutschland~[[_s_ _h_]]; }} }} <!-- wenn Einzel-Gebäude, halt nur nach sich selbst suchen | ||
-->}}<!-- | --> }} <!-- | ||
-->|<!-- kein Semikolon | --> | <!-- kein Semikolon | ||
-->}}<!-- | --> }} <!-- | ||
-->|<!-- kein Semikolon | --> | <!-- kein Semikolon | ||
-->}}<!-- | --> }} <!-- | ||
-->| {{#if: {{{lat|}}} {{{lon|}}} {{{ | --> | {{#if: {{{lat|}}} {{{lon|}}} {{{location|}}} {{{geojson|}}} {{ifl | {{{GeoJsonKarte|}}} }} {{ifl | {{{Ehemals|}}} }} <!-- Seiten ohne lat/lon/location/geojson/Straße und nicht Ehemals | ||
-->|| {{PAGENAME}},Fürth,Bayern,Deutschland~[[{{PAGENAME}}]];<!-- Suche ggf. fehlerbehaftet ohne PLZ. Pin könnte im Landkreis landen | --> || {{PAGENAME}},Fürth,Bayern,Deutschland~[[{{PAGENAME}}]]; <!-- Suche ggf. fehlerbehaftet ohne PLZ. Pin könnte im Landkreis landen | ||
-->}}<!-- | --> }} <!-- | ||
-->}}<!-- | --> }} <!-- | ||
-->| geojson={{ifc | {{{geojson|}}} | {{ifl | {{{GeoJsonKarte|}}} | {{PAGENAME}} }} }}<!-- explizit wenn geojson o. GeoJsonKarte=ja | --> | geojson={{ifc | {{{geojson|}}} | {{ifl | {{{GeoJsonKarte|}}} | {{PAGENAME}} }} }} <!-- explizit wenn geojson o. GeoJsonKarte=ja | ||
-->| zoom={{{zoom|18}}}<!-- | --> | zoom={{{zoom|18}}} <!-- | ||
-->| width=auto<!-- passt sich automatisch ein | --> | width=auto <!-- passt sich automatisch ein | ||
-->| height=auto<!-- passt sich automatisch ein | --> | height=auto <!-- passt sich automatisch ein | ||
-->| box=nein<!-- keine eigene Box, da Teil der Faktenbox | --> | box=nein <!-- keine eigene Box, da Teil der Faktenbox | ||
-->| form=ja<!-- Formular-Hinweis | --> | form=ja <!-- Formular-Hinweis | ||
-->| Debug={{{Debug|}}}<!-- | --> | Debug={{{Debug|}}} <!-- | ||
-->| Work={{{Work|}}}<!-- | --> | Work={{{Work|}}} <!-- | ||
-->}}<!-- | --> }} <!-- | ||
-->}}<!-- | --> }} <!-- | ||
--></includeonly> | --></includeonly> | ||