Template:S-line-termini

From LinuxWorks Minetest Server Wiki
Jump to navigation Jump to search

This template displays a line number and its left and right terminus as it is displayed in S-line templates. For an usage example, see Template:List of express lines.

Parameters:

* line (required) - the line to display
* system (required) - the rail system (e.g. Local Lines)
* state (optional, passed through to Stations template)
* branch (optional, passed through to left side Stations template)
* branch2 (optional, passed through to right side Stations template)
* type (optional, passed through to left Terminus template)
* type2 (optional, passed through to right Terminus template)

Example:

{{S-line-termini|system=Local Lines|line=S1}} via something

S1 Spawn to Origin via something

Code in human-readable form:

{{ {{{line}}} }}
{{
  {{{system}}} stations
  |state={{{state}}}
  |branch={{{branch|}}}
  |line={{{line}}}
  |station={{
    S-line
    /{{{system}}} left
    /{{{line}}}
    |branch={{{branch|}}}
    |type={{{type|}}}
  }}
}}
to
{{
  {{{system}}} stations
  |state={{{state}}}
  |branch={{{branch2|}}}
  |line={{{line}}}
  |station={{
    S-line
    /{{{system}}} right
    /{{{line}}}
    |branch={{{branch2|}}}
    |type={{{type2|}}}
  }}
}}