Difference between revisions of "Template:GTFS map"
m |
m |
||
(9 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
<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}}}~{{{to}}}<br>Stop id: {{#if:{{{511ag|}}}|[{{SERVER}}/Departure_times?id={{{id}}}&provider={{#show:{{BASEPAGENAME}}|?provider}}&linkfrom={{BASEPAGENAME}} {{{id}}} (real time departures)]|{{# | + | {{{latitude}}},{{{longitude}}}~{{{displayname}}}~{{{to}}}<br>Stop id: {{#if:{{{511ag|}}}|[{{SERVER}}/Departure_times?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}} (real time departures)]| |
+ | {{#switch:{{#show:{{BASEPAGENAME}}|?provider}}|MTS|NCTD=[{{SERVER}}/Departure_times_(San_Diego)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}} (real time departures)]|Los Angeles Metro=[{{SERVER}}/Departure_times_(Los_Angeles)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}} (real time departures)]|{{{id}}}}}}}~File:Bus20.png; | ||
}} | }} | ||
}}</div> | }}</div> | ||
Line 24: | Line 25: | ||
{{!}}{{{displayname}}} | {{!}}{{{displayname}}} | ||
{{!}}{{{to}}} | {{!}}{{{to}}} | ||
− | {{!}}{{#if:{{{511ag|}}}|[{{SERVER}}/Departure_times?id={{{id}}}&provider={{#show:{{BASEPAGENAME}}|?provider}}&linkfrom={{BASEPAGENAME}} {{{id}}}]|{{# | + | {{!}}{{#if:{{{511ag|}}}|[{{SERVER}}/Departure_times?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}}]|{{#switch:{{#show:{{BASEPAGENAME}}|?provider}}|MTS|NCTD=[{{SERVER}}/Departure_times_(San_Diego)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}}]|Los Angeles Metro=[{{SERVER}}/Departure_times_(Los_Angeles)?id={{{id}}}&provider={{urlencode:{{#show:{{BASEPAGENAME}}|?provider}}}}&linkfrom={{urlencode:{{BASEPAGENAME}}}} {{{id}}}]|{{{id}}}}}}} |
}} | }} | ||
|} | |} | ||
</includeonly> | </includeonly> |