Jump to content

Module:Road data/strings/MYS

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 21:38, 26 December 2022 (adj). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

-- MYSna
local MYS = {}

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

MYS.E = {
	shield = "Mes-e%route%.svg",
	shieldmain = {"Expressway logo.png", "Mes-e%route%.svg"},
	name = "Expressway %route%",
	link = "Malaysia Expressway %route%",
	abbr = "E%route%",
	color = "MUTCDgreen"
}
		   
MYS.Federal = {
	shield = {
		ifexists = true,
		default = "MYS Jkr-ft%route%.svg",
		otherwise = "Jkr-ft%route%.png"
	},
	name = "Federal Route %route%",
	link = "Malaysia Federal Route %route%",
	abbr = "FR %route%"
}
MYS.FR = MYS.Federal

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 %route%",
		link = {
			ifexists = true,
			default = stateName .. " Route %route%",
		},
		abbr = "%route%",
	}
end

return MYS