Module:Adjacent stations/doc: Difference between revisions

Content deleted Content added
Line 42:
Below is [[Module:Adjacent stations/Taiwan High Speed Rail]]:
{{syntaxhighlight|lang=lua|{{Module:Adjacent stations/Taiwan High Speed Rail}}}}
* <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". This practice is optional but helpful when many articles fit a second pattern.
* 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.