Difference between revisions of "Template:Routeinfo"

From Transit.Wiki
m
m
Line 1: Line 1:
{{#set:rnum={{{num|0}}}|rlet={{{letter|'}}}|rfull={{{fullname|{{PAGENAME}}}}}|rtype={{{type|bus}}}}}{{#description2:{{{fullname|{{PAGENAME}}}}} - {{{to}}}. Schedule and map links. {{#show:{{PAGENAME}}|?servicespan}} Destinations include {{#show:{{PAGENAME}}|?place|link=none|outro=.|default=..}}}}
+
{{#set:rnum={{{num|0}}}|rlet={{{letter|'}}}|rfull={{{fullname|{{PAGENAME}}}}}|rtype={{{type|bus}}}|provider={{{provider|}}}}}{{#description2:{{{fullname|{{PAGENAME}}}}} - {{{to}}}. Schedule and map links. {{#show:{{PAGENAME}}|?servicespan}} Destinations include {{#show:{{PAGENAME}}|?place|link=none|outro=.|default=..}}}}
 
<div class="routeinfo">{{#if:{{{to|}}}|[[To::{{{to}}}]]|}}</div><noinclude>
 
<div class="routeinfo">{{#if:{{{to|}}}|[[To::{{{to}}}]]|}}</div><noinclude>
  

Revision as of 16:12, 10 September 2018

Put in the following at the beginning of a route page:

{{Routeinfo
| num = route number
| letter = route letter or suffix
| fullname = full name of route (optional)
| type = mode or service type (default is bus)
| to = origin - destination
}}

Only origin/destination will be shown.