Difference between revisions of "Template:Oba map KCM"

From Transit.Wiki
m
m
 
(7 intermediate revisions by the same user not shown)
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|{{#show:{{BASEPAGENAME}}| ?rvalue}}}}}
 
}}
 
}}
  
Line 18: Line 18:
 
}}
 
}}
  
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]] OR [[-Busway::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|width=100%|height=100%|icon=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: [http://pugetsound.onebusaway.org/where/standard/stop.action?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 26: Line 26:
 
''Public transit data powered by OneBusAway.''
 
''Public transit data powered by OneBusAway.''
  
{|class="wikitable sortable"
+
{|class="infodata broadtable sortable"
 
! Stop name !! Direction !! Stop code
 
! Stop name !! Direction !! Stop code
 
{{#for_external_table:<nowiki/>
 
{{#for_external_table:<nowiki/>
Line 32: Line 32:
 
{{!}}{{{displayname}}}
 
{{!}}{{{displayname}}}
 
{{!}}{{{direction}}}
 
{{!}}{{{direction}}}
{{!}}[http://pugetsound.onebusaway.org/where/standard/stop.action?id={{{id}}} {{{code}}}]
+
{{!}}[{{SERVER}}/Departure_times_(Seattle)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{code}}}]
 
}}
 
}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Latest revision as of 00:51, 24 January 2023