This is a data module for Module:Adjacent stations. It supports services operated by CTrain.
Lines
Line | Keys | Color | Hex color | Icon |
---|---|---|---|---|
Red Line | Red oder 201 |
dc1a34 |
| |
Blue Line | Blue oder 202 |
0089ce |
| |
Green Line | Green oder 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]]
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"] = "dc1a34",
["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"] = "0089ce",
["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