Jump to content

Module:Adjacent stations/CTrain/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
PrimeBOT (talk | contribs)
m Stations: Task 37 - adding categorisation to module subpages
category
Line 27: Line 27:
<code><nowiki>{{stl|CTrain|7 Street}}</nowiki></code> expands to <code>&#91;&#91;7 Street Southwest station|7 Street SW]]</code>
<code><nowiki>{{stl|CTrain|7 Street}}</nowiki></code> expands to <code>&#91;&#91;7 Street Southwest station|7 Street SW]]</code>


<includeonly>{{sandbox other||
<includeonly>{{Sandbox other||
[[Category:CTrain templates]]
[[Category:China rail succession modules|CTrain]]
[[Category:Rail transport succession modules]]
}}</includeonly>
}}</includeonly>

Revision as of 22:51, 7 January 2022

This is a data module for Module:Adjacent stations. It supports services operated by CTrain.

Lines

LineKeysColorHex colorIcon
Red Line Red
or 201
  D61B32
Blue Line Blue
or 202
  008AB1
Green Line Green
or 203
  509E2F
MAX Orange Orange   FA8B14
MAX Yellow Yellow   FDC90E
MAX Teal Teal   009CA7
MAX Purple Purple   91378D
  333366

Stations

This module can be used to expand a name to link to the appropriate CTrain station article, without displaying the trailing "station". It also handles cases where more disambiguation is needed.

The template can be called using {{Station link}} or {{stl}}.

For example:

{{stl|CTrain|Lions Park}} expands to [[Lions Park station|Lions Park]]

{{stl|CTrain|University}} expands to [[University station (Calgary)|University]]

{{stl|CTrain|7 Street}} expands to [[7 Street Southwest station|7 Street SW]]