local y = "%1 railway station"

local p = {
	["system title"] = "MTR",
	["system icon"] = "x16px|link=MTR|alt=MTR",
	["line icon format"] = "link",
	["name format"] = {
		"font-size: 160%; font-family:sans-serif; font-weight: bolder; color: #FFFFFF; background-color: #11254A; padding: 0.3em 4px; line-height: 110%"
	["header background color"] = {
		"11254A",
	["station format"] = {
		"%1 station",
		
		["Aberdeen"] = x,
		["Admiralty"] = x,
		["Airport"] = x,
		["Austin"] = x,
		["Central"] = x,
		["Exhibition Centre"] = x,
		["Kowloon"] = x,
		["Racecourse"] = x,
		["Science Park"] = x,
		["University"] = x,
		["Oyster Bay"] = x,
		
		["Beijing West"] = y,
		["Changsha"] = y,
		["Foshan"] = y,
		["Guangzhou East"] = y,
		["Jinhua"] = y,
		["Shanghai"] = y,
		["West Kowloon"] = y,
		["Wuchang"] = y,
		["Zhaoqing"] = y,
		["Zhengzhou"] = y,
		["Zhuzhou"] = y,
		
		["Changping"] = "%1 railway station (Guangdong)",
		["Dongguan"] = "%1 railway station (Guangdong)",
		["Argyle"] = "Mong Kok station",
		["Chater"] = "Central station (MTR)",
		["Lai Wan"] = "Mei Foo station",
		["Waterloo"] = "Yau Ma Tei station"
	["lines"] = {
		["_default"] = {
			["title"] = "%1 line",
			["text color"] = "ffffff"
		["East Rail"] = {
			["color"] = "53b7e8",
			["left terminus"] = "Admiralty",
			["right terminus"] = {"Lo Wu", "Lok Ma Chau"},
			["short name"] = "East Rail line"
		["West Rail"] = {
			["color"] = "a3238f",
			["left terminus"] = "Hung Hom",
			["right terminus"] = "Tuen Mun",
			["short name"] = "West Rail line"
		["Kwun Tong"] = {
			["color"] = "00ab4e",
			["left terminus"] = "Whampoa",
			["right terminus"] = "Tiu Keng Leng",
			["short name"] = "Kwun Tong line"
		["Tsuen Wan"] = {
			["color"] = "ed1d24",
			["left terminus"] = "Central",
			["right terminus"] = "Tsuen Wan",
			["short name"] = "Tsuen Wan line"
		["Island"] = {
			["title"] = "Island line",
			["color"] = "007dc5",
			["left terminus"] = "Kennedy Town",
			["right terminus"] = "Chai Wan",
			["short name"] = "Island line"
		["Tseung Kwan O"] = {
			["color"] = "7d499d",
			["short name"] = "Tseung Kwan O line",
			["left terminus"] = "North Point",
			["right terminus"] = "Po Lam",
			["types"] = {
				["LOHAS Park rush hours"] = {
					["title"] = "",
					["right terminus"] = "LOHAS Park",
					["note-mid"] = "",
				["LOHAS Park off-peak"] = {
					["title"] = "",
					["left terminus"] = "Tiu Keng Leng",
					["right terminus"] = "LOHAS Park",
					["note-mid"] = "Off-peak shuttle service",
				["NIL"] = {
					["title"] = "",
					["left terminus"] = "Tamar",
					["right terminus"] = {"Po Lam", "LOHAS Park"},
					["note-mid"] = "North Island line",
		["Tung Chung"] = {
			["color"] = "f7943e",
			["short name"] = "Tung Chung line",
			["left terminus"] = "Hong Kong",
			["right terminus"] = "Tung Chung",
			["types"] = {
				["NIL"] = {
					["title"] = "",
					["left terminus"] = "Tamar",
					["note-mid"] = "North Island line",
				["Tung Chung West"] = {
					["title"] = "",
					["right terminus"] = "Tung Chung West",
					["note-mid"] = "Tung Chung line extension",
		["Airport Express"] = {
			["title"] = "Airport Express",
			["color"] = "00888a",
			["left terminus"] = "Hong Kong",
			["icon"] = "16px|link=Airport Express (MTR)",
			["right terminus"] = "AsiaWorld–Expo"
		["Disneyland Resort"] = {
			["color"] = "f173ac",
			["short name"] = "Disneyland Resort line",
			["left terminus"] = "Sunny Bay",
			["right terminus"] = "Disneyland Resort"
		["South Island"] = {
			["color"] = "bac429",
			["short name"] = "South Island line",
			["left terminus"] = "Admiralty",
			["right terminus"] = "South Horizons",
		["Tuen Ma"] = {
			["color"] = "923011",
			["short name"] = "Tuen Ma line",
			["left terminus"] = "Wu Kai Sha",
			["right terminus"] = "Tuen Mun",
			["types"] = {
				["Tuen Mun South"] = {
					["title"] = "",
					["right terminus"] = "Tuen Mun South",
					["note-mid"] = "Tuen Mun South extension",
		["South Island West"] = {
			["title"] = "South Island line (West)",
			["short name"] = "South Island (West)",
			["color"] = "9182c2",
			["left terminus"] = "HKU",
			["right terminus"] = "Wong Chuk Hang"
		["East Kowloon"] = {
			["color"] = "d3c087",
			["short name"] = "East Kowloon line",
			["left terminus"] = "Diamond Hill",
			["right terminus"] = "Po Lam"
		["Northern"] = {
			["title"] = "Northern Link",
			["color"] = "e0027a",
			["short name"] = "Northern Link",
			["left terminus"] = "Kam Sheung Road",
			["right terminus"] = {"Lok Ma Chau", "Kwu Tung"}
		["Ma On Shan"] = {
			["color"] = "923011",
			["short name"] = "Ma On Shan line",
			["left terminus"] = "Wu Kai Sha",
			["right terminus"] = "Tai Wai"
		["Central Rail Link"] = {
			["title"] = "Central Rail Link",
			["color"] = "cccccc",
			["left terminus"] = "Kam Sheung Road",
			["right terminus"] = "Kowloon Tong"
		["Guangzhou–Kowloon"] = {
			["title"] = "Guangzhou–Kowloon through train",
			["color"] = "824ca0",
			["left terminus"] = "Guangzhou East",
			["right terminus"] = "Hung Hom"
		["Beijing–Kowloon"] = {
			["title"] = "Beijing–Kowloon through train",
			["color"] = "008000",
			["left terminus"] = "Beijing West",
			["right terminus"] = "Hung Hom"
		["Shanghai–Kowloon"] = {
			["title"] = "Shanghai–Kowloon through train",
			["color"] = "ffa500",
			["left terminus"] = "Shanghai",
			["right terminus"] = "Hung Hom"
		["Light Rail"] = {
			["title"] = "Light Rail",
			["color"] = "d3a809"
		["Ngong Ping 360"] = {
			["title"] = "Ngong Ping 360",
			["color"] = "94989a"
	["aliases"] = {
		["tsuen wan line"] = "Tsuen Wan",
		["twl"] = "Tsuen Wan",
		["tw"] = "Tsuen Wan",
		["kwun tong line"] = "Kwun Tong",
		["ktl"] = "Kwun Tong",
		["kt"] = "Kwun Tong",
		["k"] = "Kwun Tong",
		["island line"] = "Island",
		["isl"] = "Island",
		["is"] = "Island",
		["i"] = "Island",
		["tseung kwan o line"] = "Tseung Kwan O",
		["tseung kwan o"] = "Tseung Kwan O",
		["tkol"] = "Tseung Kwan O",
		["tko"] = "Tseung Kwan O",
		["tkl"] = "Tseung Kwan O",
		["tk"] = "Tseung Kwan O",
		["tung chung line"] = "Tung Chung",
		["tcl"] = "Tung Chung",
		["tc"] = "Tung Chung",
		["disneyland resort line"] = "Disneyland Resort",
		["disneyland"] = "Disneyland Resort",
		["disney"] = "Disneyland Resort",
		["drl"] = "Disneyland Resort",
		["dr"] = "Disneyland Resort",
		["d"] = "Disneyland Resort",
		["airport express"] = "Airport Express",
		["airport"] = "Airport Express",
		["ael"] = "Airport Express",
		["ae"] = "Airport Express",
		["a"] = "Airport Express",
		["east rail line"] = "East Rail",
		["east"] = "East Rail",
		["eal"] = "East Rail",
		["erl"] = "East Rail",
		["er"] = "East Rail",
		["ea"] = "East Rail",
		["e"] = "East Rail",
		["north south corridor"] = "East Rail",
		["north south line"] = "East Rail",
		["north-south line"] = "East Rail",
		["north south"] = "East Rail",
		["north-south"] = "East Rail",
		["central rail"] = "Central Rail Link",
		["crl"] = "Central Rail Link",
		["west rail line"] = "West Rail",
		["west"] = "West Rail",
		["wrl"] = "West Rail",
		["wr"] = "West Rail",
		["w"] = "West Rail",
		["ma on shan line"] = "Ma On Shan",
		["ma on shan"] = "Ma On Shan",
		["mosl"] = "Ma On Shan",
		["mos"] = "Ma On Shan",
		["mol"] = "Ma On Shan",
		["mo"] = "Ma On Shan",
		["m"] = "Ma On Shan",
		["tuen ma line"] = "Tuen Ma",
		["tuen ma"] = "Tuen Ma",
		["tml"] = "Tuen Ma",
		["tm"] = "Tuen Ma",
		["east west corridor"] = "Tuen Ma",
		["east west line"] = "Tuen Ma",
		["east-west line"] = "Tuen Ma",
		["east west"] = "Tuen Ma",
		["east-west"] = "Tuen Ma",
		["ewl"] = "Tuen Ma",
		["ewc"] = "Tuen Ma",
		["ew"] = "Tuen Ma",
		["east kowloon line"] = "East Kowloon",
		["ekl"] = "East Kowloon",
		["ek"] = "East Kowloon",
		["south island line"] = "South Island",
		["south island line east section"] = "South Island",
		["south island line east"] = "South Island",
		["south island east"] = "South Island",
		["sil"] = "South Island",
		["sile"] = "South Island",
		["sie"] = "South Island",
		["sel"] = "South Island",
		["se"] = "South Island",
		["south island line west section"] = "South Island West",
		["south island line west"] = "South Island West",
		["south island west"] = "South Island West",
		["silw"] = "South Island West",
		["siw"] = "South Island West",
		["swl"] = "South Island West",
		["sw"] = "South Island West",
		["northern link"] = "Northern",
		["northern"] = "Northern",
		["nol"] = "Northern",
		["nrl"] = "Northern",
		["nr"] = "Northern",
		["nl"] = "Northern",
		["guangzhou-kowloon through train"] = "Guangzhou–Kowloon",
		["guangdong through train"] = "Guangzhou–Kowloon",
		["guangjiu"] = "Guangzhou–Kowloon",
		["guangzhou-kowloon"] = "Guangzhou–Kowloon",
		["jiuguang"] = "Guangzhou–Kowloon",
		["guangdong"] = "Guangzhou–Kowloon",
		["gd"] = "Guangzhou–Kowloon",
		["gz"] = "Guangzhou–Kowloon",
		["beijing–kowloon through train"] = "Beijing–Kowloon",
		["beijing–kowloon"] = "Beijing–Kowloon",
		["beijing-kowloon"] = "Beijing–Kowloon",
		["beijingkowloon"] = "Beijing–Kowloon",
		["beijing"] = "Beijing–Kowloon",
		["bk"] = "Beijing–Kowloon",
		["shanghai–kowloon through train"] = "Shanghai–Kowloon",
		["shanghai–kowloon"] = "Shanghai–Kowloon",
		["shanghai-kowloon"] = "Shanghai–Kowloon",
		["shanghaikowloon"] = "Shanghai–Kowloon",
		["shanghai"] = "Shanghai–Kowloon",
		["sk"] = "Shanghai–Kowloon",
		["lrt"] = "Light Rail",
		["lr"] = "Light Rail",
		["l"] = "Light Rail",
		["ngong ping cable car"] = "Ngong Ping 360",
		["ngong ping"] = "Ngong Ping 360",
		["360"] = "Ngong Ping 360",
		["np360"] = "Ngong Ping 360",
		["ngp"] = "Ngong Ping 360"