Vorlage:Umkreissuche Adresse
(Unterschied zwischen Versionen)
Zeile 4: | Zeile 4: | ||
|{{#explode:{{{Entfernung|}}}| |0}}}}{{#vardefine:u|{{#explode:{{{Entfernung|}}}| |1}}}}{{#ifeq:{{#var:u}} | |{{#explode:{{{Entfernung|}}}| |0}}}}{{#vardefine:u|{{#explode:{{{Entfernung|}}}| |1}}}}{{#ifeq:{{#var:u}} | ||
|km|{{#vardefine:ee|{{#var:e}}}}|{{#vardefine:ee|{{#expr:{{#var:e}} div 1000}}}}}}{{#vardefine:Breite | |km|{{#vardefine:ee|{{#var:e}}}}|{{#vardefine:ee|{{#expr:{{#var:e}} div 1000}}}}}}{{#vardefine:Breite | ||
− | |{{#explode:{{ | + | |{{#explode:{{{Geopunkt}}}|,|0}}}}{{#vardefine:Länge |
− | |{{#explode:{{ | + | |{{#explode:{{{Geopunkt}}}| |1}}}}{{#vardefine:BreiteO |
− | |{{#expr:{{#explode:{{ | + | |{{#expr:{{#explode:{{{Geopunkt}}}|,|0}}+{{#var:ee}}/111}}}}{{#vardefine:BreiteU |
− | |{{#expr:{{#explode:{{ | + | |{{#expr:{{#explode:{{{Geopunkt}}}|,|0}}-{{#var:ee}}/111}}}}{{#vardefine:LängeR |
− | |{{#expr:{{#explode:{{ | + | |{{#expr:{{#explode:{{{Geopunkt}}}| |1}}+{{#var:ee}}/{{#expr:111*cos({{#var:BreiteO}}*0.01745)}}}}}}{{#vardefine:LängeL |
− | |{{#expr:{{#explode:{{ | + | |{{#expr:{{#explode:{{{Geopunkt}}}| |1}}-{{#var:ee}}/{{#expr:111*cos({{#var:BreiteO}}*0.01745)}}}}}}{{#vardefine:BO|{{#sub:{{geoformat |
|{{#var:BreiteO}}}}|0|10}}}}{{#vardefine:BU | |{{#var:BreiteO}}}}|0|10}}}}{{#vardefine:BU | ||
|{{#sub:{{geoformat|{{#var:BreiteU}}}}|0|10}}}}{{#vardefine:LR | |{{#sub:{{geoformat|{{#var:BreiteU}}}}|0|10}}}}{{#vardefine:LR | ||
Zeile 16: | Zeile 16: | ||
[[Category:Adresse]]{{#if:{{{Art|}}}|[[Art::{{{Art|}}}]]|}} | [[Category:Adresse]]{{#if:{{{Art|}}}|[[Art::{{{Art|}}}]]|}} | ||
[[Geobreite::<{{#var:BO}}]][[Geolänge::<{{#var:LR}}]][[Geobreite::>{{#var:BU}}]][[Geolänge::>{{#var:LL}}]] | [[Geobreite::<{{#var:BO}}]][[Geolänge::<{{#var:LR}}]][[Geobreite::>{{#var:BU}}]][[Geolänge::>{{#var:LL}}]] | ||
− | |userparam={{ | + | |userparam={{{Geopunkt}}}+{{#var:ee}}+{{#var:u}} |
|?Geokoordinate | |?Geokoordinate | ||
|format=template | |format=template |
Version vom 26. März 2014, 20:36 Uhr
This is the 'Umkreissuche Adresse' template. It should be called via the Formular:Umkreissuche Adresse form.