15.745
Bearbeitungen
K (HeikoBot verschob die Seite Vorlage:Gebäude/Karte nach Vorlage:Gebäude/Karte/Locationlist, ohne dabei eine Weiterleitung anzulegen) |
(Teil-Verschiebung Vorlage:Gebäude/Karte zu Modul:Gebäude) |
||
| Zeile 1: | Zeile 1: | ||
<noinclude>{{IstKlasse|Gebäude}}</noinclude><includeonly> | <noinclude>{{IstKlasse|Gebäude}}</noinclude><includeonly><!-- | ||
--> | --> {{#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 | ||
--> | format=plainlist | sep=_;_ | link=none }} <!-- | |||
--> | _;_ | _g_ <!-- | |||
--> | {{#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 | |||
--> | <!-- kein Semikolon | |||
--> }} <!-- | |||
--> | <!-- | |||
--> }} <!-- | |||
--> {{#if: {{{Straße|}}} {{{Straße2|}}} {{{Straße3|}}} <!-- | |||
--> | {{#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|}}} }} <!-- | |||
--> | ; | _h_ <!-- | |||
--> | {{#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 | |||
--> | {{#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 }} <!-- | |||
--> | _;_ | _g_ <!-- | |||
--> | {{#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 | |||
--> | <!-- kein Semikolon | |||
--> }} <!-- | |||
--> | <!-- kein Semikolon | |||
--> }} <!-- | |||
--> | {{#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 | |||
--> {{#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 | |||
--> | {{#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 | |||
--> | {{#coordinates: _k_ | format=float | directional=no }}~[[_s_ _h_]]; <!-- kompaktere Darstellung via float nötig bei langer location-Liste | |||
--> | <!-- 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_; }} <!-- wenn keine Einzel-Gebäude-Seite existiert, halt nach _s_ _h_ suchen | |||
--> }} <!-- | |||
--> }} <!-- | |||
--> | {{#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 | |||
--> }} <!-- | |||
--> | {{#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 | |||
--> }} <!-- | |||
--> }} | |||