Module:Road data/countrymask
Appearance
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This Lua module is used on approximately 34,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
This module exports a map of supported state codes to their country. It allows templates like {{Jct}} to infer the country when only given a state or province.
local p = {AL = "USA", AK = "USA", AZ = "USA", AR = "USA", CA = "USA", CO = "USA", -- United States
CT = "USA", DE = "USA", FL = "USA", GA = "USA", HI = "USA", ID = "USA",
IL = "USA", IN = "USA", IA = "USA", KS = "USA", KY = "USA", LA = "USA",
ME = "USA", MD = "USA", MA = "USA", MI = "USA", MN = "USA", MS = "USA",
MO = "USA", MT = "USA", NE = "USA", NV = "USA", NH = "USA", NJ = "USA",
NM = "USA", NY = "USA", NC = "USA", ND = "USA", OH = "USA", OK = "USA",
OR = "USA", PA = "USA", RI = "USA", SC = "USA", SD = "USA", TN = "USA",
TX = "USA", UT = "USA", VA = "USA", VT = "USA", WA = "USA", WV = "USA",
WI = "USA", WY = "USA", DC = "USA", AS = "USA", GU = "USA", MP = "USA",
PR = "USA", UM = "USA", VI = "USA",
AB = "CAN", BC = "CAN", MB = "CAN", NB = "CAN", NL = "CAN", NS = "CAN", -- Canada
NT = "CAN", NU = "CAN", ON = "CAN", PE = "CAN", QC = "CAN", SK = "CAN",
YT = "CAN",
AH = "CHN", BJ = "CHN", CQ = "CHN", FJ = "CHN", GD = "CHN", GS = "CHN", -- China
GX = "CHN", GZ = "CHN", HA = "CHN", HB = "CHN", HE = "CHN", HK = "CHN",
HL = "CHN", JL = "CHN", JS = "CHN", JX = "CHN", LN = "CHN", MC = "CHN",
NX = "CHN", QH = "CHN", SH = "CHN", SN = "CHN", SX = "CHN", TJ = "CHN",
TW = "CHN", XJ = "CHN", XZ = "CHN", YN = "CHN", ZJ = "CHN",
AICHI = "JPN", AKITA = "JPN", AOMORI = "JPN", CHIBA = "JPN", EHIME = "JPN", -- Japan
FUKUI = "JPN", FUKUOKA = "JPN", FUKUSHIMA = "JPN", GIFU = "JPN",
GUNMA = "JPN", HIROSHIMA = "JPN", HOKKAIDO = "JPN", HYOGO = "JPN",
IBARAKI = "JPN", ISHIKAWA = "JPN", IWATE = "JPN", KAGAWA = "JPN",
KAGOSHIMA = "JPN", KANAGAWA = "JPN", KOCHI = "JPN", KUMAMOTO = "JPN",
KYOTO = "JPN", MIE = "JPN", MIYAGI = "JPN", MIYAZAKI = "JPN", NAGANO = "JPN",
NAGASAKI = "JPN", NARA = "JPN", NIIGATA = "JPN", OITA = "JPN", OKAYAMA = "JPN",
OKINAWA = "JPN", OSAKA = "JPN", SAGA = "JPN", SAITAMA = "JPN", SHIGA = "JPN",
SHIMANE = "JPN", SHIZUOKA = "JPN", TOCHIGI = "JPN", TOKUSHIMA = "JPN",
TOKYO = "JPN", TOTTORI = "JPN", TOYAMA = "JPN", WAKAYAMA = "JPN",
YAMAGATA = "JPN", YAMAGUCHI = "JPN", YAMANASHI = "JPN",
AGU = "MEX", BCN = "MEX", BCS = "MEX", CAM = "MEX", CHP = "MEX", -- Mexico
CHH = "MEX", COA = "MEX", COL = "MEX", DIF = "MEX", DUR = "MEX",
GUA = "MEX", GRO = "MEX", HID = "MEX", JAL = "MEX", MEX = "MEX",
MIC = "MEX", MOR = "MEX", NAY = "MEX", NLE = "MEX", OAX = "MEX",
PUE = "MEX", QUE = "MEX", ROO = "MEX", SLP = "MEX", SIN = "MEX",
SON = "MEX", TAB = "MEX", TAM = "MEX", TLA = "MEX", VER = "MEX",
YUC = "MEX", ZAC = "MEX",
ACT = "AUS", NSW = "AUS", QLD = "AUS", SA = "AUS", TAS = "AUS", VIC = "AUS" -- Australia
}
return p