Module:Adjacent stations/IRT

Documentation for this module may be created at Module:Adjacent stations/IRT/doc

local second = "%1 station (IRT Second Avenue Line)"
local sixth = "%1 station (IRT Sixth Avenue Line)"
local ninth = "%1 station (IRT Ninth Avenue Line)"

local p = {
	["lang"] = "en-US",
	["system title"] = "[[Interborough Rapid Transit Company|Interborough Rapid Transit]]",
	["name format"] = "font-family: Arial; background-color: #0C133D; font-size: 200%; text-transform:uppercase; color: white; padding: 0.5em; line-height: 0.5; white-space: nowrap; border: 7px solid #white; margin: 0.25em; text-align: center;",
	["header background color"] = "0C133D",
	["station format"] = {
		"%1 station",
		["South Ferry"] = "South Ferry station (IRT elevated)",
		["Rector Street"] = {
			["Sixth Avenue"] = sixth,
			["Ninth Avenue"] = ninth,
		},
		["Cortlandt Street"] = {
			["Sixth Avenue"] = sixth,
			["Ninth Avenue"] = ninth,
		},
		["Park Place"] = sixth,
		["City Hall"] = second,
		["Franklin Street"] = {
			["Sixth Avenue"] = sixth,
			["Ninth Avenue"] = ninth,
		},
		["Canal Street"] = {
			["Second Avenue"] = second,
		},
		["Grand Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = sixth,
		},
		["Bleecker Street"] = sixth,
		["Warren Street"] = ninth,
		["Chambers Street"] = sixth,
		["Houston Street"] = ninth,
		["Christopher Street"] = ninth,
		["First Street"] = second,
		["Eighth Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = sixth,
		},
		["14th Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = sixth,
			["Ninth Avenue"] = ninth,
		},
		["18th Street"] = {
			["Sixth Avenue"] = sixth,
		},
		["19th Street"] = second,
		["23rd Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = sixth,
			["Ninth Avenue"] = ninth,
		},
		["28th Street"] = {
			["Sixth Avenue"] = sixth,
		},
		["30th Street"] = ninth,
		["33rd Street"] = sixth,
		["34th Street"] = {
			["Second Avenue"] = second,
			["Ninth Avenue"] = ninth,
		},
		["38th Street"] = sixth,
		["42nd Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = sixth,
			["Ninth Avenue"] = ninth,
		},
		["50th Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = sixth,
			["Ninth Avenue"] = ninth,
		},
		["57th Street"] = second,
		["58th Street"] = sixth,
		["59th Street"] = {
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["65th Street"] = second,
		["66th Street"] = ninth,
		["72nd Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["80th Street"] = second,
		["81st Street"] = {
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["86th Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["99th Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["104th Street"] = ninth,
		["110th Street"] = {
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["111th Street"] = second,
		["116th Street"] = {
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["121st Street"] = second,
		["125th Street"] = {
			["Second Avenue"] = second,
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["135th Street"] = {
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["140th Street"] = {
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["145th Street"] = {
			["Sixth Avenue"] = ninth,
			["Ninth Avenue"] = ninth,
		},
		["155th Street"] = ninth,
		["Fordham Road"] = "Fordham Road–190th Street station",
		["Bronx Park"] = "Bronx Park Terminal",
	},
	["lines"] = {
		["_default"] = {
			["color"] = "0C133D",
		},
		["Second Avenue"] = {
			["title"] = "[[IRT Second Avenue Line|Second Avenue]]",
			["types"] = {
				["Local"] = {
					["title"] = "Local",
					["left terminus"] = "129th Street",
					["right terminus"] = {"South Ferry", "City Hall"},
				},
				["Express"] = {
					["title"] = "Express",
					["left terminus"] = {"Bronx Park", "Fordham Road", "Freeman Street"},
					["right terminus"] = "City Hall",
				},
				["Queens"] = {
					["title"] = "Queens <small>(express)</small>",
					["left terminus"] = {"Willets Point Blvd", "Ditmars Boulevard"},
					["right terminus"] = {"South Ferry", "City Hall", "57th Street"},
				},
				["Queens peak"] = {
					["title"] = "Queens <small>(weekday peak)</small>",
					["left terminus"] = "Ditmars Boulevard",
					["right terminus"] = {"South Ferry", "City Hall", "57th Street"},
				},
			},
		},
		["Sixth Avenue"] = {
			["title"] = "[[IRT Sixth Avenue Line|Sixth Avenue]]",
			["types"] = {
				["Local"] = {
					["title"] = "Local",
					["left terminus"] = {"155th Street", "Burnside Avenue"},
					["right terminus"] = "South Ferry",
				},
				["Express"] = {
					["title"] = "Express",
					["left terminus"] = "Burnside Avenue",
					["right terminus"] = "Rector Street",
				},
			},
		},
		["Ninth Avenue"] = {
			["title"] = "[[IRT Ninth Avenue Line|Ninth Avenue]]",
			["types"] = {
				["Local"] = {
					["title"] = "Local",
					["left terminus"] = {"155th Street", "Burnside Avenue"},
					["right terminus"] = "South Ferry",
				},
				["Express"] = {
					["title"] = "Express",
					["left terminus"] = {"Burnside Avenue", "Fordham Road"},
					["right terminus"] = "Rector Street",
				},
			},
		},
	},
}

return p