Difference between revisions of "Template:Tab-routes"

From Transit.Wiki
m
m
Line 7: Line 7:
  
 
<div>{{{note|}}}</div>
 
<div>{{{note|}}}</div>
{{#arraydefine:places|{{{places|}}}|,}}{{#ifeq:{{#arraysize:places}}|0||<h2>Points of interest</h2>|}}
+
{{#arraydefine:places|{{{places|}}}|{{{altsep|,}}}}}{{#ifeq:{{#arraysize:places}}|0||<h2>Points of interest</h2>|}}
 
{{#arrayprint:places||$1|<nowiki/>
 
{{#arrayprint:places||$1|<nowiki/>
 
* [[$1]]}}
 
* [[$1]]}}
Line 19: Line 19:
 
|servicespan={{{servicespan|7 days a week. Holiday service varies.}}}
 
|servicespan={{{servicespan|7 days a week. Holiday service varies.}}}
 
|@category={{{pcategory|{{#var:1provider}} routes}}}
 
|@category={{{pcategory|{{#var:1provider}} routes}}}
|place={{{places|}}}|+sep=,
+
|place={{{places|}}}|+sep={{{altsep|,}}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
Another way to input routes in a tab format for smaller systems.
 
Another way to input routes in a tab format for smaller systems.

Revision as of 17:35, 7 January 2019

Another way to input routes in a tab format for smaller systems.

Full list:

{{tab-routes
|provider=
|num= (remove entire line if not needed)
|letter= (remove entire line if not needed)
|fullname=
|type=
|pcategory=
|to=
|link=
|servicespan=
|note=
|places=
}}

Places are to be separated by comma.

Minimal list:

{{tab-routes
|num= (remove entire line if not needed)
|letter= (remove entire line if not needed)
|to=
|link=
|servicespan=
|places=
}}

Set common provider for all routes on this page through

{{#vardefine:1provider|$1}}