Module:Adjacent stations/CTrain
Appearance
This is a data module for Module:Adjacent stations. It supports services operated by CTrain.
Lines
[edit]Line | Keys | Color | Hex color | Icon |
---|---|---|---|---|
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
[edit]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]]
local sw = "[[%1 SW station|%1 SW]]"
local se = "[[%1 SE station|%1 SE]]"
local n = "[[%1 N station|%1 N]]"
local cal = "%1 station (Calgary)"
local p = {
["lang"] = "en-US",
["system title"] = "[[CTrain]]",
["system icon"] = "",
["name format"] = "font-size: 170%; font-family: Helvetica, sans; font-weight: bolder; line-height: 120%; color: #FFFFFF; background-color: #333366;",
["header background color"] = "EEEEEE",
["header text color"] = "000000",
["station format"] = {
"%1 station",
["1 Street"] = sw,
["2 Avenue"] = "Eau Claire station",
["3 Street"] = sw,
["4 Street"] = sw,
["4 Street SE"] = "4 Street SE station",
["6 Street"] = sw,
["7 Street"] = sw,
["7 Avenue"] = sw,
["8 Street"] = sw,
["9 Avenue"] = n,
["10 Street"] = sw,
["16 Avenue"] = n,
["26 Avenue"] = se,
["39 Avenue"] = cal,
["45 Street"] = cal,
["69 Street"] = cal,
["Anderson"] = cal,
["Brentwood"] = cal,
["Centre Street"] = cal,
["Centre Street S"] = "Centre Street S station",
["City Hall"] = cal,
["Dalhousie"] = cal,
["Franklin"] = cal,
["Heritage"] = cal,
["Jubilee"] = cal,
["Ogden"] = cal,
["Southland"] = cal,
["Sunnyside"] = cal,
["University"] = cal,
["Westbrook"] = cal,
["Zoo"] = cal,
},
["lines"] = {
["_default"] = {
["color"] = "333366",
},
["Red"] = {
["title"] = "[[Red Line (Calgary)|Red Line]]",
["icon"] = "[[File:CT Red.svg|16px|link=Red Line (Calgary)]]",
["short name"] = "R",
["color"] = "D61B32",
["left terminus"] = "Tuscany",
["right terminus"] = "Somerset–Bridlewood",
},
["Blue"] = {
["title"] = "[[Blue Line (Calgary)|Blue Line]]",
["icon"] = "[[File:CT Blue.svg|16px|link=Blue Line (Calgary)]]",
["short name"] = "B",
["color"] = "008AB1",
["left terminus"] = "69 Street",
["right terminus"] = "Saddletowne",
},
["Green"] = {
["title"] = "[[Green Line (Calgary)|Green Line]]",
["icon"] = "[[File:CT Green.svg|16px|link=Green Line (Calgary)]]",
["short name"] = "G",
["color"] = "509E2F",
["left terminus"] = "Eau Claire",
["right terminus"] = "Shepard",
["note-mid"] = "(phase 1)",
["types"] = {
["Phase2"] = {
["title"] = "",
["note-mid"] = "(phase 2)",
["left terminus"] = "16 Avenue",
},
},
},
["Orange"] = {
["title"] = "[[MAX Orange]]",
["icon"] = "[[File:CT Orange.svg|16px|link=MAX Orange]]",
["short name"] = "MO",
["color"] = "FA8B14",
},
["Yellow"] = {
["title"] = "[[MAX Yellow]]",
["icon"] = "[[File:CT Yellow.svg|16px|link=MAX Yellow]]",
["short name"] = "MY",
["color"] = "FDC90E",
},
["Teal"] = {
["title"] = "[[MAX Teal]]",
["icon"] = "[[File:CT Teal.svg|16px|link=MAX Teal]]",
["short name"] = "MT",
["color"] = "009CA7",
},
["Purple"] = {
["title"] = "[[MAX Purple]]",
["icon"] = "[[File:CT Purple.svg|16px|link=MAX Purple]]",
["short name"] = "MP",
["color"] = "91378D",
},
},
["aliases"] = {
["201"] = "Red",
["202"] = "Blue",
["203"] = "Green",
["red"] = "Red",
["green"] = "Green",
["blue"] = "Blue",
["orange"] = "Orange",
["yellow"] = "Yellow",
["teal"] = "Teal",
["purple"] = "Purple",
},
}
return p