Difference between revisions of "Template:Tab-routes"

From Transit.Wiki
m
m
 
(2 intermediate revisions by the same user not shown)
Line 24: Line 24:
 
|to={{{to|}}}
 
|to={{{to|}}}
 
|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:1category|{{#var:1provider}} routes}}}}}
 
|place={{{places|}}}|+sep={{{altsep|,}}}
 
|place={{{places|}}}|+sep={{{altsep|,}}}
 
|bus={{{buses|}}}|+sep={{{altsep|,}}}
 
|bus={{{buses|}}}|+sep={{{altsep|,}}}
Line 47: Line 47:
 
|servicespan=
 
|servicespan=
 
|note=
 
|note=
 +
|altsep=
 
|places=
 
|places=
 
|buses=
 
|buses=
Line 70: Line 71:
 
</pre></div>
 
</pre></div>
  
Set common provider for all routes on this page through  
+
Set common provider and category for all routes on this page through  
 
<div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>
 
<div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>
{{#vardefine:1provider|$1}}
+
{{#vardefine:1provider|$1}} {{#vardefine:1category|$2}}
 
</pre></div>
 
</pre></div>
 +
 +
Common category is optional. If it is not specified the category will be defaulted to "common provider routes".
 +
</noinclude>

Latest revision as of 17:11, 12 January 2020

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

Full list:

{{tab-routes
|provider=
|prefix= (remove entire line if not needed)
|num= (remove entire line if not needed)
|alpha= (remove entire line if not needed)
|letter= (remove entire line if not needed)
|fullname=
|type=
|pcategory=
|to=
|link=
|servicespan=
|note=
|altsep=
|places=
|buses=
|busways=
|busway name=
}}

Places are to be separated by comma.

Use |altsep= for alternate separator like ";" since some page names include 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 and category for all routes on this page through

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

Common category is optional. If it is not specified the category will be defaulted to "common provider routes".