Template:RoutemapRoute/doc
This is a documentation subpage for Template:RoutemapRoute. It contains usage information, categories and other content that is not part of the original template page. |
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). |