Difference between revisions of "Template:GTFS map"

From Transit.Wiki
m
Line 11: Line 11:
 
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|width=100%|height=100%|icon=mm_20_red.png
 
<div class=bigmap>{{#ask: [[-Place::{{BASEPAGENAME}}]]|?latlong|format=googlemaps|width=100%|height=100%|icon=mm_20_red.png
 
|locations={{#for_external_table:
 
|locations={{#for_external_table:
{{{latitude}}},{{{longitude}}}~{{{displayname}}}~{{{to}}}<br>Stop id: {{#if:{{{511|}}}|[[511 Departure times?id={{{id}}}&agency=511|{{{id}}} (real time departures)]]|{{{id}}}}}~File:Bus20.png;
+
{{{latitude}}},{{{longitude}}}~{{{displayname}}}~{{{to}}}<br>Stop id: {{#if:{{{511|}}}|[[511 Departure times?id={{{id}}}&agency=511|{{{id}}} (real time departures)]]|{{ifeq:{{{agency}}}|sacrt|Real time: [http://bustime.sacrt.com/bustime/eta/eta.jsp?id={{{id}}} Desktop], [http://m.sacrt.com/bdetails.aspx?stpid={{{id}}} Mobile]|{{{id}}}}}}}~File:Bus20.png;
 
}}
 
}}
 
}}</div>
 
}}</div>
Line 23: Line 23:
 
{{!}}{{{displayname}}}
 
{{!}}{{{displayname}}}
 
{{!}}{{{to}}}
 
{{!}}{{{to}}}
{{!}}{{#if:{{{511|}}}|[[511 Departure times?id={{{id}}}&agency=511|{{{id}}}]]|{{{id}}}}}
+
{{!}}{{#if:{{{511|}}}|[[511 Departure times?id={{{id}}}&agency=511|{{{id}}}]]|{{ifeq:{{{agency}}}|sacrt|Real time: [http://bustime.sacrt.com/bustime/eta/eta.jsp?id={{{id}}} Desktop], [http://m.sacrt.com/bdetails.aspx?stpid={{{id}}} Mobile]|{{{id}}}}}}}
 
}}
 
}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Revision as of 15:19, 8 April 2016