Difference between revisions of "Template:Street rail"

From Transit.Wiki
m
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display:none;">
+
<includeonly>{{{note|{{#ask:[[street rail::{{PAGENAME}}]]| format=template| template=listlines4a| ?rvalue| ?to| link=none| sort=provider,rnum,rlet}}}}}
{{#arraydefine:streetraillines|{{#ask:[[latlong::{{#var:latlonghidden|{{#show:{{PAGENAME}}|?latlong}}}} {{#if:{{{distance|}}}|({{{distance}}})|(0.20 mile)}}]] [[Rname::+]] {{#if:{{{line|}}}|[[Served by::{{{line}}}]]}} {{#if:{{{category|}}}|[[Pcategory::{{{category}}}]]}} |mainlabel=-|?served by=|link=none| format=plainlist}}|,|unique}}
 
  
{{#ask:[[latlong::{{#var:latlonghidden|{{#show:{{PAGENAME}}|?latlong}}}} {{#if:{{{distance|}}}|({{{distance}}})|(0.20 mile)}}]] [[Rname::+]] {{#if:{{{line|}}}|[[Served by::{{{line}}}]]}} {{#if:{{{category|}}}|[[Pcategory::{{{category}}}]]}} |mainlabel=-|?rname=| format=array| name=streetrailstops| valuesep=,}}
+
The nearest stop(s) at: {{#ask:[[latlong::{{#ask:[[{{PAGENAME}}]]|?latlong|?area latlong|mainlabel=-|format=plainlist|headers=hide}} {{#if:{{{distance|}}}|({{{distance}}})|(0.2 mile)}}]] [[served by.street rail::{{PAGENAME}}]] |mainlabel=-|?rname=| format=list|intro=&#9670;&nbsp;|sep=, &#9670;&nbsp;}}.</includeonly><noinclude>
</div>{{#arrayprint:streetraillines|,|$1|{{#ask: [[$1]]
+
This template lists the nearby street rail lines (those covered by street rail property) and their nearby stops.
| format=template| template=listlines2| link=none | ?rnum=| ?rlet=| ?to=| sort=rnum,rlet
 
}}}}
 
  
The nearest {{plural:{{#arraysize:streetrailstops}}|stop is|stops are}} at: {{#arrayprint:streetrailstops|,&#32;|$1|'''$1'''|print=pretty}}.</includeonly>
+
Usage:
 +
 
 +
<div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>
 +
{{Street rail}}
 +
</pre></div>
 +
 
 +
Parameters:
 +
 
 +
* note - A note to replace the listing of the line via standard format, but listing of nearby stops remain.
 +
* distance - distance from location to include stops (so either avoid having too many or too few). Default is 0.2 mile.
 +
 
 +
</noinclude>

Revision as of 13:07, 14 September 2020

This template lists the nearby street rail lines (those covered by street rail property) and their nearby stops.

Usage:

{{Street rail}}

Parameters:

  • note - A note to replace the listing of the line via standard format, but listing of nearby stops remain.
  • distance - distance from location to include stops (so either avoid having too many or too few). Default is 0.2 mile.