Module:Adjacent stations/doc: Difference between revisions

Content deleted Content added
Reinstated type termini
Line 28:
{| class="wikitable"
|-
| [[Module:Adjacent stations/Kaohsiung Rapid Transit System|Blank]] || {{syntaxhighlight|lang=lua|{{Module:Adjacent stations/blank}}}}
|-
| [[Module:Adjacent stations/Kaohsiung Rapid Transit System|Example]] || {{syntaxhighlight|lang=lua|{{Module:Adjacent stations/Kaohsiung Rapid Transit System}}}}
|}
The example module on the bottom is [[Module:Adjacent stations/Kaohsiung Rapid Transit System]].
 
The module on the bottom is [[Module:Adjacent stations/Kaohsiung Rapid Transit System]].
* The two required table entries are "station format" and "lines". The former is a table with data to form links to station articles, and the latter is a table containing a table for each line.
* "system title" is the text in the middle cell of the table header row.
Line 39 ⟶ 38:
* "lines" is where the lines are listed. The names here are used internally and not displayed, so choose a concise one.
* "line title" is the text displayed in the middle of each row indicating the line; "left terminus" is the default station name for the left side terminus, and "right terminus" is the default station name for the right side terminus.
* Each "color" entry is the colorcolour of the line.
 
 
ThisBelow is [[Module:Adjacent stations/Taiwan High Speed Rail]].:
{{syntaxhighlight|lang=lua|{{Module:Adjacent stations/Taiwan High Speed Rail}}}}
 
This is [[Module:Adjacent stations/Taiwan High Speed Rail]].
* Normally a color is added for each line individually, but if a line does not have a color the system's color is used instead.
* Since the THSR system only has one line, it can use "_default" and skip the {{para|line}} parameter. (The "_default" table is also used by {{tl|Rail color box}} if a line doesn't exist.)
* <var>x</var> (defined in the first line) is a string, used for formatting the station name. The variable <var>x</var> is used inside the "station format" table for the three articles where the title ends in "station" instead of "HSR station".
* The module recognises a virtual line named <code>["_default"]</code>. The title and colour of this line is used for all lines unless overriden, and in the absense of a specified <code>line=</code> in transclusion.
 
== Hierarchy and list of parameters ==