Jump to content

Module:Adjacent stations/CTrain/doc

From Wikihoc

This is the documentation page for Module:Adjacent stations/CTrain

{{#if: | This is a redirect for [[Module:Adjacent stations/{{{main}}}]].| This is a data module for Module:Adjacent stations. It supports {{#if: | former }} services {{#if: | in {{{place}}} }} operated by {{#if: | {{{link}}} | [[{{#titleparts: Adjacent stations/CTrain | 2 | 2 }}]] }}{{#if: |  (formerly {{{previous_name}}}) }}{{#if: |, including {{{including}}} }}. {{#if: | For {{#if: | current services | {{{for}}} }}, use Module:Adjacent stations/. }} {{#if: | {{{alias}}} can be used as an alias for {{#titleparts: Adjacent stations/CTrain | 2 | 2 }}. }}}}{{#if:yes|}}

Lines

{{#if:| {{#if:|}} {{#if:|{{{type}}}| {{#if:|

or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}

}}}}   {{#ifeq:|true||}} |{{#ifeq:|end||

}}}}

{{#if:CTrain|}} |{{#ifeq:Red|end|
Line{{#ifeq:|type|TypeType keys|Keys}}ColorHex colorIcon
Red Line {{#if:|Red Line{{#if:|{{{type}}}|Red {{#if:201|
or 201 {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  d61b32 {{#ifeq:|true||File:CT Red.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:Blue|end|
Line{{#ifeq:Red|type|TypeType keys|Keys}}ColorHex colorIcon
Blue Line {{#if:|Blue Line{{#if:|{{{type}}}|Blue {{#if:202|
or 202 {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  008ab1 {{#ifeq:|true||File:CT Blue.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:Green|end|
Line{{#ifeq:Blue|type|TypeType keys|Keys}}ColorHex colorIcon
Green Line {{#if:|Green Line{{#if:|{{{type}}}|Green {{#if:203|
or 203 {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  509e2f {{#ifeq:|true||File:CT Green.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:Orange|end|
Line{{#ifeq:Green|type|TypeType keys|Keys}}ColorHex colorIcon
MAX Orange {{#if:|MAX Orange{{#if:|{{{type}}}|Orange {{#if:|
or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  fa8b14 {{#ifeq:|true||File:CT Orange.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:Yellow|end|
Line{{#ifeq:Orange|type|TypeType keys|Keys}}ColorHex colorIcon
MAX Yellow {{#if:|MAX Yellow{{#if:|{{{type}}}|Yellow {{#if:|
or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  fdc90e {{#ifeq:|true||File:CT Yellow.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:Teal|end|
Line{{#ifeq:Yellow|type|TypeType keys|Keys}}ColorHex colorIcon
MAX Teal {{#if:|MAX Teal{{#if:|{{{type}}}|Teal {{#if:|
or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  009ca7 {{#ifeq:|true||File:CT Teal.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:Purple|end|
Line{{#ifeq:Teal|type|TypeType keys|Keys}}ColorHex colorIcon
MAX Purple {{#if:|MAX Purple{{#if:|{{{type}}}|Purple {{#if:|
or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  91378d {{#ifeq:|true||File:CT Purple.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:MAX Green|end|
Line{{#ifeq:Purple|type|TypeType keys|Keys}}ColorHex colorIcon
MAX Green {{#if:|MAX Green{{#if:|{{{type}}}|MAX Green {{#if:|
or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  105d3f {{#ifeq:|true||File:CT MAX Green.svg}}

|

}}}}

{{#if:CTrain|}} |{{#ifeq:|end|
Line{{#ifeq:MAX Green|type|TypeType keys|Keys}}ColorHex colorIcon
{{#if:|{{#if:|{{{type}}}| {{#if:|
or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  333366 {{#ifeq:|true||}}

|

}}}}

{{#if:|}} |{{#ifeq:end|end|
Line{{#ifeq:|type|TypeType keys|Keys}}ColorHex colorIcon
{{#if:|{{#if:|{{{type}}}|end {{#if:|
or {{#if:|or {{#if:|{{#if:|
or or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or {{#if:|or }}}}}}}}}}}}}}}}}}}}}}}}
|or }}}}}}
}}}}
  {{#ifeq:|true||}}

|

}}}}

Note: "MAX Green" is not formatted in conjunction with other max lines, due to its duplicate name with the "Green Line".

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


Line{{#ifeq:end|type|TypeType keys|Keys}}ColorHex colorIcon