Difference between revisions of "Template:Bus to rail"
m |
m |
||
(One intermediate revision by the same user not shown) | |||
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}}|{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]| | + | <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}}|{{#ask:{{{1|[[Category:rail stations]]}}}[[latlong::{{#show:{{PAGENAME}}|?latlong}} (0.5 mile)]]|template=Near stop|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 station name if it's closer than 0.5 mile. | ||
− | <pre>{{Bus to rail| | + | download |
+ | |||
+ | <div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>{{Bus to rail|1|distance=}}</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). | ||
</noinclude> | </noinclude> |
Revision as of 22:44, 16 April 2024
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.
download
{{Bus to rail|1|distance=}}
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).