มอดูล:Adjacent stations/CTA

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"
local thEhSep = " " -- separator of Thai transliteration and English name
-- test function
local function testFunction(options, th, en)
	local temp1 = th .. thEhSep .. en .."" 
	local returnThis = ""
	if options == blue        then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายสีน้ำเงิน)|" .. temp1 end
	if options == brown       then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายสีน้ำตาล)|" .. temp1 end
	if options == cae         then returnThis = "สถานี" .. th .. " (ชิคาโกออโรลาแอนด์เอลกินเรลโรด)|" .. temp1 end
	if options == cta         then returnThis = "สถานี" .. th .. " (ชิคาโก แอล)|" .. temp1 end
	if options == congress    then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายคองเกรส)|" .. temp1 end
	if options == crt         then returnThis = "สถานี" .. th .. " (ชิคาโกแรปิดทรานสิทคอมเพนี)|" .. temp1 end
	if options == douglas     then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยดอกกลาส)|" .. temp1 end
	if options == englewood   then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายยอยอีเกิ้ลวูด)|" .. temp1 end
	if options == humboldt    then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยฮัมโบลต์พาร์ค)|" .. temp1 end
	if options == garfield    then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยการ์ฟิลด์พาร์ค)|" .. temp1 end
	if options == green       then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายสีเขียว)|" .. temp1 end
	if options == lake        then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยเลค)|" .. temp1 end
	if options == logan       then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยโลแกนสแคร์)|" .. temp1 end
	if options == mml         then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายเมโทรโพลิทานเมน)|" .. temp1 end
	if options == niles       then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายไนลส์เซ็นเตอร์)|" .. temp1 end
	if options == normal      then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยนอร์มอลพาร์ค)|" .. temp1 end
	if options == nsml        then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายนอร์ธไซด์เมน)|" .. temp1 end
	if options == orange      then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายสีส้ม)|" .. temp1 end
	if options == pink        then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายสีชมพู)|" .. temp1 end
	if options == purple      then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายสีม่วง)|" .. temp1 end
	if options == red         then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายสีแดง)|" .. temp1 end
	if options == south       then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายเซาธ์ไซด์เอเลเวท)|" .. temp1 end
	if options == stock       then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยสต็อกยาร์ด)|" .. temp1 end
	if options == westchester then returnThis = "สถานี" .. th .. " (ชิคาโก แอล สายย่อยเวสต์เชสเตอร์)|" .. temp1 end
	if options == stn         then returnThis = "สถานี" .. th .. "|" .. temp1 end
	return returnThis
