Jump to content

User:EdJogg/templatesandbox/doc

From Wikipedia, the free encyclopedia

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 Up arrow d, dn, down Down arrow l, left Left arrow r, right Right arrow

Fault-finding:

  • If {{{1}}} or {{{2}}} is displayed in the template output, there are insufficient separators '|' within the template code.
RoutemapRoute template – Example usage
WikiSyntax Display
{{User:EdJogg/templatesandbox|Licon=Left|[[Minehead]]|[[Taunton]]|Ricon=Right}}

(Left arrow Minehead – Taunton Right arrow)

{{User:EdJogg/templatesandbox|[[Taunton]]|[[Minehead]]|Licon=U|Ricon=D}}

(Up arrow Taunton – Minehead Down arrow)

{{User:EdJogg/templatesandbox|Licon=L|[[Minehead]]||}}

(Left arrow Minehead Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value).)

{{User:EdJogg/templatesandbox|[[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).)

{{User:EdJogg/templatesandbox|Licon=R|Ricon=L||}}

(Right arrow  Left arrow)

Add enclosed=no to suppress brackets:
{{User:EdJogg/templatesandbox|[[Taunton]]|Ricon=R|||enclosed=no}}

Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value). Taunton Right arrow

{{User:EdJogg/templatesandbox|Ricon=L|||enclosed=no}}

Lua error in Module:Routemap at line 1055: attempt to index local 'd' (a nil value).  Left arrow