Module:Adjacent stations/New York, New Haven and Hartford Railroad

local amtrak = "%1 station (Amtrak)"
local ct = "%1 station (Connecticut)"
local ma = "%1 station (Massachusetts)"
local mbta = "%1 station (MBTA)"
local mnrr = "%1 station (Metro-North)"
local nynhh = "%1 station (New York, New Haven and Hartford Railroad)"
local ri = "%1 station (Rhode Island)"
local tc = "%1 Transportation Center"
local union = "Union Station (%1)"
local xunion = "%1 Union Station"

local p = {
	["lang"] = "en-US",
	["system title"] = "[[New York, New Haven and Hartford Railroad]]",
	["system icon"] = "",
	["name format"] = "background-color: transparent; font-size: 200%; text-transform:uppercase; font-family:Arial; color:black; font-weight:bolder; text-align:center; font-style:bold; border:5px solid #C00; border-width: 50%; padding: 0.3em;",
	["station format"] = {
		"%1 station",
		["125th Street"] = "Harlem–125th Street station",
		["Atlantic"] = "North Quincy station#History",
		["Attleboro"] = ma,
		["Back Bay"] = "[[Back Bay station|Boston Back Bay]]",
		["Baychester"] = "Co-op City station",
		["Bellevue"] = mbta,
		["Bird's Hill"] = "Hersey station#History",
		["Bolton"] = ma,
		["Boylston"] = "Stony Brook station (MBTA)#History",
		["Boston"] = "South Station",
		["Braintree"] = "Braintree station (MBTA)#History",
		["Brewster"] = ma,
		["Bridgeport"] = ct,
		["Bridgewater"] = mbta,
		["Brockton"] = mbta,
		["Brookfield"] = mnrr,
		["Canaan"] = "Canaan Union Depot",
		["Canton"] = "Canton Center station",
		["Central Avenue"] = mbta,
		["Chatham"] = ma,
		["Chelmsford"] = ma,
		["Clinton"] = ct,
		["Cordage"] = "Plymouth station (MBTA)",
		["Cottage Street"] = "Uphams Corner station#History",
		["Crescent Avenue"] = "JFK/UMass station#History",
		["Danbury"] = "Danbury Railway Museum",
		["Darby"] = ma,
		["Devon"] = nynhh,
		["Dorchester"] = "Talbot Avenue station#History",
		["Dutchess Junction"] = "Beacon station#History",
		["Essex"] = "Essex Freight Station",
		["Fairfield"] = mnrr,
		["Fairhaven"] = ma,
		["Fairmount"] = mbta,
		["Ferry Street"] = "Battleship Cove station#History",
		["Fitchburg"] = "Fitchburg Intermodal Transportation Center",
		["Florence"] = ma,
		["Forest Avenue"] = "Morton Street station#History",
		["Forest Hills"] = mbta,
		["Foxvale"] = "Foxboro station#History",
		["Franklin"] = "Franklin/Dean College station",
		["Georgetown"] = ct,
		["Glenbrook"] = mnrr,
		["Glenwood"] = ma,
		["Greenwich"] = mnrr,
		["Groton"] = ct,
		["Harrison"] = mnrr,
		["Harvard Street"] = "Talbot Avenue station#History",
		["Hartford"] = xunion,
		["Harwich"] = ma,
		["Highland"] = mbta,
		["Hunts Point"] = mnrr,
		["Hyannis"] = tc,
		["Hyde Park"] = mbta,
		["Islington"] = mbta,
		["Jamaica Plain"] = "Green Street station#History",
		["Kent"] = ct,
		["Kingston"] = {
			ri,
			["Plymouth"] = "Kingston station (Massachusetts)#History",
			["South Shore Line"] = "Kingston station (Massachusetts)#History",
		},
        ["Lakeville"] = "Middleborough/Lakeville station#History",
		["Lee"] = ma,
		["Lenox"] = ma,
		["Madison"] = ct,
		["Mansfield"] = mbta,
		["Manville"] = ri,
		["Marion"] = ma,
		["Mattapan Midland"] = "[[Blue Hill Avenue station#History|Mattapan]]",
		["Milford"] = ct,
		["Milton"] = mbta,
		["Montclair"] = ma,
		["Montwait"] = "Framingham station#Other Framingham stations",
		["Morris Park"] = mnrr,
		["Mount Bowdoin"] = "Four Corners/Geneva station#History",
		["Mount Vernon"] = "Mount Vernon East station",
		["Mystic"] = ct,
		["New Haven"] = union,
		["New London"] = xunion,
		["New York"] = "Grand Central Terminal",
		["New York Penn"] = "Pennsylvania Station (1910–1963)",
		["New York Harlem River"] = "Willis Avenue station",
		["Norfolk"] = mbta,
		["Norfolk Downs"] = "North Quincy station#History",
		["Northampton"] = "Union Station (Northampton, Massachusetts)",
		["North Cohasset"] = "Cohasset station#History",
		["Norwalk and South Norwalk"] = "South Norwalk station",
		["Norwood"] = "Norwood Depot",
		["Orleans"] = ma,
		["Pemberton"] = ma,
		["Pittsfield"] = "Joseph Scelsi Intermodal Transportation Center",
		["Pleasant Lake"] = ma,
		["Plymouth"] = mbta,
		["Providence"] = "Union Station (Providence)",
		["Quincy"] = "Quincy Center station",
		["Raynham"] = "Raynham Place station#History",
		["Redding"] = mnrr,
		["Riverside"] = mnrr,
		["River Street"] = ma,
		["Rock"] = "Middleborough/Lakeville station#History",
		["Rugby"] = "Rugby station (Boston)",
		["Rye"] = mnrr,
		["Sandwich"] = ma,
		["Seaside"] = "Plymouth station (MBTA)",
		["Sheffield"] = ma,
		["South Boston"] = "Broadway station (MBTA)#History",
		["South Braintree"] = "Braintree station (MBTA)#History",
		["South Hanson"] = "Hanson station",
		["South Middleboro"] = "Middleborough/Lakeville station#History",
		["Southport"] = mnrr,
		["Sharon Heights"] = "Sharon station#Other Sharon stations",
		["Springdale"] = ma,
		["Springfield"] = "Union Station (Springfield, Massachusetts)",
		["Stamford"] = tc,
		["Stratford"] = ct,
		["Taunton"] = amtrak,
		["Tremont"] = ma,
		["Truro"] = ma,
		["Van Nest"] = "Parkchester/Van Nest station (Metro-North)",
		["Walpole"] = "Union Station (Walpole, Massachusetts)",
		["Wareham"] = "Wareham Village station",
		["Weir River"] = ma,
		["Westbrook"] = ct,
		["Westchester"] = nynhh,
		["Wilton"] = mnrr,
		["Wollaston Heights"] = "Wollaston station#History",
		["Woodmont"] = nynhh,
		["Woodside"] = mnrr,
		["Worcester"] = "Union Station (Worcester, Massachusetts)",
		["Yarmouth"] = ma,
	},
	["lines"] = {
		["_default"] = {
			["color"] = "ed0a28",	
		},
		["Agricultural Branch"] = {
			["title"] = "[[Agricultural Branch Railroad|Agricultural Branch]]",
			["left terminus"] = "Fitchburg",
			["right terminus"] = "Framingham",
		},
		["Braintree"] = {
			["title"] = "Boston–​Braintree",
			["left terminus"] = "Boston",
			["right terminus"] = "Braintree",
		},
		["Canal Line"] = {
			["title"] = "[[New Haven and Northampton Railroad|Canal Line]]",
			["left terminus"] = "New Haven",
			["right terminus"] = "Shelburne Falls",
		},
		["Cape Codder"] = {
			["title"] = "[[Cape Codder (NH train)|Cape Codder]]",
			["left terminus"] = "New York",
			["right terminus"] = {"Hyannis", "Woods Hole"},			
		},
		["Charles River Line"] = {
			["title"] = "[[Charles River Railroad|Charles River Line]]",
			["left terminus"] = "Woonsocket",
			["right terminus"] = "Boston",
		},
		["Chatham Branch"] = {
			["title"] = "Chatham Branch",
			["left terminus"] = "Harwich",
			["right terminus"] = "Chatham",
		},
		["Dedham Branch"] = {
			["title"] = "[[Dedham Branch]]",
			["left terminus"] = "Dedham",
			["right terminus"] = "Readville",
		},
		["Fairhaven Branch"] = {
			["title"] = "[[Fairhaven Branch Railroad|Fairhaven Branch]]",
			["left terminus"] = "Fairhaven",
			["right terminus"] = "Tremont",
		},
		["Framingham–Lowell"] = {
			["title"] = "[[Framingham and Lowell Railroad|Framingham–Lowell]]",
			["left terminus"] = "Framingham",
			["right terminus"] = "Lowell",
		},	
		["Framingham–Mansfield"] = {
			["title"] = "[[Framingham Secondary|Framingham–Mansfield]]",
			["left terminus"] = "Framingham",
			["right terminus"] = "Mansfield",
		},	
		["Granite Branch"] = {
			["title"] = "Granite Branch",
			["left terminus"] = "Boston",
			["right terminus"] = "Braintree",
		},	
		["Harlem River Branch"] = {
			["title"] = "[[Harlem River and Port Chester Railroad|Harlem River Branch]]",
			["left terminus"] = "New York Harlem River",
			["right terminus"] = "New Rochelle",			
		},
		["Hyannis"] = {
			["title"] = "Boston–​Hyannis",
			["left terminus"] = "Boston",
			["right terminus"] = "Hyannis",
		},
		["Main Line"] = {
			["title"] = "Main Line",
			["left terminus"] = "New York",
			["right terminus"] = "New Haven",
		},
		["Middleborough"] = {
			["title"] = "Boston–​Middleborough",
			["left terminus"] = "Boston",
			["right terminus"] = "Middleborough",
		},
		["Midland Line"] = {
			["title"] = "[[Midland Line (New Haven)|Midland Line]]",
			["left terminus"] = "Blackstone",
			["right terminus"] = "Boston",
		},
		["Milton Branch"] = {
			["title"] = "[[Dorchester and Milton Branch Railroad|Boston–​Mattapan]]",
			["left terminus"] = "Mattapan",
			["right terminus"] = "Boston",
		},
		["Nantasket Beach Branch"] = {
			["title"] = "[[Nantasket Beach Railroad|Nantasket Beach Branch]]",
			["left terminus"] = "Nantasket Junction",
			["right terminus"] = "Pemberton",
		},
		["New York and New England Railroad"] = {
			["title"] = "[[New York and New England Railroad]]",
			["left terminus"] = "Hartford",
			["right terminus"] = {"Boston", "Providence"},
		},
		["Norwich Branch"] = {
			["title"] = "[[Norwich Branch]]",
			["left terminus"] = "New London",
			["right terminus"] = "Worcester",
		},
		["Pittsfield Branch"] = {
			["title"] = "[[Danbury Branch|Pittsfield Branch]]",
			["left terminus"] = "Norwalk and South Norwalk",
			["right terminus"] = "Pittsfield",
		},
		["Plymouth"] = {
			["title"] = "Boston–​Plymouth",
			["left terminus"] = "Boston",
			["right terminus"] = "Plymouth",
		},
		["Plymouth and Middleborough Branch"] = {
			["title"] = "[[Plymouth and Middleborough Railroad|Plymouth and Middleborough Branch]]",
			["left terminus"] = "Middleborough",
			["right terminus"] = "Plymouth",
		},
		["Providence and Worcester Railroad"] = {
			["title"] = "[[Providence and Worcester Railroad]]",
			["left terminus"] = "Worcester",
			["right terminus"] = "Providence",
		},
		["Provincetown"] = {
			["title"] = "Boston–​Provincetown",
			["left terminus"] = "Boston",
			["right terminus"] = "Provincetown",
		},	
		["Readville"] = {
			["title"] = "[[Fairmount Line#History|Boston–​Readville via Midland Branch]]",
			["left terminus"] = "Readville",
			["right terminus"] = "Boston",
		},
		["Shawmut Branch"] = {
			["title"] = "[[Shawmut Branch Railroad|Boston–​Mattapan]]",
			["left terminus"] = "Mattapan",
			["right terminus"] = "Boston",
		},
		["Shore Line"] = {
			["title"] = "[[Shore Line Railway (Connecticut)|Shore Line]]",
			["left terminus"] = "New Haven",
			["right terminus"] = "Boston",
		},
		["Shore Line Railway (Connecticut)"] = {
			["title"] = "[[Shore Line Railway (Connecticut)|Shore Line]]",
			["left terminus"] = "New Haven",
			["right terminus"] = "Boston",
		},
		["South Shore Line"] = {
			["title"] = "[[South Shore Line (New Haven)|South Shore Line]]",
			["left terminus"] = "Boston",
			["right terminus"] = "Greenbush",
		},
		["Stoughton Branch"] = {
			["title"] = "[[Stoughton Branch]]",
			["left terminus"] = "Taunton",
			["right terminus"] = "Canton Junction",
		},
		["Valley Branch"] = {
			["title"] = "[[Valley Branch]]",
			["left terminus"] = "Hartford",
			["right terminus"] = "Old Saybrook",
		},
		["Williamsburgh Branch"] = {
			["title"] = "[[New Haven and Northampton Railroad|Williamsburgh Branch]]",
			["left terminus"] = "Williamsburgh",
			["right terminus"] = "Northampton",
		},
		["Woods Hole"] = {
			["title"] = "Boston–​Woods Hole",
			["left terminus"] = "Boston",
			["right terminus"] = "Woods Hole",
		},
		["Worcester–Fitchburg"] = {
			["title"] = "[[Fitchburg and Worcester Railroad|Worcester–​Fitchburg]]",
			["left terminus"] = "Worcester",
			["right terminus"] = "Fitchburg",
		},
		["Wrentham Branch"] = {
			["title"] = "Wrentham Branch",
			["left terminus"] = "Providence",
			["right terminus"] = "Boston",
		},
	},
	["aliases"] = {
		["main"] = "Main Line",	
	},
}

return p