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

local blue = "%1 station (CTA Blue Line)"
local brown = "%1 station (CTA Brown Line)"
local cae = "%1 station (Chicago Aurora and Elgin Railroad)"
local cta = "%1 station (CTA)"
local congress = "%1 station (CTA Congress Line)"
local crt = "%1 station (CRT)"
local douglas = "%1 station (CTA Douglas branch)"
local englewood = "%1 station (CTA Englewood branch)"
local humboldt = "%1 station (CTA Humboldt Park branch)"
local garfield = "%1 station (CTA Garfield Park branch)"
local green = "%1 station (CTA Green Line)"
local lake = "%1 station (CTA Lake branch)"
local logan = "%1 station (CTA Logan Square branch)"
local mml = "%1 station (CTA Metropolitan Main Line)"
local niles = "%1 station (CTA Niles Center Line)"
local normal = "%1 station (CTA Normal Park branch)"
local nsml = "%1 station (CTA North Side Main Line)"
local orange = "%1 station (CTA Orange Line)"
local pink = "%1 station (CTA Pink Line)"
local purple = "%1 station (CTA Purple Line)"
local red = "%1 station (CTA Red Line)"
local south = "%1 station (CTA South Side Elevated)"
local stock = "%1 station (CTA Stock Yards branch)"
local westchester = "%1 station (CTA Westchester branch)"
local stn = "%1 station"

