Difference between revisions of "Module:Adjacent stations/MTR"

From Railway Operation Simulator Wiki
Jump to navigation Jump to search
m (1 revision imported)
railos>Purin475
(Implement bottom colour bar after infobox station change)
Line 1: Line 1:
 
local x = "%1 station (MTR)"
 
local x = "%1 station (MTR)"
 
local y = "%1 railway station"
 
local y = "%1 railway station"
 +
 +
local c = {
 +
EastRail        = '53B7E8',
 +
WestRail        = 'A3238F',
 +
KwunTong        = '00AB4E',
 +
TsuenWan        = 'ED1D24',
 +
Island          = '007DC5',
 +
TseungKwanO      = '7D499D',
 +
TungChung        = 'F7943E',
 +
AirportExpress  = '00888A',
 +
DisneylandResort = 'F173AC',
 +
SouthIsland      = 'BAC429',
 +
TuenMa          = '923011',
 +
SouthIslandWest  = '9182C2',
 +
EastKowloon      = 'D3C087',
 +
Northern        = 'E0027A',
 +
MaOnShan        = '923011',
 +
CentralRailLink  = 'CCCCCC',
 +
GuangzhouKowloon = '824CA0',
 +
BeijingKowloon  = '008000',
 +
ShanghaiKowloon  = 'FFA500',
 +
LightRail        = 'D3A809',
 +
NgongPing360    = '94989A',
 +
HighSpeedRail    = 'BBB0A3',
 +
}
 +
 +
-- Draw stacked bottom bars
 +
