Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Adjacent stations/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Usage == === Data module === Before the template can be used, a module needs to be created that includes information about the transport system such as the title, lines and the termini of those lines. The data module needs to be a sub-page of ''Module:Adjacent stations'' (Module:Adjacent stations/''system''), and needs to be of a specific structure. See [[Module:Adjacent stations]] for a guide on creating and editing data modules. Note that not all variables are used by this template. If a system exists in {{tl|S-line}}, you can also use {{tlx|Adjacent stations/row|<var>system</var>|<var>line</var>}} inside [[Special:ExpandTemplates]] to simplify subpage creation for lines with two termini<!-- add explanation for lines with multiple termini stating that the table currently has to be inserted manually -->. You will need to replace every two spaces with a tab space afterwards. === Transclusion === For multiple lines or systems, this template only needs to be transcluded once. Each line is assigned a number. The parameters for the corresponding line are suffixed by the number (e.g. <code>system2</code>, <code>line2</code>). Parameters without a number suffix are treated as group 1. === Parameters === {| class="wikitable" |+ !Parameter !Description !Behaviour if absent !Notes |- |system<small><var>n</var></small> |The system to which line <small><var>n</var></small> belongs. This should correspond to a subpage of [[Module:Adjacent stations]]. | * System for <small><var>n</var></small> assumed to be same as the previous group. * Renders empty table if no systems are entered. |Displays error message if unrecognised. |- |line<small><var>n</var></small> |The name of line <small><var>n</var></small> (or recognised alias). This should correspond to a key under <code>["lines"]</code> in data. Displays the termini of the line as subtext in left and right cells by default. Renders ''Terminus'' as subtext if adjacent station is terminus. | * Line for <small><var>n</var></small> assumed to be same as the previous group. * Renders only header row if no lines are entered. |Displays error message if unrecognised. |- |left<small><var>n</var></small> |The name of the previous station. Renders the formatted station name in the left cell as main text. |Renders ''Terminus'' in the left cell as main text. | |- |right<small><var>n</var></small> |The name of the next station. Renders the formatted station name in the right cell as main text. |Renders ''Terminus'' in the right cell as main text. | |- |to-left<small><var>n</var></small> |The left terminus name or alias. Used to replace left terminus where it is non-default. |Uses default left terminus. |Uses un-formatted name if terminus is absent in data. |- |to-right<small><var>n</var></small> |The right terminus name or alias. Used to replace right terminus where it is non-default. |Uses default right terminus. |Uses un-formatted name if terminus is absent in data. |- |to<small><var>n</var></small> |Terminus name or alias on either side. Used to replace either terminus where it is non-default. |Uses default termini. |Only replaces side with defined terminus in data. |- |transfer<small><var>n</var></small> |The name of the transfer station for the line, at stations where an interchange with a line at another nearby station is possible. | | |- |oneway-left<small><var>n</var></small> |If entered, 'One-way operation' is displayed in the left cell instead of the small text which indicates the line terminus. This can also be entered for the whole line in the system subpage. | | |- |oneway-right<small><var>n</var></small> |If entered, 'One-way operation' is displayed in the right cell instead of the small text which indicates the line terminus. This can also be entered for the whole line in the system subpage. | | |- |nonstop<small><var>n</var></small> |If entered, instead of displaying previous and next stations, displays '<var>line</var> does not stop here'. If the value for this parameter is 'former', then 'did not stop here' will be used instead. | | |- |header<small><var>n</var></small> |A table header across the width of the table, displayed above the succession for the line. This will display with or without other parameters with the same number. | | |- |hide-system<small><var>n</var></small> |When set to any value, the system row is not displayed. This is useful in the middle of a table when a different module is used but the displayed system name would be the same. |System name is displayed. |See [[Coevorden railway station]] for an example. |- |note-row<small><var>n</var></small> |A note across the width of the table, displayed below the succession for the line. This will display with or without other parameters with the same number. | | |- |note-left<small><var>n</var></small> |A note, displayed below the left (previous) station's name. | | |- |note-mid<small><var>n</var></small> |A note, displayed below the line name. | | |- |note-right<small><var>n</var></small> |A note, displayed below the right (next) station's name. | | |- |through<small><var>n</var></small> |The through line β trains on the line run through to this line. If this is entered, 'through to <var>line'</var>, in italics, displays where 'Terminus' would. | | |- |through-left<small><var>n</var></small> |The through line for the left cell only (primarily for compatibility purposes). | | |- |through-right<small><var>n</var></small> |The through line for the right cell only (primarily for compatibility purposes). | | |- |reverse<small><var>n</var></small> |If this is entered, 'reverses direction', in italics, displays where 'Terminus' would. | | |- |reverse-left<small><var>n</var></small> |The same for the left cell only (primarily for compatibility purposes). | | |- |reverse-right<small><var>n</var></small> |The same for the right cell only (primarily for compatibility purposes). | | |- |noclear |Prevents the template from inserting the equivalent of {{tl|clear}} before the template. In the article body, this parameter can be set to <var>y</var> for an inline version of the template. Do not use this parameter inside {{tl|Infobox station}}'s {{para|services}} parameter. |The equivalent of {{tl|clear}} is inserted before the template. This is the default. | |}
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)