15.101
Bearbeitungen
(Miteinbeziehung TeilDesGebäudeKomplexes) |
(location/locationlist temporär deaktiviert) |
||
| (10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<noinclude>{{IstKlasse|Gebäude}}</noinclude><includeonly><!-- | <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|}}}<!-- | ||
--> | {{ Karte | -->| {{ Karte<!-- | ||
--> | -->| lat={{{lat|}}}<!-- | ||
--> | -->| lon={{{lon|}}}<!-- | ||
--> | -->| locationlist=<!-- | ||
--> | -->{{#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 | ||
--> | -->}}<!-- | ||
--> | -->}}<!-- | ||
--> | -->| geojson={{ifc | {{{geojson|}}} | {{ifl | {{{GeoJsonKarte|}}} | {{PAGENAME}} }} }}<!-- explizit wenn geojson o. GeoJsonKarte=ja | ||
--> }} | -->| zoom={{{zoom|18}}}<!-- | ||
-->| width=<!-- passt sich automatisch ein | |||
-->| height=<!-- passt sich automatisch ein | |||
-->| box=nein<!-- keine eigene Box, da Teil der Faktenbox | |||
-->| form=ja<!-- Formular-Hinweis | |||
-->| Debug={{{Debug|}}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
--></includeonly> | --></includeonly> | ||