Difference between revisions of "Template:Tab-routes"
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:shownum|{{#ifexpr:{{{num|0}}}<1||{{{num|}}}}}}} | <includeonly>{{#vardefine:shownum|{{#ifexpr:{{{num|0}}}<1||{{{num|}}}}}}} | ||
<h1>{{#replace:{{#var:shownum}}{{{letter|}}}|/|-}}</h1> | <h1>{{#replace:{{#var:shownum}}{{{letter|}}}|/|-}}</h1> | ||
− | <h3>{{{fullname|{{#var:1provider}} {{#var:shownum}}{{{letter|}}}}}}</h3> | + | <h3>{{{fullname|{{#var:1provider}} {{#if:{{#var:shownum}}|Route {{#var:shownum}}}}{{{letter|}}}}}}</h3> |
<div class="routeinfo">{{{to|}}}</div> | <div class="routeinfo">{{{to|}}}</div> | ||
{{#if:{{{link|}}}|<div style="padding:1.25em;">[{{{link}}} Map and schedule]</div>}} | {{#if:{{{link|}}}|<div style="padding:1.25em;">[{{{link}}} Map and schedule]</div>}} |
Revision as of 15:33, 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}}