Template:RoutemapRoute

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.
[edit] Template documentation

A template created for use within transport route-maps using the 'BS' templates.

  • Parameters are case-insensitive
  • Parameter order is not important, but where two 'placenames' are specified, the first will always be displayed on the left.
  • A hyphen will be displayed automatically when two 'placenames' are specified.
  • Brackets will be displayed by default – to suppress, add parameter enclosed=no
  • Icon parameters are position- and case-insensitive. Valid values, and the icons displayed, are as follows:
u, up d, dn, down l, left r, right

Fault-finding:

  • If {{{1}}} or {{{2}}} is displayed in the template output, there are insufficient separators '|' within the template code.
    Add the missing separators after the other parameters to avoid unexpected results.
RoutemapRoute template – Example usage
WikiSyntax Display
  {{RoutemapRoute|Licon=Left|[[Minehead]]|[[Taunton]]|Ricon=Right}}     ( Minehead – Taunton )  
{{RoutemapRoute|[[Taunton]]|[[Minehead]]|Licon=U|Ricon=D}} ( Taunton – Minehead )
{{RoutemapRoute|Licon=L|[[Minehead]]||}} ( Minehead )
{{RoutemapRoute|[[Taunton]]|[[Minehead]]}} Taunton – Minehead )
{{RoutemapRoute|Licon=R|Ricon=L||}} (  )
Add enclosed=no to suppress brackets:
{{RoutemapRoute|[[Taunton]]|Ricon=R|||enclosed=no}}  Taunton 
{{RoutemapRoute|Ricon=L|||enclosed=no}}   

(  )

Languages