Difference between revisions of "Template:Street rail"

From Transit.Wiki
(Created page with "<includeonly><div style="display:none;"> {{#ask:[[latlong::{{#var:latlonghidden|{{#show:{{PAGENAME}}|?latlong}}}} {{#if:{{{distance|}}}|({{{distance}}})|(0.20 mile)}}]] Rnam...")
 
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display:none;">
+
<includeonly>{{#ask:[[-served by::<q>[[latlong::{{#show:{{PAGENAME}}|?latlong}}{{#show:{{PAGENAME}}|?area latlong}} ({{{distance|0.2 mile}}})]] [[Street rail stop category::{{{stopcat|+}}}]]</q>]]| format=template| template=listlines4d| ?rdisplay| ?rvalue| ?to| link=none| sort=provider,rnum,rlet}}
{{#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=
+
{{#ask:[[latlong::{{#show:{{PAGENAME}}|?latlong}}{{#show:{{PAGENAME}}|?area latlong}} ({{{distance|0.2 mile}}})]] [[Street rail stop category::{{{stopcat|+}}}]]|mainlabel=-|?rname=| format=list|intro=The nearest stop(s) at: [[File:BSicon ped.svg|20px|link=|walking distance]]&nbsp;|sep=, [[File:BSicon ped.svg|20px|link=|walking distance]]&nbsp;|outro=.}}</includeonly><noinclude>
| format=array| name=streetraillines}}
+
This template lists the nearby street rail lines (those covered by street rail property) and their nearby stops.
  
{{#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=
+
Usage:
| format=array| name=streetrailstops}}
 
</div>{{#arrayunique:streetraillines}}{{#arrayprint:streetraillines|,|$1|[[$1]]|print=pretty}} {{plural:{{#arraysize:streetraillines}}|line serves|lines serve}} this location.
 
  
The nearest {{plural:{{#arraysize:streetrailstops}}|stop is|stops are}} at: {{#arrayprint:streetrailstops|,&#32;|$1|'''$1'''|print=pretty}}.</includeonly>
+
<div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>
 +
{{Street rail}}
 +
</pre></div>
 +
 
 +
Parameters:
 +
 
 +
* distance - distance from location to include stops (so either avoid having too many or too few). Default is 0.2 mile.
 +
* stopcat - filter for "street rail stop category" property
 +
</noinclude>

Latest revision as of 00:21, 23 May 2024

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

Usage:

{{Street rail}}

Parameters:

  • distance - distance from location to include stops (so either avoid having too many or too few). Default is 0.2 mile.
  • stopcat - filter for "street rail stop category" property