Difference between revisions of "Template:Routeinfo"
m |
m |
||
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}}}}} {{{type|bus}}} - {{{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}}}}} {{{type|bus}}} - {{{to}}}. Public Transportation. Schedule and map links. {{#show:{{PAGENAME}}|?servicespan}} Destinations include {{#show:{{PAGENAME}}|?place|link=none|outro=.|default=..}}}} |
<div class="routeinfo">{{#ifeq:{{{type|bus}}}|bus|🚍 |}}{{#if:{{{to|}}}|[[To::{{{to}}}]]|}}</div></includeonly><noinclude> | <div class="routeinfo">{{#ifeq:{{{type|bus}}}|bus|🚍 |}}{{#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: |
Revision as of 08:39, 7 May 2024
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.