Jump to content

Module:Adjacent stations/CTrain/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Blaixx (talk | contribs) at 16:07, 6 July 2019 (documentation for station links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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
  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]]