local function bottomBars(cols)
 +
    local n = #cols
 +
    if n == 0 then return "" end
 +
    local total = n * 6 + 1
 +
    local images = {"linear-gradient(#11254A,#11254A)"}
 +
    local sizes = {"100% calc(100% - "..total.."px)"}
 +
    local pos = {"left top"}
 +
    local off = 0
 +
    for _, hex in ipairs(cols) do
 +
        off = off + 1
 +
        images[#images+1], sizes[#sizes+1], pos[#pos+1] = "linear-gradient(#"..hex..",#"..hex..")", "100% 5px", "left bottom "..off.."px"
 +
        off = off + 5
 +
    end
 +
    return "background-color:transparent; background-image:"..table.concat(images,",").."; background-size:"..table.concat(sizes,",").."; background-position:"..table.concat(pos,",").."; background-repeat:no-repeat; padding-bottom:calc(0.3em + "..total.."px);"
 +
end
 +
 +
-- Convert input text to stacked bottom bars
 +
local function styleFromNames(styleText)
 +
    local base = "font-size:125%; font-weight:bold; color:#FFFFFF; background-color:#11254A; padding:0.3em 4px; line-height:110%;"
 +
if not styleText or styleText == "" then return base end
 +
    local cols = {}
 +
    for part in styleText:gmatch("[^,]+") do
 +
        local key = (part or ""):gsub("[^%w]", "")
 +
        local hex = c[key]
 +
        if not hex then return base end
 +
        cols[#cols+1] = hex
 +
    end
 +
    local rev = {}
 +
    for i = #cols, 1, -1 do
 +
        rev[#rev+1] = cols[i]
 +
    end
 +
    return base .. bottomBars(rev)
 +
end
  
 
local p = {
 
local p = {
Line 7: Line 67:
 
["line icon format"] = "link",
 
["line icon format"] = "link",
 
["rail box format"] = "title",
 
["rail box format"] = "title",
["name format"] = {
+
["name format"] = setmetatable({}, {
"font-size: 160%; font-family:sans-serif; font-weight: bolder; color: #FFFFFF; background-color: #11254A;  padding: 0.3em 4px; line-height: 110%"
+
    __index = function(_, key)
},
+
        return styleFromNames(key)
 +
    end
 +
}),
 
["header background color"] = {
 
["header background color"] = {
 
"11254A",
 
"11254A",
},
+
},["header text color"] = "FFFFFF",
 
["station format"] = {
 
["station format"] = {
 
"%1 station",
 
"%1 station",
Line 45: Line 107:
 
["Chater"] = "Central station (MTR)",
 
["Chater"] = "Central station (MTR)",
 
["Lai Wan"] = "Mei Foo station",
 
["Lai Wan"] = "Mei Foo station",
["Waterloo"] = "Yau Ma Tei station"
+
["Waterloo"] = "Yau Ma Tei station",
 +
 +
["Ngong Ping Terminal"] = "%1",
 +
 
},
 
},
 
["lines"] = {
 
["lines"] = {
Line 53: Line 118:
 
},
 
},
 
["East Rail"] = {
 
["East Rail"] = {
["color"] = "53B7E8",
+
["color"] = c.EastRail,
 
["left terminus"] = "Admiralty",
 
["left terminus"] = "Admiralty",
 
["right terminus"] = {"Lo Wu", "Lok Ma Chau"},
 
["right terminus"] = {"Lo Wu", "Lok Ma Chau"},
 
},
 
},
 
["West Rail"] = {
 
["West Rail"] = {
["color"] = "A3238F",
+
["color"] = c.WestRail,
 
["left terminus"] = "Hung Hom",
 
["left terminus"] = "Hung Hom",
 
["right terminus"] = "Tuen Mun",
 
["right terminus"] = "Tuen Mun",
 
},
 
},
 
["Kwun Tong"] = {
 
["Kwun Tong"] = {
["color"] = "00AB4E",
+
["color"] = c.KwunTong,
 
["left terminus"] = "Whampoa",
 
["left terminus"] = "Whampoa",
 
["right terminus"] = "Tiu Keng Leng",
 
["right terminus"] = "Tiu Keng Leng",
 
},
 
},
 
["Tsuen Wan"] = {
 
["Tsuen Wan"] = {
["color"] = "ED1D24",
+
["color"] = c.TsuenWan,
 
["left terminus"] = "Central",
 
["left terminus"] = "Central",
 
["right terminus"] = "Tsuen Wan",
 
["right terminus"] = "Tsuen Wan",
Line 74: Line 139:
 
["Island"] = {
 
["Island"] = {
 
["title"] = "[[Island line (MTR)|Island line]]",
 
["title"] = "[[Island line (MTR)|Island line]]",
["color"] = "007DC5",
+
["color"] = c.Island,
 
["left terminus"] = "Kennedy Town",
 
["left terminus"] = "Kennedy Town",
 
["right terminus"] = "Chai Wan",
 
["right terminus"] = "Chai Wan",
 
},
 
},
 
["Tseung Kwan O"] = {
 
["Tseung Kwan O"] = {
["color"] = "7D499D",
+
["color"] = c.TseungKwanO,
 
["left terminus"] = "North Point",
 
["left terminus"] = "North Point",
 
["right terminus"] = "Po Lam",
 
["right terminus"] = "Po Lam",
Line 103: Line 168:
 
},
 
},
 
["Tung Chung"] = {
 
["Tung Chung"] = {
["color"] = "F7943E",
+
["color"] = c.TungChung,
 
["left terminus"] = "Hong Kong",
 
["left terminus"] = "Hong Kong",
 
["right terminus"] = "Tung Chung",
 
["right terminus"] = "Tung Chung",
Line 121: Line 186:
 
["Airport Express"] = {
 
["Airport Express"] = {
 
["title"] = "[[Airport Express (MTR)|Airport Express]]",
 
["title"] = "[[Airport Express (MTR)|Airport Express]]",
["color"] = "00888A",
+
["color"] = c.AirportExpress,
 
["left terminus"] = "Hong Kong",
 
["left terminus"] = "Hong Kong",
 
["icon"] = "[[File:AirportExpressMTR.svg|16px|link=Airport Express (MTR)]]",
 
["icon"] = "[[File:AirportExpressMTR.svg|16px|link=Airport Express (MTR)]]",
Line 127: Line 192:
 
},
 
},
 
["Disneyland Resort"] = {
 
["Disneyland Resort"] = {
["color"] = "F173AC",
+
["color"] = c.DisneylandResort,
 
["left terminus"] = "Sunny Bay",
 
["left terminus"] = "Sunny Bay",
 
["right terminus"] = "Disneyland Resort"
 
["right terminus"] = "Disneyland Resort"
 
},
 
},
 
["South Island"] = {
 
["South Island"] = {
["color"] = "BAC429",
+
["color"] = c.SouthIsland,
 
["left terminus"] = "Admiralty",
 
["left terminus"] = "Admiralty",
 
["right terminus"] = "South Horizons",
 
["right terminus"] = "South Horizons",
 
},
 
},
 
["Tuen Ma"] = {
 
["Tuen Ma"] = {
["color"] = "923011",
+
["color"] = c.TuenMa,
 
["left terminus"] = "Wu Kai Sha",
 
["left terminus"] = "Wu Kai Sha",
 
["right terminus"] = "Tuen Mun",
 
["right terminus"] = "Tuen Mun",
Line 151: Line 216:
 
["title"] = "[[South Island line (West)]]",
 
["title"] = "[[South Island line (West)]]",
 
["short name"] = "South Island (West)",
 
["short name"] = "South Island (West)",
["color"] = "9182C2",
+
["color"] = c.SouthIslandWest,
 
["left terminus"] = "HKU",
 
["left terminus"] = "HKU",
 
["right terminus"] = "Wong Chuk Hang"
 
["right terminus"] = "Wong Chuk Hang"
 
},
 
},
 
["East Kowloon"] = {
 
["East Kowloon"] = {
["color"] = "D3C087",
+
["color"] = c.EastKowloon,
 
["left terminus"] = "Diamond Hill",
 
["left terminus"] = "Diamond Hill",
 
["right terminus"] = "Po Lam"
 
["right terminus"] = "Po Lam"
Line 162: Line 227:
 
["Northern"] = {
 
["Northern"] = {
 
["title"] = "[[Northern Link (MTR)|Northern Link]]",
 
["title"] = "[[Northern Link (MTR)|Northern Link]]",
["color"] = "E0027A",
+
["color"] = c.Northern,
 
["left terminus"] = "Kam Sheung Road",
 
["left terminus"] = "Kam Sheung Road",
 
["right terminus"] = {"Lok Ma Chau", "Kwu Tung"}
 
["right terminus"] = {"Lok Ma Chau", "Kwu Tung"}
 
},
 
},
 
["Ma On Shan"] = {
 
["Ma On Shan"] = {
["color"] = "923011",
+
["color"] = c.MaOnShan,
 
["left terminus"] = "Wu Kai Sha",
 
["left terminus"] = "Wu Kai Sha",
 
["right terminus"] = "Tai Wai"
 
["right terminus"] = "Tai Wai"
Line 173: Line 238:
 
["Central Rail Link"] = {
 
["Central Rail Link"] = {
 
["title"] = "[[Central Rail Link]]",
 
["title"] = "[[Central Rail Link]]",
["color"] = "CCCCCC",
+
["color"] = c.CentralRailLink,
 
["left terminus"] = "Kam Sheung Road",
 
["left terminus"] = "Kam Sheung Road",
 
["right terminus"] = "Kowloon Tong"
 
["right terminus"] = "Kowloon Tong"
Line 180: Line 245:
 
["title"] = "[[Guangzhou–Kowloon through train]]",
 
["title"] = "[[Guangzhou–Kowloon through train]]",
 
["short name"] = "Guangzhou–Kowloon",
 
["short name"] = "Guangzhou–Kowloon",
["color"] = "824CA0",
+
["color"] = c.GuangzhouKowloon,
 
["left terminus"] = "Guangzhou East",
 
["left terminus"] = "Guangzhou East",
 
["right terminus"] = "Hung Hom"
 
["right terminus"] = "Hung Hom"
Line 187: Line 252:
 
["title"] = "[[Beijing–Kowloon through train]]",
 
["title"] = "[[Beijing–Kowloon through train]]",
 
["short name"] = "Beijing–Kowloon",
 
["short name"] = "Beijing–Kowloon",
["color"] = "008000",
+
["color"] = c.BeijingKowloon,
 
["left terminus"] = "Beijing West",
 
["left terminus"] = "Beijing West",
 
["right terminus"] = "Hung Hom"
 
["right terminus"] = "Hung Hom"
Line 194: Line 259:
 
["title"] = "[[Shanghai–Kowloon through train]]",
 
["title"] = "[[Shanghai–Kowloon through train]]",
 
["short name"] = "Shanghai–Kowloon",
 
["short name"] = "Shanghai–Kowloon",
["color"] = "FFA500",
+
["color"] = c.ShanghaiKowloon,
 
["left terminus"] = "Shanghai",
 
["left terminus"] = "Shanghai",
 
["right terminus"] = "Hung Hom"
 
["right terminus"] = "Hung Hom"
 
},
 
},
 
["Light Rail"] = {
 
["Light Rail"] = {
["icon"] = "",
+
["icon"] = "[[File:MTRlightrail.svg|16px|link=Light Rail (MTR)]]",
 
["title"] = "[[Light Rail (MTR)|Light Rail]]",
 
["title"] = "[[Light Rail (MTR)|Light Rail]]",
["color"] = "D3A809"
+
["color"] = c.LightRail
 
},
 
},
 
["Ngong Ping 360"] = {
 
["Ngong Ping 360"] = {
 +
["icon"] = "[[File:MTRNgongPing360.svg|16px|link=Ngong Ping 360]]",
 
["title"] = "[[Ngong Ping 360]]",
 
["title"] = "[[Ngong Ping 360]]",
["color"] = "94989A"
+
["color"] = c.NgongPing360,
 +
["left terminus"] = "Tung Chung Terminal",
 +
["right terminus"] = "Ngong Ping Terminal",
 +
},
 +
["High Speed Rail"] = {
 +
["icon"] = "[[File:MTRExpressRail.svg|16px|link=Hong Kong Express Rail Link]]",
 +
["title"] = "[[Hong Kong Express Rail Link]]",
 +
["color"] = c.HighSpeedRail
 
}
 
}
 
},
 
},
Line 336: Line 409:
 
["360"] = "Ngong Ping 360",
 
["360"] = "Ngong Ping 360",
 
["np360"] = "Ngong Ping 360",
 
["np360"] = "Ngong Ping 360",
["ngp"] = "Ngong Ping 360"
+
["ngp"] = "Ngong Ping 360",
 +
["xrl"] = "High Speed Rail",
 +
["guangshengang"] = "High Speed Rail",
 +
["guangzhou-shenzhen-hong kong"] = "High Speed Rail"
 
}
 
}
 
}
 
}
  
 
return p
 
return p

Revision as of 05:19, 7 November 2025

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

local x = "%1 station (MTR)"
local y = "%1 railway station"

local c = {
	EastRail         = '53B7E8',
	WestRail         = 'A3238F',
	KwunTong         = '00AB4E',
	TsuenWan         = 'ED1D24',
	Island           = '007DC5',
	TseungKwanO      = '7D499D',
	TungChung        = 'F7943E',
	AirportExpress   = '00888A',
	DisneylandResort = 'F173AC',
	SouthIsland      = 'BAC429',
	TuenMa           = '923011',
	SouthIslandWest  = '9182C2',
	EastKowloon      = 'D3C087',
	Northern         = 'E0027A',
	MaOnShan         = '923011',
	CentralRailLink  = 'CCCCCC',
	GuangzhouKowloon = '824CA0',
	BeijingKowloon   = '008000',
	ShanghaiKowloon  = 'FFA500',
	LightRail        = 'D3A809',
	NgongPing360     = '94989A',
	HighSpeedRail    = 'BBB0A3',
}

-- Draw stacked bottom bars
local function bottomBars(cols)
    local n = #cols
    if n == 0 then return "" end
    local total = n * 6 + 1
    local images = {"linear-gradient(#11254A,#11254A)"}
    local sizes = {"100% calc(100% - "..total.."px)"}
    local pos = {"left top"}
    local off = 0
    for _, hex in ipairs(cols) do
        off = off + 1
        images[#images+1], sizes[#sizes+1], pos[#pos+1] = "linear-gradient(#"..hex..",#"..hex..")", "100% 5px", "left bottom "..off.."px"
        off = off + 5
    end
    return "background-color:transparent; background-image:"..table.concat(images,",").."; background-size:"..table.concat(sizes,",").."; background-position:"..table.concat(pos,",").."; background-repeat:no-repeat; padding-bottom:calc(0.3em + "..total.."px);"
end

-- Convert input text to stacked bottom bars
local function styleFromNames(styleText)
    local base = "font-size:125%; font-weight:bold; color:#FFFFFF; background-color:#11254A; padding:0.3em 4px; line-height:110%;"
	if not styleText or styleText == "" then return base end
    local cols = {}
    for part in styleText:gmatch("[^,]+") do
        local key = (part or ""):gsub("[^%w]", "")
        local hex = c[key]
        if not hex then return base end
        cols[#cols+1] = hex
    end
    local rev = {}
    for i = #cols, 1, -1 do
        rev[#rev+1] = cols[i]
    end
    return base .. bottomBars(rev)
end

local p = {
	["system title"] = "[[MTR]]",
	["system icon"] = "[[File:HK MTR logo.svg|x16px|link=MTR|alt=MTR]]",
	["line icon format"] = "link",
	["rail box format"] = "title",
	["name format"] = setmetatable({}, {
	    __index = function(_, key)
	        return styleFromNames(key)
	    end
	}),
	["header background color"] = {
		"11254A",
	},["header text color"] = "FFFFFF",
	["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",
		
		["Ngong Ping Terminal"] = "%1",
		
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[%1 line]]",
			["text color"] = "FFFFFF"
		},
		["East Rail"] = {
			["color"] = c.EastRail,
			["left terminus"] = "Admiralty",
			["right terminus"] = {"Lo Wu", "Lok Ma Chau"},
		},
		["West Rail"] = {
			["color"] = c.WestRail,
			["left terminus"] = "Hung Hom",
			["right terminus"] = "Tuen Mun",
		},
		["Kwun Tong"] = {
			["color"] = c.KwunTong,
			["left terminus"] = "Whampoa",
			["right terminus"] = "Tiu Keng Leng",
		},
		["Tsuen Wan"] = {
			["color"] = c.TsuenWan,
			["left terminus"] = "Central",
			["right terminus"] = "Tsuen Wan",
		},
		["Island"] = {
			["title"] = "[[Island line (MTR)|Island line]]",
			["color"] = c.Island,
			["left terminus"] = "Kennedy Town",
			["right terminus"] = "Chai Wan",
		},
		["Tseung Kwan O"] = {
			["color"] = c.TseungKwanO,
			["left terminus"] = "North Point",
			["right terminus"] = "Po Lam",
			["types"] = {
				["LOHAS Park rush hours"] = {
					["title"] = "",
					["right terminus"] = "LOHAS Park",
					["note-mid"] = "<small><i>(Rush hours only)</i></small>",
				},
				["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"] = c.TungChung,
			["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 (MTR)|Airport Express]]",
			["color"] = c.AirportExpress,
			["left terminus"] = "Hong Kong",
			["icon"] = "[[File:AirportExpressMTR.svg|16px|link=Airport Express (MTR)]]",
			["right terminus"] = "AsiaWorld–Expo"
		},
		["Disneyland Resort"] = {
			["color"] = c.DisneylandResort,
			["left terminus"] = "Sunny Bay",
			["right terminus"] = "Disneyland Resort"
		},
		["South Island"] = {
			["color"] = c.SouthIsland,
			["left terminus"] = "Admiralty",
			["right terminus"] = "South Horizons",
		},
		["Tuen Ma"] = {
			["color"] = c.TuenMa,
			["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"] = c.SouthIslandWest,
			["left terminus"] = "HKU",
			["right terminus"] = "Wong Chuk Hang"
		},
		["East Kowloon"] = {
			["color"] = c.EastKowloon,
			["left terminus"] = "Diamond Hill",
			["right terminus"] = "Po Lam"
		},
		["Northern"] = {
			["title"] = "[[Northern Link (MTR)|Northern Link]]",
			["color"] = c.Northern,
			["left terminus"] = "Kam Sheung Road",
			["right terminus"] = {"Lok Ma Chau", "Kwu Tung"}
		},
		["Ma On Shan"] = {
			["color"] = c.MaOnShan,
			["left terminus"] = "Wu Kai Sha",
			["right terminus"] = "Tai Wai"
		},
		["Central Rail Link"] = {
			["title"] = "[[Central Rail Link]]",
			["color"] = c.CentralRailLink,
			["left terminus"] = "Kam Sheung Road",
			["right terminus"] = "Kowloon Tong"
		},
		["Guangzhou–Kowloon"] = {
			["title"] = "[[Guangzhou–Kowloon through train]]",
			["short name"] = "Guangzhou–Kowloon",
			["color"] = c.GuangzhouKowloon,
			["left terminus"] = "Guangzhou East",
			["right terminus"] = "Hung Hom"
		},
		["Beijing–Kowloon"] = {
			["title"] = "[[Beijing–Kowloon through train]]",
			["short name"] = "Beijing–Kowloon",
			["color"] = c.BeijingKowloon,
			["left terminus"] = "Beijing West",
			["right terminus"] = "Hung Hom"
		},
		["Shanghai–Kowloon"] = {
			["title"] = "[[Shanghai–Kowloon through train]]",
			["short name"] = "Shanghai–Kowloon",
			["color"] = c.ShanghaiKowloon,
			["left terminus"] = "Shanghai",
			["right terminus"] = "Hung Hom"
		},
		["Light Rail"] = {
			["icon"] = "[[File:MTRlightrail.svg|16px|link=Light Rail (MTR)]]",
			["title"] = "[[Light Rail (MTR)|Light Rail]]",
			["color"] = c.LightRail
		},
		["Ngong Ping 360"] = {
			["icon"] = "[[File:MTRNgongPing360.svg|16px|link=Ngong Ping 360]]",
			["title"] = "[[Ngong Ping 360]]",
			["color"] = c.NgongPing360,
			["left terminus"] = "Tung Chung Terminal",
			["right terminus"] = "Ngong Ping Terminal",
		},
		["High Speed Rail"] = {
			["icon"] = "[[File:MTRExpressRail.svg|16px|link=Hong Kong Express Rail Link]]",
			["title"] = "[[Hong Kong Express Rail Link]]",
			["color"] = c.HighSpeedRail
		}
	},
	["aliases"] = {
		["tsuen wan"] = "Tsuen Wan",
		["tsuen wan line"] = "Tsuen Wan",
		["twl"] = "Tsuen Wan",
		["tw"] = "Tsuen Wan",
		["kwun tong"] = "Kwun Tong",
		["kwun tong line"] = "Kwun Tong",
		["ktl"] = "Kwun Tong",
		["kt"] = "Kwun Tong",
		["k"] = "Kwun Tong",
		["island"] = "Island",
		["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"] = "Tung Chung",
		["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 rail"] = "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"] = "South Island",
		["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",
		["xrl"] = "High Speed Rail",
		["guangshengang"] = "High Speed Rail",
		["guangzhou-shenzhen-hong kong"] = "High Speed Rail"
	}
}

return p