Module:Adjacent stations/CTrain

MyWikiBiz, Author Your Legacy — Wednesday December 25, 2024
Jump to navigationJump to search

Template:Adjacent stations doc

Lines

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

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 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",
		},
		["Red"] = {
			["title"] = "[[Red Line (Calgary)|Red Line]]",
			["color"] = "dc1a34",
			["left terminus"] = "Tuscany",
			["right terminus"] = "Somerset–Bridlewood",
		},
		["Blue"] = {
			["title"] = "[[Blue Line (Calgary)|Blue Line]]",
			["color"] = "0089ce",
			["left terminus"] = "69 Street",
			["right terminus"] = "Saddletowne",
		},
		["Green"] = {
			["title"] = "[[Green Line (Calgary)|Green Line]]",
			["color"] = "509e2f",
			["left terminus"] = "16 Avenue",
			["right terminus"] = "Shepard",
		},
		["Orange"] = {
			["title"] = "[[MAX Orange]]",
			["color"] = "fa8b14",
		},
		["Yellow"] = {
			["title"] = "[[MAX Yellow]]",
			["color"] = "fdc90e",
		},
		["Teal"] = {
			["title"] = "[[MAX Teal]]",
			["color"] = "009ca7",
		},
		["Purple"] = {
			["title"] = "[[MAX Purple]]",
			["color"] = "91378d",
		},
	},
	["aliases"] = {
		["201"] = "Red",
		["202"] = "Blue",
		["203"] = "Green",
	}
}

return p