Difference between revisions of "Template:Routeinfo"

From Transit.Wiki
m
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
; {{#if:{{{num|}}}|[[Rnum::{{{num}}}| ]]|}}{{#if:{{{letter|}}}|[[Rlet::{{{letter}}}| ]]|}} {{#if:{{{name|}}}|[[Rname::{{{name}}}| ]]|}}
+
<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=..}}}}
{{#if:{{{to|}}}|[[To::{{{to}}}]]|}}
+
<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:
 +
 
 +
Full listing.
 +
 
 +
<pre>{{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
 +
}}</pre>
 +
 
 +
Simple listing for bus routes that only have a number.
 +
 
 +
<div style="-webkit-user-select: all; -moz-user-select: all; -ms-user-select: all; user-select: all;"><pre>{{Routeinfo
 +
|provider=
 +
|num=
 +
|to=
 +
}}</pre></div>
 +
 
 +
Only origin/destination will be shown.
 +
 
 +
</noinclude>

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.