end
-- 
local p = {
	"lang" = "en-US",
	"system title" = "ชิคาโก แอล",
	"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",
		"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,
		},
		"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",
		"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" = "Loop",
		"Loop lake" = "Loop(Randolph/Wells)",
		"Loop orange" = "Loop(Library)",
		"Loop purple" = "Loop(Clark/Lake)",
		"Loop pink" = "Loop(Clark/Lake)",
		"Loop brown" = "Loop(Washington/Wells)",
		"Loop brown old" = "Loop(Randolph/Wells)",
		"Loop south" = "Loop(Adams/Wabash)",
		"Loop met" = "Loop(LaSalle/Van Buren)",
		"Madison" = cta,
		"Main" = {
			cta,
			"Niles" = niles,
		},
		"Marion" = cta,
		"Medical Center" = cta,
		"Michigan" = cta,
		"Midway" = "Midway link=Midway International Airport",
		"Monroe" = {
			"Blue" = blue,
			"Red" = red,			
		},
		"Montrose" = {
			"Blue" = blue,
			"Brown" = brown,	
			"Ravenswood" = brown,
		},
		"O'Hare" = "O'Hare 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" = testFunction(cta, "โรสมอนต์", "Rosemont"),
		"Sacramento" = {
			"Garfield" = garfield,
			"Lake" = lake,
		},
		"Sedgwick" = cta,
		"Sheridan" = cta,
		"Southport" = cta,
		"State" = cta,
		"Stock Yards" = "Stock Yards(Racine)",
		"Stony Island" = cta,
		"St. Louis" = {
			"Garfield" = garfield,
			"Humboldt" = humboldt,
		},
		"Thorndale" = cta,
		"University" = cta,
		"Washington" = {
			"Blue" = blue,
			"Red" = red,			
		},
		"Washington/Wabash" = "Washington/​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" = "สายสีน้ำเงิน",
			"short name" = "สายสีน้ำเงิน",
			"color" = "00A1DE",
			"text color" = "FFFFFF",
			"left terminus" = "O'Hare",
			"right terminus" = "Forest Park",
			"types" = {
				"Cermak" = {
					"title" = "Cermak branch",
					"left terminus" = "54th/Cermak",
					"right terminus" = "O'Hare",
				},
				"Congress" = {
					"title" = "",
					"left terminus" = "Forest Park",
					"right terminus" = "O'Hare",
				},
			},
		},
		"Brown" = {
			"title" = "สายสีน้ำตาล",
			"short name" = "สายสีน้ำตาล",
			"color" = "62361B",
			"left terminus" = "Kimball",
			"right terminus" = "Loop brown",
		},
		"Brown loop" = {
			"title" = "สายสีน้ำตาล",
			"short name" = "สายสีน้ำตาล",
			"color" = "62361B",
			"left terminus" = "toward Kimball",
			"right terminus" = "Loop-bound terminus",
			"circular" = true,
		},
		"Green" = {
			"title" = "สายสีเขียว",
			"short name" = "สายสีเขียว",
			"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" = "Ashland branch",
					"right terminus" = "Ashland/63rd",
				},
				"Englewood" = {
					"title" = "Englewood branch",
					"right terminus" = "Ashland",
				},
				"East 63rd" = {
					"title" = "East 63rd branch",
					"right terminus" = "Cottage Grove",
				},
				"Jackson Park" = {
					"title" = "Jackson Park branch",
					"right terminus" = "University",
				},
			},
		},
		"Orange" = {
			"title" = "สายสีส้ม",
			"short name" = "สายสีส้ม",
			"color" = "F9461C",
			"text color" = "FFFFFF",
			"left terminus" = "Midway",
			"right terminus" = "Loop orange",
		},
		"Orange loop" = {
			"title" = "สายสีส้ม",
			"short name" = "สายสีส้ม",
			"color" = "F9461C",
			"left terminus" = "toward Midway link=Midway International Airport",
			"right terminus" = "Loop-bound terminus",
			"circular" = true,
		},
		"Pink" = {
			"title" = "สายสีชมพู",
			"short name" = "สายสีชมพู",
			"color" = "E27EA6",
			"text color" = "FFFFFF",
			"left terminus" = "54th/Cermak",
			"right terminus" = "Loop pink",
		},
		"Pink loop" = {
			"title" = "สายสีชมพู",
			"short name" = "สายสีชมพู",
			"color" = "E27EA6",
			"left terminus" = "toward 54th/Cermak",
			"right terminus" = "Loop-bound terminus",
			"circular" = true,
		},
		"Purple" = {
			"title" = "สายสีม่วง",
			"short name" = "สายสีม่วง",
			"color" = "522398",
			"left terminus" = "Linden",
			"right terminus" = "Howard",
		},
		"Purple loop" = {
			"title" = "สายสีม่วง",
			"short name" = "สายสีม่วง",
			"color" = "522398",
			"left terminus" = "toward Linden",
			"right terminus" = "Loop-bound terminus",
			"circular" = true,
		},
		"Red" = {
			"title" = "สายสีแดง",
			"short name" = "สายสีแดง",
			"color" = "C60C30",
			"left terminus" = "Howard",
			"right terminus" = "95th/Dan Ryan",
		},
		"Yellow" = {
			"title" = "สายสีเหลือง",
			"short name" = "สายสีเหลือง",
			"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" = "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" = "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",
			"right terminus" = "Loop-bound terminus",
			"circular" = true,
		},
		"Niles" = {
			"title" = "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" = "Loop-bound terminus",
			"right terminus" = "toward 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