Difference between revisions of "Template:Oba map KCM"

From Transit.Wiki
m
m
Line 1: Line 1:
<includeonly>Bus stop map for [[{{BASEPAGENAME}}]].
+
<includeonly>Bus stop map for [[{{BASEPAGENAME}}]]. Stop list is below the map.
  
 
It is possible that not every trip serve every stop. See timetable for details.
 
It is possible that not every trip serve every stop. See timetable for details.
Line 8: Line 8:
 
|use xpath
 
|use xpath
 
|data=routeid=/response/data/list/route/id,routename=/response/data/list/route/shortname
 
|data=routeid=/response/data/list/route/id,routename=/response/data/list/route/shortname
|filters=/response/data/list/route/shortname={{{route|{{#ifeq:{{#show:{{BASEPAGENAME}}| ?rnum}}|0||{{#show:{{BASEPAGENAME}}| ?rnum}}}}{{#ifeq:{{#show:{{BASEPAGENAME}}| ?rlet}}|'||{{#show:{{BASEPAGENAME}}| ?rlet}}}}}}}
+
|filters=/response/data/list/route/shortname={{{route|{{#ifeq:{{#show:{{BASEPAGENAME}}| ?rvalue}}}}}}}
 
}}
 
}}
  
Line 20: Line 20:
 
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]] OR [[-Busway::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|scrollwheelzoom=yes|width=100%|height=100%|icon=images/f/f5/Mm_20_red.png
 
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]] OR [[-Busway::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|scrollwheelzoom=yes|width=100%|height=100%|icon=images/f/f5/Mm_20_red.png
 
|locations={{#for_external_table:
 
|locations={{#for_external_table:
{{{latitude}}},{{{longitude}}}~{{{displayname}}} ({{{direction}}})~Stop id: [{{SERVER}}/Departure_times_(Seattle)?id={{{id}}} {{{code}}} (real time departures)] ~File:Bus20.png;
+
{{{latitude}}},{{{longitude}}}~{{{displayname}}} ({{{direction}}})~Stop id: [{{SERVER}}/Departure_times_(Seattle)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{code}}} (real time departures)] ~File:Bus20.png;
 
}}
 
}}
 
}}</div>
 
}}</div>
Line 32: Line 32:
 
{{!}}{{{displayname}}}
 
{{!}}{{{displayname}}}
 
{{!}}{{{direction}}}
 
{{!}}{{{direction}}}
{{!}}[{{SERVER}}/Departure_times_(Seattle)?id={{{id}}} {{{code}}}]
+
{{!}}[{{SERVER}}/Departure_times_(Seattle)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{code}}}]
 
}}
 
}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Revision as of 00:29, 24 January 2023