Difference between revisions of "Template:Routeinfo"
m |
m |
||
(2 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|}}}}}{{ | + | <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|}}}}}{{RouteMetaDescription|fullname={{{fullname|{{PAGENAME}}}}}|type={{{type|bus}}}|to={{{to}}}}} |
<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: |
Latest revision as of 23:21, 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.