Module:Road data/strings
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Road data/strings/doc
local p = {}
local format = mw.ustring.format
-- Countries with separate state modules --
local countriesWithStates = {}
--- Canada ---
local CAN = {'AB', 'BC', 'MB', 'NB', 'NL', 'NS', 'NT', 'NU', 'ON', 'PE', 'QC', 'SK', 'YT'}
countriesWithStates.CAN = CAN
--- Cartadania ---
local CAR = {'AC', 'AE', 'AL', 'AV', 'BA', 'CX', 'CA', 'CT', 'ES', 'FE', 'GU', 'LI', 'LO', 'LT', 'LM', 'MA', 'MF', 'NV', 'PB', 'SA', 'SR', 'SM', 'SG', 'SI', 'SL', 'TN', 'TS', 'TO',
'TR', 'TA', 'VA', 'VI', 'VT', 'AH', 'HJ', 'PV', 'SD', 'SE'}
countriesWithStates.CAR = CAR
--- United States ---
local USA = {'AK', 'AR', 'AS', 'AZ', 'CO', 'DC', 'DE', 'FL', 'GA', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MD', 'ME', 'MI', 'MN', 'MO', 'MS',
'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'RI', 'SC', 'TX', 'UT', 'WA', 'WI', 'WV', 'WY'}
countriesWithStates.USA = USA
-- Countries without separate state modules --
local countries = {'HKG'}
-- Processing --
for country, states in pairs(countriesWithStates) do
local countryTable = {}
p[country] = countryTable
for _, state in pairs(states) do
countryTable[state] = format("Module:Road data/strings/%s/%s", country, state)
end
end
for _, country in pairs(countries) do
p[country] = format("Module:Road data/strings/%s", country)
end
return p