Difference between revisions of "Template:Bus to rail process"

From Transit.Wiki
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#ifeq:{{#ask:[[Place::{{{1}}}]] [[Place::{{PAGENAME}}]]|format=count}}|0||* At [[{{{1}}}|{{#show:{{{1}}}|?rname}}]] ({{#geodistance:
 
<includeonly>{{#ifeq:{{#ask:[[Place::{{{1}}}]] [[Place::{{PAGENAME}}]]|format=count}}|0||* At [[{{{1}}}|{{#show:{{{1}}}|?rname}}]] ({{#geodistance:
 
{{#show:{{{1}}}|?latlong}}|{{#show:{{PAGENAME}}|?latlong}}|mile|2}})<br/>
 
{{#show:{{{1}}}|?latlong}}|{{#show:{{PAGENAME}}|?latlong}}|mile|2}})<br/>
via 🚍 {{Morebus-mini|show=[[Place::{{{1}}}]] [[Place::{{PAGENAME}}]]}}. <br/>
+
<p style="padding-left:2.5em;">via {{Morebus-mini|show=[[Place::{{{1}}}]] [[Place::{{PAGENAME}}]]|list sep=<nowiki> or </nowiki>}}. <br/>
{{#ask:[[-Served by::{{{1|}}}]] {{{#userparam|}}}| format=list| template=listlines3a| ?rdisplay| ?rvalue| link=none| sort=provider,rnum,rlet|sep=,|intro=Connection:}}  
+
{{#ask:[[-Served by::{{{1|}}}]] {{{showlinecon|}}} {{{#userparam|}}}| format=list| template=listlines3a| ?rdisplay| ?rvalue| link=none| sort=provider,rnum,rlet|sep=,|intro=Connection:}}  
}}</includeonly><noinclude>
+
}}</p></includeonly><noinclude>
Use with [[template:Bus to rail]].
+
To show bus routes serving a designated rail stations. It will also list rail lines serving the stations.
 +
 
 +
Usage:
 +
 
 +
<div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>{{Bus to rail process|1|showlinecon=}}</pre></div>
 +
 
 +
Parameters:
 +
 
 +
* 1 - Station name.
 +
* showlinecon - optional. It is used to set filter for lines serving the rail station (use provider property to show lines from certain agency).
 +
 
 +
This template is also used as part of [[:Template:Bus to rail]], where the template will search for nearby station.
 
</noinclude>
 
</noinclude>

Latest revision as of 00:33, 19 April 2024

To show bus routes serving a designated rail stations. It will also list rail lines serving the stations.

Usage:

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

Parameters:

  • 1 - Station name.
  • showlinecon - optional. It is used to set filter for lines serving the rail station (use provider property to show lines from certain agency).

This template is also used as part of Template:Bus to rail, where the template will search for nearby station.