Module:Adjacent stations/Metra/sandbox

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

local il = "%1 station (Illinois)"
local metra = "%1 station (Metra)"
local tc = "%1 Transportation Center"

local p = {
	["lang"] = "en-US",
	["system title"] = "[[Metra]]",
	["system icon"] = "",
	["system color"] = "246eab",
	["name format"] = "font-size: 150%; font-family:Helvetica, sans; font-weight: bolder; line-height: 100%; color: #FFFFFF; background-color: #246eab; padding: 4px;",
	["header background color"] = "246eab",
	["infobox station"] = {
		["_header"] = {
			["font-size"] = "150%",
			["font-family"] = "Helvetica, sans",
			["font-weight"] = "bolder",
			["line-height"] = "100%",
			["color"] = "#FFFFFF",
			["background-color"] = "#246EAB",
			["padding"] = "4px"
		},
		["_subheader"] = {
			["background-color"] = "#246EAB"
		}
	},		
	["station format"] = {
		"%1 station",
		["5th Street"] = il,
		["18th Street"] = il,
		["63rd Street"] = metra,
		["Abbott's Platform"] = "%1",
		["Antioch"] = il,
		["Ashburn"] = il,
		["Aurora"] = tc,
		["Bartlett"] = il,
		["Bellwood"] = metra,
		["Belmont"] = metra,
		["Belmont Avenue"] = {
			"Belmont Avenue station",
			["Union Pacific/North"] = "Belmont Avenue station (C&NW)",
		},
		["Berkeley"] = il,
		["Berwyn"] = metra,
		["Brookfield"] = il,
		["Bryn Mawr"] = metra,
		["Calumet"] = il,
		["Cary"] = metra,
		["Cheltenham"] = metra,
		["Chicago"] = "[[Chicago Union Station]]",
		["Cicero"] = metra,
		["Clyde"] = il,
		["College Avenue"] = il,
		["Cumberland"] = metra,
		["Elgin"] = il,
		["Elmhurst"] = il,
		["Fairview Avenue"] = il,
		["Forest Glen"] = il,
		["Geneva"] = il,
		["Glenn"] = il,
		["Halsted Street"] = {
			"Halsted Street station",
			["Heritage Corridor"] = "Halsted Street station (Heritage Corridor)",
		},
		["Harvard"] = metra,
		["Harvey"] = il,
		["Highland Park"] = il,
		["Hollywood"] = il,
		["Ivanhoe"] = il,
		["Jefferson Park"] = "Jefferson Park Transit Center",
		["Joliet"] = tc,
		["Kedzie"] = metra,
		["Kenilworth"] = il,
		["Kenmore"] = il,
		["Lake Forest"] = {
			["Milwaukee District/North"] = "Lake Forest station (Milwaukee District)",
			["Union Pacific/North"] = "Lake Forest station (Union Pacific)",
		},
		["LaSalle"] = "[[LaSalle Street Station|LaSalle Street]]",
		["Lathrop"] = il,
		["Lockport"] = il,
		["Mannheim"] = il,
		["Maplewood"] = il,
		["Mars"] = il,
		["Maywood"] = il,
		["Melrose Park"] = il,
		["Millennium Station"] = "%1",
		["Mont Clare"] = il,
		["Ogilvie"] = tc,
		["Orland Park"] = "[[Orland Park 143rd Street station|Orland Park]]",
		["Park Ridge"] = il,
		["Prairie Crossing"] = {
			["Milwaukee District/North"] = "Prairie Crossing station (Milwaukee District)",
			["North Central"] = "Prairie Crossing station (North Central Service)",
		},
		["Randolph"] = "[[Millennium Station|Randolph Street]]",
		["Riverdale"] = il,
		["Riverside"] = il,
		["Romeoville"] = metra,
		["Rondout"] = il,
		["Rosemont"] = metra,
		["Roosevelt Road"] = "[[Museum Campus/11th Street station|Museum Campus/11th Street]]",
		["South Chicago"] = "South Chicago (93rd Street) station",
		["State Street"] = il,
		["Summit"] = il,
		["Washington Street"] = il,
		["Western Avenue"] = {
			"Western Avenue station (Milwaukee District)",
			["BNSF Railway"] = "Western Avenue station (BNSF Railway)",
			["SouthWest Service"] = "Western Avenue station (Norfolk Southern Line)",
		},
		["Westmont"] = il,
		["Wheaton"] = il,
		["Wheeling"] = il,
		["Willow Springs"] = il,
		["Woodstock"] = il,
		["Wrightwood"] = metra,
	},
	["lines"] = {
		["BNSF Railway"] = {
			["title"] = "[[BNSF Railway (Metra)|BNSF Railway]]",
			["color"] = "55b948",
			["left terminus"] = "Aurora",
			["right terminus"] = "Chicago",
		},
		["Heritage Corridor"] = {
			["title"] = "[[Heritage Corridor]]",
			["color"] = "a30146",
			["left terminus"] = "Joliet",
			["right terminus"] = "Chicago",
		},
		["Milwaukee District/North"] = {
			["title"] = "[[Milwaukee District / North Line|Milwaukee District / North]]",
			["color"] = "f48f1e",
			["left terminus"] = "Fox Lake",
			["right terminus"] = "Chicago",
		},
		["Milwaukee District/West"] = {
			["title"] = "[[Milwaukee District / West Line|Milwaukee District / West]]",
			["color"] = "fdbe57",
			["left terminus"] = "Big Timber Road",
			["right terminus"] = "Chicago",
		},
		["Metra Electric"] = {
			["title"] = "[[Metra Electric District]]",
			["color"] = "f48f1e",
			["left terminus"] = "Millennium Station",
			["right terminus"] = {"University Park", "South Chicago", "Blue Island"},
			["types"] = {
				["Blue Island"] = {
					["title"] = "Blue Island Branch",
					["left terminus"] = "Millennium Station",
					["right terminus"] = "Blue Island",
				},
				["Main Line & Blue Island"] = {
					["title"] = "Main Line & Blue Island Branch",
					["left terminus"] = "Millennium Station",
					["right terminus"] = {"University Park", "Blue Island"},
				},
				["Main Line"] = {
					["title"] = "Main Line",
					["left terminus"] = "Millennium Station",
					["right terminus"] = "University Park",
				},
				["South Chicago"] = {
					["title"] = "South Chicago Branch",
					["left terminus"] = "Millennium Station",
					["right terminus"] = "South Chicago",
				},
				["South Chicago old"] = {
					["title"] = "South Chicago Branch",
					["left terminus"] = "Randolph",
					["right terminus"] = "91st Street (South Chicago)",
				}
			}
		},
		["North Central"] = {
			["title"] = "[[North Central Service]]",
			["color"] = "9a9bcd",
			["left terminus"] = "Antioch",
			["right terminus"] = "Chicago",
		},
		["Rock Island"] = {
			["title"] = "[[Rock Island District]]",
			["color"] = "ee3224",
			["left terminus"] = "Joliet",
			["right terminus"] = "LaSalle",
			["types"] = {
				["Beverly Branch"] = {
					["title"] = "Beverly Branch",
					["left terminus"] = "Joliet",
					["right terminus"] = "LaSalle",
				},
			},
		},
		["SouthWest Service"] = {
			["title"] = "[[SouthWest Service]]",
			["color"] = "0078c1",
			["left terminus"] = "Manhattan",
			["right terminus"] = "Chicago",
		},
		["Union Pacific/North"] = {
			["title"] = "[[Union Pacific / North Line|Union Pacific / North]]",
			["color"] = "008a54",
			["left terminus"] = "Kenosha",
			["right terminus"] = "Ogilvie",
		},
		["Union Pacific/Northwest"] = {
			["title"] = "[[Union Pacific / Northwest Line|Union Pacific / Northwest]]",
			["color"] = "ffd24f",
			["left terminus"] = {"Harvard", "McHenry"},
			["right terminus"] = "Ogilvie",
			["types"] = {
				["Harvard"] = {
					["title"] = "Harvard Branch",
					["left terminus"] = "Harvard",
					["right terminus"] = "Ogilvie",
				},
				["McHenry"] = {
					["title"] = "McHenry Branch",
					["left terminus"] = "McHenry",
					["right terminus"] = "Ogilvie",
				}
			}
		},
		["Union Pacific/West"] = {
			["title"] = "[[Union Pacific / West Line|Union Pacific / West]]",
			["color"] = "fbc9bf",
			["left terminus"] = "Elburn",
			["right terminus"] = "Ogilvie",
		},
	},
	["aliases"] = {
		["bnsf"] = "BNSF Railway",
		["heritage"] = "Heritage Corridor",
		["mdn"] = "Milwaukee District/North",
		["mdw"] = "Milwaukee District/West",
		["me"] = "Metra Electric",
		["nc"] = "North Central",
		["ri"] = "Rock Island",
		["sw"] = "SouthWest Service",
		["southwest"] = "SouthWest Service",
		["upn"] = "Union Pacific/North",
		["upnw"] = "Union Pacific/Northwest",
		["upw"] = "Union Pacific/West",
	}
}

return p