local p = {
	["lang"] = "en-US",
	["system title"] = "[[Chicago \"L\"]]",
	["system icon"] = "",
	["header background color"] = "0075c9",
	["station format"] = {
		stn,
		["5th Avenue"] = "Fifth Avenue–Maywood station",
		["11th Avenue"] = cae,
		["17th Avenue"] = cae,
		["18th Street"] = {
			south,
			["Douglas"] = douglas,
		},
		["25th Avenue"] = cae,
		["29th Street"] = cta,
		["33rd Street"] = cta,
		["35th"] = "35th–Bronzeville–IIT station",
		["35th Street"] = "35th–Bronzeville–IIT station",
		["47th"] = {
			["Green"] = green,
			["Red"] = red,			
		},
		["65th Street"] = normal,
		["69th Street"] = normal,
		["Addison"] = {
			["Blue"] = blue,
			["Brown"] = brown,
			["Red"] = red,	
			["NSML"] = red,
		},
		["Ashland"] = {
			"Ashland station (CTA Green and Pink Lines)",
			["Englewood"] = "Ashland/63rd station",
			["Howard–Englewood–Jackson Park"] = "Ashland/63rd station",
			["Orange"] = orange,
		},
		["Ashland/63rd old"] = "[[Ashland/63rd station|Ashland]]",
		["Argyle"] = cta,
		["Armour"] = cta,
		["Austin"] = {
			["Blue"] = blue,
			["Congress"] = blue,
			["Douglas"] = douglas,
			["Garfield"] = garfield,
			["Green"] = green,
			["Lake"] = green,
		},
		["Berwyn"] = cta,
		["Bellwood"] = cae,
		["Belmont"] = {
			nsml,
			["Blue"] = blue,
		},
		["Bryn Mawr"] = cta,
		["California"] = {
			["Blue"] = blue,
			["Congress"] = congress,
			["Garfield"] = garfield,
			["Green"] = green,
			["Humboldt"] = humboldt,
			["Lake"] = green,
			["Logan"] = blue,
			["Pink"] = pink,	
		},
		["Canal"] = {
			mml,
			["Lake"] = lake,
		},
		["Calvary"] = crt,
		["Central"] = {
			["Congress"] = congress,
			["Douglas"] = douglas,
			["Evanston"] = purple,
			["Garfield"] = garfield,
			["Green"] = green,
			["Purple"] = purple,	
		},
		["Central Park"] = cta,
		["Cermak"] = "Cermak–McCormick Place station",
		["Chicago"] = {
			"Chicago station (CTA Brown and Purple Lines)",
			["Blue"] = blue,
			["Logan"] = logan,
			["Red"] = red,
		},
		["Cicero"] = {
			["Blue"] = {
				blue,
				["Cermak"] = pink,
			},
			["Congress"] = blue,
			["Douglas"] = pink,
			["Garfield"] = garfield,
			["Green"] = green,
			["Pink"] = pink,			
		},
		["Clark"] = cta,
		["Clinton"] = {
			"Clinton station (CTA Green and Pink Lines)",
			["Blue"] = blue,
		},
	    ["Conservatory"] = "Conservatory–Central Park Drive station",
		["Crawford"] = {
			["Douglas"] = douglas,
			["Garfield"] = garfield,
		},
		["Cumberland"] = cta,
		["Damen"] = {
			["Brown"] = brown,
			["Ravenswood"] = brown,
			["Blue"] = blue,
			["Green"] = green,
			["Humboldt"] = blue,
			["Logan"] = blue,
			["Lake"] = lake,	
			["Pink"] = pink,	
		},
		["Dempster"] = {
			purple,
			["Niles"] = "Dempster–Skokie station",
		},
		["Division"] = {
			nsml,
			["Blue"] = blue,
			["Logan"] = logan,
		},
		["Davis"] = cta,
		["Des Plaines"] = "Forest Park station",
		["Exchange"] = cta,
		["Forest Park"] = {
			stn,
			["Lake"] = lake,
		},
		["Fullerton"] = cta,
		["Franklin Street Terminal"] = "Franklin Street Terminal",
		["Garfield"] = {
			["Garfield"] = garfield,
			["Green"] = green,
			["Red"] = red,
			["South Side"] = green,
		},
		["Grand"] = {
			nsml,
			["Blue"] = blue,
			["Logan"] = logan,
			["Red"] = red,
		},
		["Granville"] = cta,
		["Halsted"] = {
			nsml,
			["Green"] = {
				green,
				["Lake"] = "Halsted station (CTA Green Line Lake branch)",
			},
			["Englewood"] = green,
			["Lake"] = "Halsted station (CTA Green Line Lake branch)",
			["MML"] = mml,
			["Orange"] = orange,
			["Orange loop"] = orange,
			["Stock"] = stock,
		},
		["Harold Washington Library"] = "Harold Washington Library – State/Van Buren station",
		["Harlem"] = {
			["Blue"] = {
				"Harlem station (CTA Blue Line O'Hare branch)",
				["Congress"] = "Harlem station (CTA Blue Line Forest Park branch)",
			},
			["Garfield"] = "Harlem station (CTA Blue Line Forest Park branch)",
			["Lake"] = "Harlem/Lake station",
		},
		["Harrison"] = {
			cta,
			["Westchester"] = westchester,
		},
		["Harvard"] = cta,
		["Homan"] = {
			["Douglas"] = douglas,
			["Green"] = green,
			["Lake"] = green,
		},
		["Home"] = cta,
                ["Howard"] = cta,
		["Hoyne"] = {
			["Douglas"] = douglas,
			["Garfield"] = garfield,
		},
		["Indiana"] = cta,
		["Irving Park"] = {
			["Brown"] = brown,
			["Ravenswood"] = brown,
			["Blue"] = blue,			
		},
		["Jackson"] = {
			["Blue"] = blue,
			["Red"] = red,			
		},
		["Jackson Park"] = cta,
		["Jackson Park (1893)"] = "[[Jackson Park station (World's Fair)|Jackson Park]]",
		["Jefferson Park"] = "Jefferson Park Transit Center",
		["Kedzie"] = {
			["Brown"] = brown,
			["Congress"] = "Kedzie–Homan station",
			["Garfield"] = garfield,
			["Green"] = green,
			["Humboldt"] = humboldt,
			["Lake"] = green,
			["Orange"] = orange,
			["Pink"] = pink,
		},
		["Kenton"] = cta,
		["Kostner"] = {
			["Blue"] = pink,
			["Congress"] = congress,
			["Douglas"] = pink,
			["Lake"] = lake,	
			["Niles"] = niles,
			["Pink"] = pink,				
		},
		["Lake"] = cta,
		["LaSalle"] = cta,
		["Laramie"] = {
			["Blue"] = blue,
			["Douglas"] = douglas,
			["Garfield"] = garfield,
			["Green"] = green,
			["Lake"] = green,
		},
		["Lawndale"] = {
			["Douglas"] = douglas,
			["Humboldt"] = humboldt,
		},
		["Lawrence"] = cta,
		["Library"] = "Harold Washington Library – State/Van Buren station",
		["Linden"] = cta,
		["Logan Square"] = {
			stn,
			["Logan"] = logan,
		},
		["Lombard"] = {
			["Douglas"] = douglas,
			["Garfield"] = garfield,
			["Lake"] = lake,
		},
		["Loomis"] = {
			["Englewood"] = englewood,
			["Lake"] = lake,
		},
		["Loop"] = "[[The Loop (CTA)|Loop]]",
		["Loop lake"] = "[[The Loop (CTA)|Loop]]<br/><small>[[Randolph/Wells station|(Randolph/Wells)]]</small>",
		["Loop orange"] = "[[The Loop (CTA)|Loop]]<br/><small>[[Harold Washington Library – State/Van Buren station|(Library)]]</small>",
		["Loop purple"] = "[[The Loop (CTA)|Loop]]<br/><small>[[Clark/Lake station|(Clark/Lake)]]</small>",
		["Loop pink"] = "[[The Loop (CTA)|Loop]]<br/><small>[[Clark/Lake station|(Clark/Lake)]]</small>",
		["Loop brown"] = "[[The Loop (CTA)|Loop]]<br/><small>[[Washington/Wells station|(Washington/Wells)]]</small>",
		["Loop brown old"] = "[[The Loop (CTA)|Loop]]<br/><small>[[Randolph/Wells station|(Randolph/Wells)]]</small>",
		["Loop south"] = "[[The Loop (CTA)|Loop]]<br/><small>[[Adams/Wabash station|(Adams/Wabash)]]</small>",
		["Loop met"] = "[[The Loop (CTA)|Loop]]<br/><small>[[LaSalle/Van Buren station|(LaSalle/Van Buren)]]</small>",
		["Madison"] = cta,
		["Main"] = {
			cta,
			["Niles"] = niles,
		},
		["Marion"] = cta,
		["Medical Center"] = cta,
		["Michigan"] = cta,
		["Midway"] = "[[Midway station (CTA)|Midway]] [[File:Pictograms-nps-airport.svg|11px|link=Midway International Airport]]",
		["Monroe"] = {
			["Blue"] = blue,
			["Red"] = red,			
		},
		["Montrose"] = {
			["Blue"] = blue,
			["Brown"] = brown,	
			["Ravenswood"] = brown,
		},
		["O'Hare"] = "[[O'Hare station|O'Hare]] [[File:Pictograms-nps-airport.svg|11px|link=O'Hare International Airport]]",
		["Oak"] = cta,
		["Oakley"] = cta,
		["Oak Park"] = {
			["Blue"] = blue,
			["Congress"] = blue,
			["Douglas"] = douglas,
			["Garfield"] = blue,
			["Green"] = green,
			["Lake"] = green,
		},
		["Ogden"] = cta,
		["Princeton"] = cta,
		["Pulaski"] = {
			["Blue"] = blue,
			["Congress"] = blue,
			["Douglas"] = pink,
			["Garfield"] = garfield,
			["Green"] = green,
			["Orange"] = orange,
			["Pink"] = pink,	
		},
		["Quincy"] = cta,
		["Racine"] = {
			["Blue"] = blue,
			["Englewood"] = green,
			["Green"] = green,	
			["Lake"] = lake,
			["MML"] = mml,
			["Stock"] = stock,
		},
		["Ravenswood"] = cta,
		["Ridgeland"] = {
			stn,
			["Douglas"] = douglas,
			["Garfield"] = garfield,
		},
		["Roosevelt"] = {
			cta,
			["Douglas"] = douglas,
			["Westchester"] = westchester,
		},
		["Rosemont"] = cta,
		["Sacramento"] = {
			["Garfield"] = garfield,
			["Lake"] = lake,
		},
		["Sedgwick"] = cta,
		["Sheridan"] = cta,
		["Southport"] = cta,
		["State"] = cta,
		["Stock Yards"] = "[[Union Stock Yards|Stock Yards]]<br><small>([[Racine station (CTA Stock Yards branch)|Racine]])</small>",
		["Stony Island"] = cta,
		["St. Louis"] = {
			["Garfield"] = garfield,
			["Humboldt"] = humboldt,
		},
		["Thorndale"] = cta,
		["University"] = cta,
		["Washington"] = {
			["Blue"] = blue,
			["Red"] = red,			
		},
		["Washington/Wabash"] = "[[Washington/Wabash station|Washington/&#8203;Wabash]]",
		["Wellington"] = cta,
		["Western"] = {
			["Blue"] = {
				"Western station (CTA Blue Line O'Hare branch)",
				["Congress"] = "Western station (CTA Blue Line Congress branch)",				
			},
			["Brown"] = brown,
			["Ravenswood"] = brown,
			["Congress"] = "Western station (CTA Blue Line Congress branch)",
			["Douglas"] = pink,
			["Garfield"] = garfield,
			["Humboldt"] = humboldt,
			["Logan"] = logan,
			["Orange"] = orange,
			["Pink"] = pink,				
		},
		["Vincennes"] = cta,
		["Wells Street Terminal"] = "Wells Street Terminal",
		["Willow"] = crt,
		["Wilson"] = cta,
		["Wrightwood"] = cta,
	},
	["lines"] = {
		["Blue"] = {
			["title"] = "[[Blue Line (CTA)|Blue Line]]",
			["color"] = "00A1DE",
			["text color"] = "FFFFFF",
			["left terminus"] = "O'Hare",
			["right terminus"] = "Forest Park",
			["types"] = {
				["Cermak"] = {
					["title"] = "<small>[[Cermak branch]]</small>",
					["left terminus"] = "54th/Cermak",
					["right terminus"] = "O'Hare",
				},
				["Congress"] = {
					["title"] = "",
					["left terminus"] = "Forest Park",
					["right terminus"] = "O'Hare",
				},
			},
		},
		["Brown"] = {
			["title"] = "[[Brown Line (CTA)|Brown Line]]",
			["color"] = "62361B",
			["left terminus"] = "Kimball",
			["right terminus"] = "Loop brown",
		},
		["Brown loop"] = {
			["title"] = "[[Brown Line (CTA)|Brown Line]]",
			["color"] = "62361B",
			["left terminus"] = "toward [[Kimball station|Kimball]]",
			["right terminus"] = "[[The Loop (CTA)|Loop]]-bound terminus",
			["circular"] = true,
		},
		["Green"] = {
			["title"] = "[[Green Line (CTA)|Green Line]]",
			["color"] = "009B3A",
			["text color"] = "FFFFFF",
			["left terminus"] = "Harlem/Lake",
			["right terminus"] = {"Ashland/63rd", "Cottage Grove"},
			["types"] = {
				["old"] = {
					["title"] = "",
					["right terminus"] = {"Ashland/63rd old", "University"},
				},
				["Ashland"] = {
					["title"] = "<small>[[Ashland branch]]</small>",
					["right terminus"] = "Ashland/63rd",
				},
				["Englewood"] = {
					["title"] = "<small>[[Ashland branch|Englewood branch]]</small>",
					["right terminus"] = "Ashland",
				},
				["East 63rd"] = {
					["title"] = "<small>[[East 63rd branch (CTA)|East 63rd branch]]</small>",
					["right terminus"] = "Cottage Grove",
				},
				["Jackson Park"] = {
					["title"] = "<small>[[East 63rd branch (CTA)|Jackson Park branch]]</small>",
					["right terminus"] = "University",
				},
			},
		},
		["Orange"] = {
			["title"] = "[[Orange Line (CTA)|Orange Line]]",
			["color"] = "F9461C",
			["text color"] = "FFFFFF",
			["left terminus"] = "Midway",
			["right terminus"] = "Loop orange",
		},
		["Orange loop"] = {
			["title"] = "[[Orange Line (CTA)|Orange Line]]",
			["color"] = "F9461C",
			["left terminus"] = "toward [[Midway station (CTA)|Midway]] [[File:Pictograms-nps-airport.svg|12px|link=Midway International Airport]]",
			["right terminus"] = "[[The Loop (CTA)|Loop]]-bound terminus",
			["circular"] = true,
		},
		["Pink"] = {
			["title"] = "[[Pink Line (CTA)|Pink Line]]",
			["color"] = "E27EA6",
			["text color"] = "FFFFFF",
			["left terminus"] = "54th/Cermak",
			["right terminus"] = "Loop pink",
		},
		["Pink loop"] = {
			["title"] = "[[Pink Line (CTA)|Pink Line]]",
			["color"] = "E27EA6",
			["left terminus"] = "toward [[54th/Cermak station|54th/Cermak]]",
			["right terminus"] = "[[The Loop (CTA)|Loop]]-bound terminus",
			["circular"] = true,
		},
		["Purple"] = {
			["title"] = "[[Purple Line (CTA)|Purple Line]]",
			["color"] = "522398",
			["left terminus"] = "Linden",
			["right terminus"] = "Howard",
		},
		["Purple loop"] = {
			["title"] = "[[Purple Line (CTA)|Purple Line]]",
			["color"] = "522398",
			["left terminus"] = "toward [[Linden station (CTA)|Linden]]",
			["right terminus"] = "[[The Loop (CTA)|Loop]]-bound terminus",
			["circular"] = true,
		},
		["Red"] = {
			["title"] = "[[Red Line (CTA)|Red Line]]",
			["color"] = "C60C30",
			["left terminus"] = "Howard",
			["right terminus"] = "95th/Dan Ryan",
		},
		["Yellow"] = {
			["title"] = "[[Yellow Line (CTA)|Yellow Line]]",
			["color"] = "F9E300",
			["left terminus"] = "Dempster–Skokie",
			["right terminus"] = "Howard",
		},
		["Congress"] = {
			["title"] = "[[Congress branch]]",
			["color"] = "00A1DE",
			["left terminus"] = "Des Plaines",
			["right terminus"] = "O'Hare",
		},
		["Douglas"] = {
			["title"] = "[[Douglas branch]]",
			["color"] = "000000",
			["left terminus"] = "Oak Park",
			["right terminus"] = "Marshfield",
		},
		["Englewood"] = {
			["title"] = "[[Englewood branch]]",
			["color"] = "000000",
			["left terminus"] = "58th",
			["right terminus"] = "Ashland",
		},
		["Evanston"] = {
			["title"] = "[[Evanston Line]]",
			["color"] = "522398",
			["left terminus"] = "Linden",
			["right terminus"] = "Howard",
		},
		["Garfield"] = {
			["title"] = "[[Garfield Park branch]]",
			["color"] = "000000",
			["left terminus"] = "Des Plaines",
			["right terminus"] = "Marshfield",
		},
		["Howard–Englewood–Jackson Park"] = {
			["title"] = "[[Red_Line_(CTA)#History|Howard–Englewood–Jackson Park Line]]",
			["color"] = "C60C30",
			["left terminus"] = "Howard",
			["right terminus"] = {"Ashland", "Jackson Park"},
		},
		["Humboldt"] = {
			["title"] = "[[Humboldt Park branch]]",
			["color"] = "000000",
			["left terminus"] = "Lawndale",
			["right terminus"] = "Damen",
		},
		["Jackson Park"] = {
			["title"] = "[[Jackson Park branch]]",
			["color"] = "000000",
			["left terminus"] = "58th",
			["right terminus"] = "Jackson Park",
		},
		["Kenwood"] = {
			["title"] = "[[Kenwood branch]]",
			["color"] = "000000",
			["left terminus"] = "Indiana",
			["right terminus"] = "42nd Place",
		},
		["Lake"] = {
			["title"] = "[[Lake Street Elevated]]",
			["color"] = "009B3A",
			["left terminus"] = "Harlem/Lake",
			["right terminus"] = {"Loop lake", "Market Terminal"},
		},
		["Lake–Dan Ryan"] = {
			["title"] = "[[Lake–Dan Ryan Line]]",
			["color"] = "009B3A",
			["left terminus"] = "Harmlen/Lake",
			["right terminus"] = "95th/Dan Ryan",
		},
		["Logan"] = {
			["title"] = "[[Logan Square branch]]",
			["color"] = "000000",
			["left terminus"] = "Logan Square",
			["right terminus"] = "Marshfield",
		},
		["Loop"] = {
			["title"] = "[[The Loop (CTA)|Loop Elevated]]",
			["color"] = "000000",
			["left terminus"] = "Next clockwise",
			["right terminus"] = "Next counter-clockwise",
			["circular"] = true,
		},
		["Loop Shuttle"] = {
			["title"] = "[[Loop Shuttle]]",
			["color"] = "565A5C",
			["circular"] = true,
		},
		["MML"] = {
			["title"] = "[[Metropolitan main line]]",
			["color"] = "000000",
			["left terminus"] = "Marshfield",
			["right terminus"] = {"Loop met", "Wells Street Terminal"},
		},
		["MML loop"] = {
			["title"] = "[[Metropolitan main line]]",
			["color"] = "000000",
			["left terminus"] = "toward [[Marshfield station|Marshfield]]",
			["right terminus"] = "[[The Loop (CTA)|Loop]]-bound terminus",
			["circular"] = true,
		},
		["Niles"] = {
			["title"] = "[[Yellow Line (CTA)|Niles Center branch]]",
			["color"] = "F9E300",
			["left terminus"] = "Dempster",
			["right terminus"] = "Howard",
		},
		["Normal Park"] = {
			["title"] = "[[Normal Park branch]]",
			["color"] = "000000",
			["left terminus"] = "69th Street",
			["right terminus"] = "Harvard",
		},
		["Northwestern Elevated Railroad"] = {
			["title"] = "[[Northwestern Elevated Railroad]]",
			["color"] = "000000",
			["left terminus"] = "Linden",
			["right terminus"] = {"Loop brown old", "North Water Terminal"},
		},
		["NSML"] = {
			["title"] = "[[North Side main line]]",
			["color"] = "000000",
			["left terminus"] = "Howard",
			["right terminus"] = {"Loop brown old", "North Water Terminal"},
		},
		["Ravenswood"] = {
			["title"] = "[[Ravenswood branch]]",
			["color"] = "62361B",
			["left terminus"] = "Kimball",
			["right terminus"] = "Belmont",
		},
		["South Side"] = {
			["title"] = "[[South Side Elevated]]",
			["color"] = "000000",
			["left terminus"] = {"Loop south", "Congress Terminal"},
			["right terminus"] = "58th",
		},
		["South Side loop"] = {
			["title"] = "[[South Side Elevated]]",
			["color"] = "000000",
			["left terminus"] = "[[The Loop (CTA)|Loop]]-bound terminus",
			["right terminus"] = "toward [[58th station|58th]]",
			["circular"] = true,
		},
		["Stock"] = {
			["title"] = "[[Stock Yards branch]]",
			["color"] = "000000",
			["left terminus"] = "Stock Yards",
			["right terminus"] = "Indiana",
		},
		["Westchester"] = {
			["title"] = "[[Westchester branch]]",
			["color"] = "000000",
			["left terminus"] = "Mannheim/22nd",
			["right terminus"] = "Des Plaines",
		},
		-- [[Module:CTA header]]
		["A"] = {
			["color"] = "DC0000",
		},
		["B"] = {
			["color"] = "008800",
		},
		["AB"] = {
			["color"] = "32B9DF",
		},
		["KDR90"] = {
			["color"] = "315ACC",
		},
	},
	["aliases"] = {
		["evanstonx"] = "Evanston",
		["oldgreen"] = "Green",
		["purplex"] = "Purple",	
	},
}

return p