Difference between revisions of "Template:Bus to rail"

From Transit.Wiki
m
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#ask:[[Category:{{{1|rail stations}}}]][[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]|format=count}}|0|{{#ask:[[Category:{{{1|rail stations}}}]][[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]|format=ul}}|{{#ask:[[Category:{{{1|rail stations}}}]][[latlong::{{#show:{{PAGENAME}}|?latlong}} ({{{distance|1.5 mile}}})]]|template=Bus to rail|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|}}}}}|{{#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 station name if it's closer than 0.5 mile.
+
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.
  
<pre>{{Bus to rail|rail system category|distance=}}</pre>
+
Usage:
 +
 
 +
<div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>{{Bus to rail|1|distance=|showlinecon=}}</pre></div>
 +
 
 +
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).
 
</noinclude>
 
</noinclude>

Latest revision as of 00:58, 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).