Difference between revisions of "Template:Street rail"
m |
m |
||
Line 1: | Line 1: | ||
<includeonly><div style="display:none;"> | <includeonly><div style="display:none;"> | ||
− | |||
− | |||
{{#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=,}} | {{#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=,}} | ||
− | </div>{{#arrayprint:streetraillines||$1|{{#ask: [[$1]] | + | </div>{{{note|{{#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}}{{#arrayprint:streetraillines||$1|{{#ask: [[$1]] |
− | | format=template| template=listlines2| link=none | ?rnum=| ?rlet=| ?to=| sort=rnum,rlet | + | | format=template| template=listlines2| link=none | ?rnum=| ?rlet=| ?to=| sort=rnum,rlet}}}}}}} |
− | }}}} | ||
The nearest {{plural:{{#arraysize:streetrailstops}}|stop is|stops are}} at: {{#arrayprint:streetrailstops|, |$1|'''$1'''|print=pretty}}.</includeonly> | The nearest {{plural:{{#arraysize:streetrailstops}}|stop is|stops are}} at: {{#arrayprint:streetrailstops|, |$1|'''$1'''|print=pretty}}.</includeonly> |