Pergi ke kandungan

Modul:Road data/strings/MYS

Daripada Wikipedia, ensiklopedia bebas.

Pendokumenan untuk modul ini boleh diciptakan di Modul:Road data/strings/MYS/doc

--[==[
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"]`.
]==]

-- Malaysia
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"] = 'Lebuhraya Utara–Selatan Jajaran Utara',
	["2"] = 'Lebuhraya Utara–Selatan Jajaran Selatan',
	["3"] = 'Lebuhraya Hubungan Kedua',
	["4"] = 'Lebuhraya Kedah Selatan',
	["5"] = 'Lebuhraya Shah Alam',
	["6"] = 'Lebuhraya Utara–Selatan Lingkaran Tengah',
	["7"] = 'Lebuhraya Cheras–Kajang',
	["8"] = 'Lebuhraya Pantai Timur',
	["9"] = 'Lebuhraya Sungai Besi',
	["10"] = 'Lebuhraya Pantai Baharu',
	["11"] = 'Lebuhraya Damansara–Puchong',
	["12"] = 'Lebuhraya Bertingkat Ampang–Kuala Lumpur',
	["13"] = 'Lebuhraya Kemuning–Shah Alam',
	["14"] = 'Lebuhraya Penyebaran Timur Johor Bahru',
	["15"] = 'Lebuhraya Butterworth–Kulim',
	["17"] = 'Lebuhraya Lingkaran Luar Butterworth',
	["18"] = 'Sistem Lingkaran-Lebuhraya Kajang',
	["19"] = 'Lebuhraya Bertingkat Sungai Besi–Ulu Klang',
	["20"] = 'Lebuhraya Maju',
	["21"] = 'Lebuhraya Kajang–Seremban',
	["22"] = 'Lebuhraya Senai–Desaru',
	["23"] = 'Lebuhraya Sprint',
	["24"] = 'Jambatan Tun Salahuddin',
	["25"] = 'Lebuhraya Kuala Lumpur–Kuala Selangor',
	["26"] = 'Lebuhraya Lembah Klang Selatan',
	["27"] = 'Lebuhraya Lembah Klang Timur',
	["28"] = 'Jambatan Sultan Abdul Halim Muadzam Shah',
	["29"] = 'Lebuhraya Seremban–Port Dickson',
	["30"] = 'Lebuhraya Pintas Selat Klang Utara Baru',
	["31"] = 'Lebuhraya Bertingkat Damansara–Shah Alam',
	["32"] = 'Lebuhraya Pantai Barat',
	["33"] = 'Lebuhraya Duta–Ulu Klang',
	["35"] = 'Lebuhraya Koridor Guthrie',
	["36"] = 'Jambatan Pulau Pinang',
	["37"] = 'Lebuhraya Link Timur–Barat',
	["38"] = 'Terowong SMART',
	["39"] = 'Lebuhraya Setiawangsa–Pantai',
	["KLKE"] = 'Lebuhraya Kuala Lumpur–Karak',
	["BSKL"] = 'Lebuhraya Kuala Lumpur–Seremban',
	["NKVE"] = 'Lebuhraya Baru Lembah Klang',
	["PORR"] = 'Lingkaran Luar Pulau Pinang',
	["PSKE"] = 'Lebuhraya Paroi–Senawang–KLIA–Salak Tinggi',
	["BPE"] = 'Lebuhraya Bangi-Putrajaya',
	["PDLE"] = 'Lebuhraya Penyebaran Petaling Jaya',
	["JOPGEX"] = 'Lebuhraya Bertingkat Johor Bahru–Pasir Gudang',
	["PDBE"] = 'Lebuhraya Port Dickson–Banting',
	["Pan-Borneo"] = 'Lebuhraya Pan-Borneo',
	["KBKKE"] = 'Lebuhraya Kota Bharu–Kuala Krai',
	["RB"] = 'Jalan Pintasan Rawang',
	["JE"] = 'Lebuhraya Jelas',
	["SJE"] = 'Lebuhraya Sungai Juru',
	["--"] = ""
}

MYS.E = {
	shield = {
		default = 'Mes-e%route%.svg',
		["KLKE"] = 'Mes-e8.svg',
		["KLSE"] = 'Mes-e37.svg',
		["NKVE"] = 'Mes-e1.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 = "Laluan Persekutuan %route%",
	link = "Laluan Persekutuan %route%",
	abbr = "LP %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", "Pulau Pinang", "Perak", "Perlis", "Sabah", "Sarawak", "Selangor", "Terengganu"}) do
	MYS[stateName] = {
		shield = "",
		name = "Laluan " .. stateName .. " %route%",
		link = {
			ifexists = true,
			default = "Laluan " .. stateName .. " %route%",
		},
		abbr = "%route%",
	}
end

MYS.State = {
	shield = {
		ifexists = true,
		default = "Jkr-ft%route%.png",
		},
	name = "Laluan Negeri %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