Module:Road data/strings/USA explained

--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]]and enter the following input text:

To inspect the content of this data module when editing, enter the followinginto 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"]`.]

]

-- United Stateslocal USA =

local util = require("Module:Road data/util")local format = mw.ustring.format

--REGION-SPECIFIC SETTINGS --USA[" common "] =

--ROUTE TYPES ---- disambiguation switchUSA[" dab "] = "[dab|| (%dab%)|]"

-- definitions for auxiliary routesUSA[" aux "] = -- fill out default valuesfor _,entry in pairs(USA[" aux "]) do entry.abbrsuffix = entry.abbrsuffix or entry.name entry.bannerprefix = entry.bannerprefix or entry.name entry.banneralt = entry.banneralt or entry.bannerprefix entry.aux = entry.aux or format("%s route", entry.name)end

USA.I =

for _,auxType in ipairs do local spec = USA[" aux "][auxType] USA["I-" .. auxType] = end

USA["I-Future"].shield = "I-%route% (Future).svg"USA["I-Future"].shieldmain = "I-%route% (Future).svg"USA["I-Future"].name = "Future " .. USA.I.nameUSA["I-Temp"].name = "Temporary " .. USA.I.nameUSA["I-Future"].abbr = "Future " .. USA.I.abbrUSA["I-Temp"].abbr = "Temp. " .. USA.I.nameUSA["I-Express"].banner = "Express plate yellow.svg"USA["I-Future"].banner = ""USA["I-Local"].banner = "Local plate yellow.svg"USA["I-Toll"].banner = "Toll plate yellow.svg"

USA.Future = USA["I-Future"]USA["I-Temporary"] = USA["I-Temp"]

for _,year in ipairs do USA["I " .. year] = end

USA["I 1971"] =

USA["I-named"] =

USA.BL =

USA.BS =

USA["BL 1957"] =

USA["BS 1957"] =

USA.BLBS =

USA.US =

for _,auxType in ipairs do local spec = USA[" aux "][auxType] USA["US-" .. auxType] = endUSA["US-Toll"].banner = "Toll plate yellow.svg"USA["US-City"].name = "City " .. USA.US.nameUSA["US-City"].abbr = "City " .. USA.US.abbrUSA["US-Temp"].name = "Temporary " .. USA.US.nameUSA["US-Temp"].abbr = "Temp. " .. USA.US.abbr

USA["US-Hist"] =

for _,year in ipairs do USA["US " .. year] = end

USA["US 1961"] =

USA["US 1971"] =

for k, v in pairs(USA) do if k:find ("US 19%d%d") then v.color = endend

USA["US-named"] =

USA.Byway =

USA.Npkwy =

USA.BCB = USA["Back Country"] = USA.BCB

USA["FH-named"] =

USA.FFH = USA.FH =

USA.FR =

USA.NSB = USA.FSB = USA.NSB

USA.NFSB =

USA.Scenic =

USA.ADHS =

USA.ISTEA =

USA.NHS =

USA.Post = USA.Postal = USA.Post

USA.CR =

USA.road = USA.USBR =

USA["USBR 2009"] =

util.addAll(USA, require("Module:Road data/strings/USA/regional/GRR"))util.addAll(USA, require("Module:Road data/strings/USA/regional/NER"))util.addAll(USA, require("Module:Road data/strings/USA/regional/Tour"))util.addAll(USA, require("Module:Road data/strings/USA/regional/Trails"))

return USA