Template:Adjacent stations doc

LinesEdit

Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc Template:Rail template doc

StationsEdit

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 cal = "%1 station (Calgary)"
local sw = "[[%1 Southwest station|%1 SW]]"
local n = "[[%1 North station|%1 N]]"

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"] = sw,
		["3 Street"] = sw,
		["4 Street"] = sw,
		["4 Street SE"] = "4 Street Southeast station",
		["6 Street"] = sw,
		["7 Street"] = sw,
		["7 Avenue"] = sw,
		["8 Street"] = sw,
		["9 Avenue"] = n,
		["10 Street"] = sw,
		["16 Avenue"] = n,
		["26 Avenue"] = "[[26 Avenue Southeast station|26 Avenue SE]]",
		["39 Avenue"] = cal,
		["45 Street"] = cal,
		["69 Street"] = cal,
		["Anderson"] = cal,
		["Brentwood"] = cal,
		["Centre Street"] = cal,
		["Centre Street S"] = "Centre Street South 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",
			["icon format"] = "route",
		},
		["Red"] = {
			["title"] = "[[Red Line (Calgary)|Red Line]]",
			["short name"] = "R",
			["color"] = "dc1a34",
			["left terminus"] = "Tuscany",
			["right terminus"] = "Somerset–Bridlewood",
		},
		["Blue"] = {
			["title"] = "[[Blue Line (Calgary)|Blue Line]]",
			["short name"] = "B",
			["color"] = "0089ce",
			["left terminus"] = "69 Street",
			["right terminus"] = "Saddletowne",
		},
		["Green"] = {
			["title"] = "[[Green Line (Calgary)|Green Line]]",
			["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]]",
			["short name"] = "MO",
			["color"] = "fa8b14",
		},
		["Yellow"] = {
			["title"] = "[[MAX Yellow]]",
			["short name"] = "MY",
			["color"] = "fdc90e",
		},
		["Teal"] = {
			["title"] = "[[MAX Teal]]",
			["short name"] = "MT",
			["color"] = "009ca7",
		},
		["Purple"] = {
			["title"] = "[[MAX Purple]]",
			["short name"] = "MP",
			["color"] = "91378d",
		},
	},
	["aliases"] = {
		["201"] = "Red",
		["202"] = "Blue",
		["203"] = "Green",
	},
}

return p