跳转到内容

模組:Road data/strings/MYS

维基百科,自由的百科全书
--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
and enter the following input text:
  {{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}}

To inspect the content of this data module when editing, enter the following
into the Debug console:
  local util = require("Module:Road data/util")
  print(util.arrayToString(p))
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]

-- 马来西亚
local MYS = {}

local util = require("Module:Road data/util")
local format = mw.ustring.format
util.addAll(MYS, require("Module:Road data/strings/ASIA"))

local expressways = {
	arg = "route",
	["1"] = '南北大道北段',
	["2"] = '南北大道南段',
	["3"] = '第二通道高速公路',
	["4"] = '南吉打大道',
	["5"] = '莎亚南大道',
	["6"] = '南北大道第二中环衔接大道',
	["6p"] = '布城连贯公路',
	["7"] = '蕉赖—加影大道',
	["8"] = '東海岸大道',
	["9"] = '新街场大道',
	["10"] = '新班底大道',
	["11"] = '白沙羅—蒲種大道',
	["12"] = '安邦—吉隆坡高架大道',
	["13"] = '哥文宁—莎亚南大道',
	["14"] = '新山东部疏散大道',
	["15"] = '北海—居林大道',
	["17"] = '北海外环公路',
	["18"] = '加影外环大道',
	["19"] = '新街场—淡江高架大道',
	["20"] = '隆布大道',
	["21"] = '加影—芙蓉大道',
	["22"] = '士乃—迪沙鲁大道',
	["23"] = '西部疏散大道',
	["24"] = '敦沙拉胡丁大桥',
	["25"] = '吉隆坡—瓜拉雪兰莪大道',
	["26"] = '南巴生谷大道',
	["27"] = '东巴生谷大道',
	["28"] = '苏丹阿都哈林大桥',
	["29"] = '芙蓉—波德申大道',
	["30"] = '新北巴生海峡大道',
	["31"] = '白沙罗—莎阿南大道',
	["32"] = '西海岸大道',
	["33"] = '大使路—淡江大道',
	["35"] = '牙直利走廊大道',
	["36"] = '槟威大桥',
	["37"] = '东西连贯大道',
	["38"] = '精明隧道',
	["39"] = '斯迪亞旺沙—班底大道',
	["KLKE"] = '吉隆坡—加叻大道',
	["KLSE"] = '隆芙大道',
	["NKVE"] = '新巴生河流域大道',
	["PORR"] = '槟城外环公路',
	["PSKE"] = '芭蕾-新那旺-吉隆坡国际机场—沙叻丁宜大道',
	["BPE"] = '万宜–布城大道',
	["PDLE"] = '八打灵再也疏散大道',
	["JOPGEX"] = '新山—巴西古当高架大道',
	["PDBE"] = '波德申—万津大道',
	["Pan-Borneo"] = '泛婆罗洲大道',
	["KBKKE"] = '哥打峇鲁—瓜拉吉赖大道',
	["RB"] = '万挠绕道',
	["JE"] = '九洞—司南马—峇都交湾大道',
	["SJE"] = '柔府大道',
	["--"] = ""
}

MYS.E = {
	shield = {
		default = 'Mes-e%route%.svg',
		["KLKE"] = 'Mes-e8.svg',
		["KLSE"] = 'Mes-e37.svg',
		["NKVE"] = 'Mes-e1.svg',
		["6p"] = 'Mes-e6.svg',
		["PORR"] = '',
		["PSKE"] = '',
		["BPE"] = '',
		["PDLE"] = '',
		["JOPGEX"] = '',
		["PDBE"] = '',
		["Pan-Borneo"] = '',
		["KBKKE"] = '',
		["RB"] = '',
		["JE"] = '',
		["SJE"] = '',
	},
	name = expressways,
	link = expressways,
	abbr = expressways,
	color = "MUTCDgreen"
}

MYS.E2 = {
	shield = {"Malaysia expressway logo.svg", MYS.E.shield},
	name = MYS.E.name,
	link = MYS.E.link,
	abbr = MYS.E.abbr
}

MYS.Federal = {
	shield = {
		hook = "split",
		split = 4000,
		below = "MYS Jkr-ft%route%.svg",
		above = "",
	},
	name = "联邦%route%号公路",
	link = "马来西亚联邦%route%号公路",
	abbr = "FT %route%",
}

MYS.FT = MYS.Federal

MYS.Federal2 = {
	shield = {"Malaysia expressway logo.svg", "MYS Jkr-ft%route%.svg"},
	name = MYS.Federal.name,
	link = MYS.Federal.link,
	abbr = MYS.Federal.abbr,
}
MYS.FT2 = MYS.Federal2

MYS.FELDA = {
	shield = MYS.Federal.shield,
	name = MYS.Federal.name,
	link = MYS.Federal.link,
	abbr = MYS.Federal.abbr,
}

for _,stateName in ipairs({"Johor", "Kedah", "Kelantan", "Kuala Lumpur", "Labuan", "Melaka", "Negeri Sembilan", "Pahang", "Penang", "Perak", "Perlis", "Sabah", "Sarawak", "Selangor", "Terrengganu"}) do
	MYS[stateName] = {
		shield = "",
		name = stateName .. "%route%号公路",
		link = {
			ifexists = true,
			default = stateName .. "%route%号公路",
		},
		abbr = "%route%",
	}
end

MYS.State = {
	shield = {
		ifexists = true,
		default = "Jkr-ft%route%.png",
		},
	name = "%route%号公路",
	link = "",
	abbr = "%route%"
}

MYS.Fed = {
	shield = "",
	link = {
		hook = "padroute",
		paddedLength = 4,
		default = "#FR%paddedRoute%"
	},
	abbr = MYS.Federal.abbr
}

MYS.FL = {
	shield = "",
	link = {
		hook = "padroute",
		paddedLength = 4,
		default = "#FELDA%paddedRoute%"
	},
	abbr = MYS.FELDA.abbr
}

return MYS