Module:Road data/strings explained

local p = local format = mw.ustring.format

-- Countries with separate state modules --local countriesWithStates = --- Canada ---local CAN =

countriesWithStates.CAN = CAN

--- United States ---local USA =

countriesWithStates.USA = USA

-- Countries without separate state modules --

local countries =

-- 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) endend

for _, country in pairs(countries) do p[country] = format("Module:Road data/strings/%s", country)end

return p