모듈:Adjacent stations/MTR
IT 위키
더 많은 작업
이 모듈에 대한 설명문서는 모듈:Adjacent stations/MTR/설명문서에서 만들 수 있습니다
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',
}
-- 중첩된 하단 바 그리기
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
-- 입력 텍스트를 중첩된 하단 바로 변환
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역",
["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 철도역 (광둥성)",
["Dongguan"] = "%1 철도역 (광둥성)",
["Argyle"] = "몽콕역",
["Chater"] = "센트럴역 (MTR)",
["Lai Wan"] = "메이푸역",
["Waterloo"] = "야우마테이역",
["Ngong Ping Terminal"] = "%1",
},
["lines"] = {
["_default"] = {
["title"] = "[[%1선]]",
["text color"] = "FFFFFF"
},
["East Rail"] = {
["color"] = c.EastRail,
["icon"] = "[[File:東鐵綫 Hong Kong MTR East Rail Line.png|28px|link=둥팃선]]",
["left terminus"] = "애드미럴티",
["right terminus"] = {"로후", "록마자우"},
},
["West Rail"] = {
["color"] = c.WestRail,
["left terminus"] = "함함",
["right terminus"] = "튄문",
},
["Kwun Tong"] = {
["color"] = c.KwunTong,
["icon"] = "[[File:觀塘綫 Hong Kong MTR Kwun Tong Line.png|28px|link=군통선]]",
["left terminus"] = "황푸",
["right terminus"] = "티우킹렝",
},
["Tsuen Wan"] = {
["color"] = c.TsuenWan,
["icon"] = "[[File:荃灣綫 Hong Kong MTR Tsuen Wan Line.png|28px|link=췬완선]]",
["left terminus"] = "센트럴",
["right terminus"] = "췬완",
},
["Island"] = {
["title"] = "[[공도선]]",
["icon"] = "[[File:港島綫 Hong Kong MTR Island Line.png|28px|link=공도선]]",
["color"] = c.Island,
["left terminus"] = "케네디타운",
["right terminus"] = "차이완",
},
["Tseung Kwan O"] = {
["color"] = c.TseungKwanO,
["icon"] = "[[File:將軍澳綫 Hong Kong MTR Tseung Kwan O Line.png|28px|link=정관오선]]",
["left terminus"] = "노스포인트",
["right terminus"] = "보람",
["types"] = {
["LOHAS Park rush hours"] = {
["title"] = "",
["right terminus"] = "로하스 파크",
["note-mid"] = "<small><i>(출퇴근 시간대 한정)</i></small>",
},
["LOHAS Park off-peak"] = {
["title"] = "",
["left terminus"] = "티우킹렝",
["right terminus"] = "로하스 파크",
["note-mid"] = "평시 셔틀 운행",
},
["NIL"] = {
["title"] = "",
["left terminus"] = "타마르",
["right terminus"] = {"보람", "로하스 파크"},
["note-mid"] = "[[노스 아일랜드선]]",
},
},
},
["Tung Chung"] = {
["color"] = c.TungChung,
["icon"] = "[[File:東涌綫 Hong Kong MTR Tung Chung Line.png|28px|link=둥충선]]",
["left terminus"] = "홍콩",
["right terminus"] = "둥충",
["types"] = {
["NIL"] = {
["title"] = "",
["left terminus"] = "타마르",
["note-mid"] = "[[노스 아일랜드선]]",
},
["Tung Chung West"] = {
["title"] = "",
["right terminus"] = "둥충 서",
["note-mid"] = "둥충선 연장선",
},
},
},
["Airport Express"] = {
["title"] = "[[홍콩 공항철도]]",
["color"] = c.AirportExpress,
["left terminus"] = "홍콩",
["icon"] = "[[File:AirportExpressMTR.svg|16px|link=홍콩 공항철도]]",
["right terminus"] = "아시아월드-엑스포"
},
["Disneyland Resort"] = {
["color"] = c.DisneylandResort,
["icon"] = "[[File:迪士尼綫 Hong Kong MTR Disneyland Resort Line.png|28px|link=디즈니선]]",
["left terminus"] = "써니베이",
["right terminus"] = "디즈니랜드 리조트"
},
["South Island"] = {
["color"] = c.SouthIsland,
["icon"] = "[[File:南港島綫 Hong Kong MTR South Island Line.png|28px|link=남공도선]]",
["left terminus"] = "애드미럴티",
["right terminus"] = "사우스 호라이즌",
},
["Tuen Ma"] = {
["color"] = c.TuenMa,
["icon"] = "[[File:屯馬綫 Hong Kong MTR Tuen Ma Line.png|28px|link=튄마선]]",
["left terminus"] = "우카이사",
["right terminus"] = "튄문",
["types"] = {
["Tuen Mun South"] = {
["title"] = "",
["right terminus"] = "튄문 남",
["note-mid"] = "튄문 남 연장선",
},
},
},
["South Island West"] = {
["title"] = "[[남공도선 (서단)]]",
["short name"] = "남공도선 (서단)",
["color"] = c.SouthIslandWest,
["left terminus"] = "홍콩대학",
["right terminus"] = "웡축항"
},
["East Kowloon"] = {
["color"] = c.EastKowloon,
["left terminus"] = "다이아몬드힐",
["right terminus"] = "보람"
},
["Northern"] = {
["title"] = "[[노던 링크 (MTR)|노던 링크]]",
["color"] = c.Northern,
["left terminus"] = "캄성로드",
["right terminus"] = {"록마자우", "구둥"}
},
["Ma On Shan"] = {
["color"] = c.MaOnShan,
["left terminus"] = "우카이사",
["right terminus"] = "타이와이"
},
["Central Rail Link"] = {
["title"] = "[[중부 철도 노선]]",
["color"] = c.CentralRailLink,
["left terminus"] = "캄성로드",
["right terminus"] = "가우룽통"
},
["Guangzhou–Kowloon"] = {
["title"] = "[[광주-구룡 직통 열차]]",
["short name"] = "광주-구룡",
["color"] = c.GuangzhouKowloon,
["left terminus"] = "광저우 동",
["right terminus"] = "함함"
},
["Beijing–Kowloon"] = {
["title"] = "[[북경-구룡 직통 열차]]",
["short name"] = "북경-구룡",
["color"] = c.BeijingKowloon,
["left terminus"] = "베이징 서",
["right terminus"] = "함함"
},
["Shanghai–Kowloon"] = {
["title"] = "[[상해-구룡 직통 열차]]",
["short name"] = "상해-구룡",
["color"] = c.ShanghaiKowloon,
["left terminus"] = "상하이",
["right terminus"] = "함함"
},
["Light Rail"] = {
["icon"] = "[[File:MTRlightrail.svg|16px|link=홍콩 라이트 레일]]",
["title"] = "[[홍콩 라이트 레일]]",
["color"] = c.LightRail
},
["Ngong Ping 360"] = {
["icon"] = "[[File:MTRNgongPing360.svg|16px|link=옹핑 360]]",
["title"] = "[[옹핑 360]]",
["color"] = c.NgongPing360,
["left terminus"] = "둥충 터미널",
["right terminus"] = "옹핑 터미널",
},
["High Speed Rail"] = {
["icon"] = "[[File:MTRExpressRail.svg|16px|link=광선강 고속철도]]",
["title"] = "[[광선강 고속철도]]",
["color"] = c.HighSpeedRail
}
},
["aliases"] = {
["tsuen wan"] = "Tsuen Wan",
["tsuen wan line"] = "Tsuen Wan",
["twl"] = "Tsuen Wan",
["tw"] = "Tsuen Wan",
["kwun tong"] = "군통",
["kwun tong line"] = "군통",
["ktl"] = "군통",
["kt"] = "군통",
["k"] = "군통",
["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