Vorlage:Buslinie: Unterschied zwischen den Versionen

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


<includeonly>
<includeonly>{{#get_web_data:  
{{#get_web_data:  
url=https://www.openstreetmap.org/api/0.6/relation/{{{1}}}
url=https://www.openstreetmap.org/api/0.6/relation/{{{1}}}
|format=XML
|format=XML
Zeile 11: Zeile 10:
|use xpath  
|use xpath  
|cache seconds=120
|cache seconds=120
}}
}}<table class="busline">
<table class="busline">
<tr><td colspan="2" class="headline"><div class="bus-ref-label">Buslinie</div><div class="bus-ref" style="background-color: {{#external_value:colour}}">{{#external_value:ref}}</div><img class="symbol" src="https://www.swtue.de/fileadmin/user_upload/3Fahrgaeste/Symbole/{{#external_value:symbol}}.bmp" /></td></tr>
<tr><td colspan="2" class="headline"><div class="bus-ref-label">Buslinie</div><div class="bus-ref" style="background-color: {{#external_value:colour}}">{{#external_value:ref}}</div><img class="symbol" src="https://www.swtue.de/fileadmin/user_upload/3Fahrgaeste/Symbole/{{#external_value:symbol}}.bmp" /></td></tr>
<tr><td colspan="2" class="from-to">{{#external_value:from}} &rarr; {{#external_value:to}}</td></tr>
<tr><td colspan="2" class="from-to">{{#external_value:from}} &rarr; {{#external_value:to}}</td></tr>
Zeile 21: Zeile 19:
{{#for_external_table: <tr class="stop"><td colspan="2" class="stop">[[{{{name}}} (Bushaltestelle)|{{{name}}}]]</td></tr>}}
{{#for_external_table: <tr class="stop"><td colspan="2" class="stop">[[{{{name}}} (Bushaltestelle)|{{{name}}}]]</td></tr>}}
</table>
</table>
<htmltag tagname="style">
<htmltag tagname="style">
<nowiki>
<nowiki>
Zeile 73: Zeile 67:
}
}
</nowiki>
</nowiki>
</htmltag>
</htmltag></includeonly>
 
</includeonly>

Version vom 18. Oktober 2018, 08:23 Uhr

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