Difference between revisions of "Template:Trimet map"
m |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|format=XML | |format=XML | ||
|use xpath | |use xpath | ||
− | |data=displayname=/resultSet/route/dir/stop/@desc,direction | + | |data=displayname=/resultSet/route/dir/stop/@desc,direction=/resultSet/route/dir/stop/@dir,id=/resultSet/route/dir/stop/@locid,latitude=/resultSet/route/dir/stop/@lat,longitude=/resultSet/route/dir/stop/@lng |
}} | }} | ||
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|scrollwheelzoom=yes|icon=Mm_20_red.png | <div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|scrollwheelzoom=yes|icon=Mm_20_red.png | ||
|locations={{#for_external_table: | |locations={{#for_external_table: | ||
− | {{{latitude}}},{{{longitude}}}~{{{displayname}}} ({{{direction}}})~Stop id: [ | + | {{{latitude}}},{{{longitude}}}~{{{displayname}}} ({{{direction}}})~Stop id: [{{SERVER}}/Departure_times_(Portland)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}} (real time departures)] ~Bus20.png; |
}} | }} | ||
}}</div> | }}</div> |