Difference between revisions of "Template:Routeinfo"

From Transit.Wiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#set:rpref={{{prefix|'}}}|rnum={{{num|0}}}|rlet={{{letter|'}}}|rvalue={{{value|{{{prefix|}}}{{#ifexpr:{{{num|0}}}<1||{{{num}}}}}{{{letter|}}}}}}|+sep={{{valuesep|}}}|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=..}}}}
 
<includeonly>{{#set:rpref={{{prefix|'}}}|rnum={{{num|0}}}|rlet={{{letter|'}}}|rvalue={{{value|{{{prefix|}}}{{#ifexpr:{{{num|0}}}<1||{{{num}}}}}{{{letter|}}}}}}|+sep={{{valuesep|}}}|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:{{{type|bus}}}|🚍&#32;}}{{#if:{{{to|}}}|[[To::{{{to}}}]]|}}</div></includeonly><noinclude>
+
<div class="routeinfo">{{#ifeq:{{{type|bus}}}|bus|🚍&#32;|}}{{#if:{{{to|}}}|[[To::{{{to}}}]]|}}</div></includeonly><noinclude>
 
Put in the following at the beginning of a route page:
 
Put in the following at the beginning of a route page:
  

Latest revision as of 19:27, 6 January 2020

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

Full listing.

{{Routeinfo
|provider=   agency or company offering service
|prefix=     for letter prefix (optional)
|num=        route number (optional)
|letter=     route letter or suffix (optional)
|value=      for full route number (s) with prefix and letters in case if it doesn't match other values
|valuesep=  (optional) separator for pages that cover two or more routes (1A/1B), then separator should be /. Default is comma. Value parameter is not needed for this to work.
|fullname=   full name of route (optional)
|type=       mode or service type (default is bus)
|to=         origin - destination
}}

Simple listing for bus routes that only have a number.

{{Routeinfo
|provider=
|num=
|to=
}}

Only origin/destination will be shown.