Difference between revisions of "Template:Bus to rail"

From Transit.Wiki
m
Line 1: Line 1:
<includeonly>{{#ifeq:{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]|format=count}}|0|{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} ({{{distance|1.5 mile}}})]]|template=Bus to rail process|link=none|userparam={{{showlinecon|}}}}}|{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]|template=Near stop|userparam={{{showlinecon|}}}|link=none}}}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]|format=count}}|0|{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} ({{{distance|1.5 mile}}})]]|template=Bus to rail process|link=none|userparam={{{showlinecon|}}}|limit={{{stnlimit|5}}}}}|{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]|template=Near stop|userparam={{{showlinecon|}}}|link=none}}}}</includeonly><noinclude>
 
To show bus routes serving nearby rail stations up to 1.5 mile by default, or just station name if it's closer than 0.5 mile. It will also list rail lines serving the stations.
 
To show bus routes serving nearby rail stations up to 1.5 mile by default, or just station name if it's closer than 0.5 mile. It will also list rail lines serving the stations.
  
Line 11: Line 11:
 
* distance - up to 1.5 mile by default. Change it to have longer distance (if station is further), or shorter (only closer ones will show).
 
* distance - up to 1.5 mile by default. Change it to have longer distance (if station is further), or shorter (only closer ones will show).
 
* showlinecon - optional. It is used to set filter for lines serving the rail station (use provider property to show lines from certain agency).
 
* showlinecon - optional. It is used to set filter for lines serving the rail station (use provider property to show lines from certain agency).
 +
* stnlimit - optional. It is used to limit the number of nearby stn shown. Default is 5.
 
</noinclude>
 
</noinclude>

Revision as of 00:53, 18 April 2024

To show bus routes serving nearby rail stations up to 1.5 mile by default, or just station name if it's closer than 0.5 mile. It will also list rail lines serving the stations.

Usage:

{{Bus to rail|1|distance=|showlinecon=}}

Parameters:

  • 1 - Category. If not indicated, all the nearby (rail stations) category will show. Use it to limit stations to a particularly agency (using category).
  • distance - up to 1.5 mile by default. Change it to have longer distance (if station is further), or shorter (only closer ones will show).
  • showlinecon - optional. It is used to set filter for lines serving the rail station (use provider property to show lines from certain agency).
  • stnlimit - optional. It is used to limit the number of nearby stn shown. Default is 5.