Template:RoutemapRoute
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. |
This template is used for transport route-maps. It is part of the 'BS' templates.
Fields
Parameters
Unnamed parameters
- 1: First text item
- 2: Second text item
- If both text items are entered, a dash will be shown between them. If either or both are blank, the dash will be omitted.
Named parameters
- enclosed: Display brackets (parentheses) around the two text items. Defaults to yes. When
|enclosed=no
, no brackets will be displayed. - Licon: Icon to show before the first text item.
- Ricon: Icon to show after the second text item.
- The icon parameters may be placed in any order. Theparameter may be entered in upper or lower case. Valid values, and the icons displayed, are listed below (further information at Template:RoutemapRouteIcon/doc):
u, up | d, dn, down | l, left | r, right |
Notes
- All parameters are optional.
- Parameter values are case-insensitive
- Parameter order is not important, but where two 'text items' are specified, the first will always be displayed on the left.
WikiSyntax | Display |
---|---|
{{RoutemapRoute|Licon=Left|[[Minehead]]|[[Taunton]]|Ricon=Right}} | ( Minehead – Taunton ) |
{{RoutemapRoute|[[Minehead]]|[[Taunton]]|Licon=Left|Ricon=Right}} | ( Minehead – Taunton ) |
{{RoutemapRoute|[[Taunton]]|[[Minehead]]|Licon=U|Ricon=D}} | ( Taunton – Minehead ) |
{{RoutemapRoute|Licon=L|[[Minehead]]||}} | ( Minehead Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value).) |
{{RoutemapRoute|[[Taunton]]|[[Minehead]]}} | (Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value). Taunton – Minehead Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value).) |
{{RoutemapRoute|Licon=R|Ricon=L||}} | ( ) |
Add enclosed=no to suppress brackets: | |
{{RoutemapRoute|[[Taunton]]|Ricon=R|||enclosed=no}} | Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value). Taunton |
{{RoutemapRoute|Ricon=L|||enclosed=no}} | Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value). |
The above documentation is transcluded from Template:RoutemapRoute/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
(Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value). Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value).)