Vorlage:Buslinie: Unterschied zwischen den Versionen

Aus TUEpedia
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:
</noinclude>
</noinclude>


<includeonly>{{#get_web_data:url=https://www.tuepedia.de/img/bus_route.php?id={{{1}}}|format=csv|data=name=1}}
<includeonly>
{{#get_web_data:
url=https://www.openstreetmap.org/api/0.6/relation/{{{1}}}
|format=XML
|data=name=/osm/relation/tag[@k='name']/@v,from=/osm/relation/tag[@k='from']/@v,to=/osm/relation/tag[@k='to']/@v,network=/osm/relation/tag[@k='network']/@v,ref=/osm/relation/tag[@k='ref']/@v,operator=/osm/relation/tag[@k='operator']/@v
|use xpath
|cache seconds=120
}}
<table>
<tr><td colspan="2">Buslinie {{#external_value:ref}}</td></tr>
<tr><td colspan="2">{{#external_value:from}} &rarr; {{#external_value:to}}</td></tr>
<!--{{#external_value:name}}-->
<!--{{#external_value:network}}-->
<!--{{#external_value:operator}}-->
</table>
 
{{#get_web_data:url=https://www.tuepedia.de/img/bus_route.php?id={{{1}}}|format=csv|data=name=1}}
{{#for_external_table: [[{{{name}}} (Bushaltestelle)|{{{name}}}]]<br>}}</includeonly>
{{#for_external_table: [[{{{name}}} (Bushaltestelle)|{{{name}}}]]<br>}}</includeonly>

Version vom 18. Oktober 2018, 07:44 Uhr

{{Buslinie|id}} wobei id die ID der OpenStreetMap-Relation für die Busroute ist.