Difference between revisions of "Template:Tab-routes"

From Transit.Wiki
m
m
Line 2: Line 2:
 
<h1>{{#replace:{{#var:shownum}}{{{letter|}}}|/|-}}</h1>
 
<h1>{{#replace:{{#var:shownum}}{{{letter|}}}|/|-}}</h1>
 
<h3>{{{fullname|{{#var:1provider}} {{#var:shownum}}{{{letter|}}}}}}</h3>
 
<h3>{{{fullname|{{#var:1provider}} {{#var:shownum}}{{{letter|}}}}}}</h3>
 +
<div class="routeinfo">{{{to|}}}</div>
  
<div class="routeinfo">{{{to|}}}</div>
 
  
 
: [{{{link}}} Map and schedule]
 
: [{{{link}}} Map and schedule]
  
<div class="servicespan">{{{servicespan|7 days a week. Holiday service varies.}}}</div>
+
 
 +
'''{{{servicespan|7 days a week. Holiday service varies.}}}'''
 
{{{note|}}}
 
{{{note|}}}
 
{{#arraydefine:places|{{{places|}}}|,}}{{#ifeq:{{#arraysize:places}}|0||<h2>Points of interest</h2>|}}
 
{{#arraydefine:places|{{{places|}}}|,}}{{#ifeq:{{#arraysize:places}}|0||<h2>Points of interest</h2>|}}

Revision as of 15:47, 30 November 2018

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

Full list:

{{tab-routes
|provider=
|num=
|letter=
|fullname=
|type=
|pcategory=
|to=
|link=
|servicespan=
|note=
|places=
}}

Places are to be separated by comma.

Minimal list:

{{tab-routes
|num=
|letter=
|to=
|link=
|servicespan=
|places=
}}

Set common provider for all routes on this page through

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