模块:Adjacent stations/Rapid KL

local QQQQ = "<span class=\"error\">???</span>[[Category:Pages using KLRT with unknown termini]]"
local x = "%1站 (吉隆坡)"
local s = "%1站 (雪兰莪)"

local p = {
	["system title"] = "[[快捷通轨道|吉隆坡快捷通]]",
	["system icon"] = "[[File:Rapid KL Logo.svg|70px|link=Rapid KL]]",
	["lines"] = {
		["_default"] = {
			["title"] = "[[%1线]]",
			["color"] = "000000"
		},
                 -- 已开通
		["芙蓉"] = {
			["title"] = "[[芙蓉线]]",
			["color"] = "1964b7",
			["icon"] = "[[File:KLRT Line 1 icon.svg|40px|link=芙蓉线]]",
			["left terminus"] = "黑风洞",
			["right terminus"] = "普罗士邦/淡边",
		},
		["巴生港"] = {
			["title"] = "[[巴生港线]]",
			["color"] = "dc241f",
			["icon"] = "[[File:KLRT Line 2 icon.svg|40px|link=巴生港线]]",
			["left terminus"] = "丹绒马林",
			["right terminus"] = "巴生港",
		},
		["安邦"] = {
			["title"] = "[[安邦线]]",
			["color"] = "fe8e10",
			["icon"] = "[[File:KLRT Line 3 icon.svg|40px|link=安邦线]]",
			["left terminus"] = "冼都东",
			["right terminus"] = "安邦",
		},
		["大城堡"] = {
			["title"] = "[[大城堡线]]",
			["color"] = "721422",
			["icon"] = "[[File:KLRT Line 4 icon.svg|40px|link=大城堡线]]",
			["left terminus"] = "冼都东",
			["right terminus"] = "布特拉高原",
		},
		["格拉那再也"] = {
			["title"] = "[[格拉那再也线]]",
			["color"] = "e0115f",
			["icon"] = "[[File:KLRT Line 5 icon.svg|40px|link=格拉那再也线]]",
			["left terminus"] = "鹅唛",
			["right terminus"] = "布特拉高原",
		},
		["机场快线"] = {
			["title"] = "[[吉隆坡机场快线]]",
			["color"] = "8c238f",
			["icon"] = "[[File:KLRT Line 6 icon.svg|40px|link=吉隆坡机场快线]]",
			["left terminus"] = "吉隆坡中央",
			["right terminus"] = "吉隆坡第二国际机场",
		},
		["机场支线"] = {
			["title"] = "[[吉隆坡机场支线]]",
			["color"] = "33a8b5",
			["icon"] = "[[File:KLRT Line 7 icon.svg|40px|link=吉隆坡机场支线]]",
			["left terminus"] = "吉隆坡中央",
			["right terminus"] = "吉隆坡第二国际机场",
		},
		["单轨列车"] = {
			["title"] = "[[吉隆坡单轨列车]]",
			["color"] = "7dba00",
			["icon"] = "[[File:KLRT Line 8 icon.svg|40px|link=吉隆坡单轨列车]]",
			["left terminus"] = "吉隆坡中央",
			["right terminus"] = "蒂蒂旺沙",
		},
		["加影"] = {
			["title"] = "[[加影线]]",
			["color"] = "11753a",
			["icon"] = "[[File:KLRT Line 9 icon.svg|40px|link=加影线]]",
			["left terminus"] = "桂莎白沙罗",
			["right terminus"] = "加影",
		},
		["天空花园"] = {
			["title"] = "[[天空花园线]]",
			["color"] = "e47443",
			["icon"] = "[[File:KLRT Line 10 icon.svg|40px|link=天空花园线]]",
			["left terminus"] = "吉隆坡中央",
			["right terminus"] = "天空花园航站楼",
		},
		["双威BRT"] = {
			["title"] = "[[双威线|双威BRT]]",
			["color"] = "1e4d2b",
			["icon"] = "[[File:KLRT Line B1 icon.svg|40px|link=双威线]]",
			["left terminus"] = "斯迪亚再也",
			["right terminus"] = "USJ7",
		},
		-- 未开通
		["莎阿南"] = {
			["title"] = "[[莎阿南线]]",
			["color"] = "59b8e6",
			["icon"] = "[[File:KLRT Line 11 icon.svg|40px|link=莎阿南线]]",
			["left terminus"] = "万达镇",
			["right terminus"] = "佐汉瑟迪亚",
			["types"] = {
				["第一阶段"] = {
					["title"] = "",
					["note-mid"] = "第一阶段",
					["left terminus"] = "拿督孟德里",
					["right terminus"] = "佐汉瑟迪亚",
				},
				["第二阶段"] = {
					["title"] = "",
					["note-mid"] = "第二阶段",
					["left terminus"] = "万达镇",
					["right terminus"] = "拿督孟德里",
				},
			},
		},
		["布城"] = {
			["title"] = "[[布城线]]",
			["color"] = "faca05",
			["icon"] = "[[File:KLRT Line 12 icon.svg|40px|link=布城线]]",
			["left terminus"] = "桂莎白沙罗",
			["right terminus"] = "布城中央",
			["types"] = {
				["第一阶段"] = {
					["title"] = "",
					["note-mid"] = "第一阶段",
					["left terminus"] = "桂莎白沙罗",
					["right terminus"] = "甘榜峇都",
				},
				["第二阶段"] = {
					["title"] = "",
					["note-mid"] = "第二阶段",
					["left terminus"] = "甘榜峇都",
					["right terminus"] = "布城中央",
				},
			},
		},
		["环状"] = {
			["title"] = "[[环状线 (吉隆坡)|环状线]]",
			["color"] = "635FAA",
			["left terminus"] = "顺时针/外",
			["right terminus"] = "逆时针/内",
		},
		["布城单轨/电车]"] = {
			["title"] = "[[布城单轨|布城单轨/电车]]",
			["color"] = "808000",
			["left terminus"] = "加影",
			["right terminus"] = "赛城",
		},	
		["联邦BRT"] = {
			["title"] = "[[联邦线|联邦BRT]]",
			["color"] = "4b0082",
			["left terminus"] = "中央艺术坊",
			["right terminus"] = "巴生",
		},
	},

	-- 站名格式数据
	["station format"] = {
		"%1站",
		-- 消歧义
		-- 芙蓉线
		["吉隆坡中央"] = "吉隆坡中央车站",
		["冼都(KTM)"] = "冼都站 (马来亚铁道)",
		["沙叻秀(KTM)"] = "沙叻秀站 (马来亚铁道)",
		-- 巴生港线
		["巴生(KTM)"] = "巴生站 (马来亚铁道)",
		-- 安邦线
		["冼都"] = "冼都站 (轻快铁)",
		["人民广场"] = x,
		["丽阳(安邦)"] = "丽阳站 (安邦)",
                -- 大城堡线
		["沙叻秀"] = "沙叻秀站 (轻快铁)",
                -- 格拉那再也线
		["大学"] = x,
                -- 机场快线
		["布城/赛城"] = "布城中央车站",
                -- 莎亚南线
		["丽阳(八打灵再也)"] = "丽阳站 (八打灵再也)",
		["中路"] = s,
		["巴生(轻快铁)"] = "巴生站 (轻快铁)",
                -- 布城线
		["布城中央"] = "布城中央车站",
		["科技园"] = x,
                -- 双威线
		["双威-斯迪亚再也"] = "斯迪亚再也站",
		-- 模板格式需要
	},

	["aliases"] = {
		["1"] = "芙蓉",
		["blue"] = "芙蓉",
		["kb"] = "芙蓉",
		["kc"] = "芙蓉",
		["seremban"] = "芙蓉",
		["seremban line"] = "芙蓉",
		["2"] = "巴生港",
		["red"] = "巴生港",
		["ka"] = "巴生港",
		["kd"] = "巴生港",
		["port klang"] = "巴生港",
		["port klang line"] = "巴生港",
		["3"] = "安邦",
		["orange"] = "安邦",
		["lrt1"] = "安邦",
		["ag"] = "安邦",
		["ampang"] = "安邦",
		["ampang line"] = "安邦",
		["4"] = "大城堡",
		["maroon"] = "大城堡",
		["sp"] = "大城堡",
		["ph"] = "大城堡",
		["sri petaling"] = "大城堡",
		["putra heights"] = "大城堡",
		["sri petaling line"] = "大城堡",
		["5"] = "格拉那再也",
		["ruby"] = "格拉那再也",
		["lrt2"] = "格拉那再也",
		["kj"] = "格拉那再也",
		["Kelana Jaya"] = "格拉那再也",
		["kelana jaya"] = "格拉那再也",
		["kelana jaya line"] = "格拉那再也",
		["6"] = "机场快线",
		["purple"] = "机场快线",
		["ke"] = "机场快线",
		["klia express"] = "机场快线",
		["express"] = "机场快线",
		["klia ekspres"] = "机场快线",
		["7"] = "机场支线",
		["teal"] = "机场支线",
		["kt"] = "机场支线",
		["transit"] = "机场支线",
		["klia transit"] = "机场支线",
		["8"] = "单轨列车",
		["lightgreen"] = "单轨列车",
		["mr"] = "单轨列车",
		["monorail"] = "单轨列车",
		["kl monorail"] = "单轨列车",
		["9"] = "加影",
		["green"] = "加影",
		["mrt1"] = "加影",
		["kg"] = "加影",
		["sbk"] = "加影",
		["sungai buloh kajang"] = "加影",
		["sungai buloh kajang line"] = "加影",
		["sungai buloh-kajang line"] = "加影",
		["mrt kajang line"] = "加影",
		["kajang"] = "加影",
		["10"] = "天空花园",
		["brown"] = "天空花园",
		["ks"] = "天空花园",
		["skypark"] = "天空花园",
		["11"] = "莎阿南",
		["skyblue"] = "莎阿南",
		["lrt3"] = "莎阿南",
		["bk"] = "莎阿南",
		["buk"] = "莎阿南",
		["js"] = "莎阿南",
		["johan setia line"] = "莎阿南",
		["bandar utama-klang line"] = "莎阿南",
		["shah alam"] = "莎阿南",
		["s"] = "莎阿南",
		["12"] = "布城",
		["yellow"] = "布城",
		["mrt2"] = "布城",
		["ssp"] = "布城",
		["py"] = "布城",
		["mrt putrajaya line"] = "布城",
		["putrajaya"] = "布城",
		["13"] = "环状",
		["grey"] = "环状",
		["mrt3"] = "环状",
		["cc"] = "环状",
		["circle mrt"] = "环状",
		["14"] = "布城单轨/电车",
		["olive"] = "布城单轨/电车",
		["pm"] = "布城单轨/电车",
		["21"] = "双威BRT",
		["darkgreen"] = "双威BRT",
		["b1"] = "双威BRT",
		["sb"] = "双威BRT",
		["brt sunway"] = "双威BRT",
		["brt sunway line"] = "双威BRT",
		["sunway"] = "双威BRT",
		["sunway line"] = "双威BRT",
		["22"] = "联邦BRT",
		["violet"] = "联邦BRT",
		["b2"] = "联邦BRT",
		["fb"] = "联邦BRT",
		["federal"] = "联邦BRT",
		["federal line"] = "联邦BRT",
		["brt federal"] = "联邦BRT",
		["brt federal line"] = "联邦BRT",
	},
}

local stationAliases = {
		-- 简繁转换
		["火車東站"] = "火车东站",
		["Kakusei Homura"] = "Pneuma",
		["Kakusei Hikari"] = "Pneuma",
}
for k, v in pairs(stationAliases) do
	if p["station format"][v] == nil then
		p["station format"][k] = '[[' .. v .. '站|' .. v .. ']]'
	else
		p["station format"][k] = p["station format"][v]
	end
end

local lineAliases = {
	['B1'] = '21',
	['B2'] = '22',
	['KA'] = '2',
	['KB'] = '1',
	['KC'] = '1',
	['KD'] = '2',
	['AG'] = '3',
	['SP'] = '4',
	['KJ'] = '5',
	['Kelana Jaya Line'] = '5',
	['KE'] = '6',
	['KT'] = '7',
	['MR'] = '8',
	['KG'] = '9',
	['Sungai Buloh-Kajang Line'] = '9',
	['KS'] = '10',
	['BK'] = '11',
	['PY'] = '12',
	['Sungai Buloh-Serdang-Putrajaya Line'] = '12',
	['CC'] = '13',
	['SB'] = '21',
	['FB'] = '22',
}
for k, v in pairs(lineAliases) do
	p.lines[k] = p.lines[v]
end

return p