--[==[ 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"]`.]
-- New Mexicolocal NM =
local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(NM, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]New Mexico)"
NM.I.link = "Interstate %route% (New Mexico)"
for k, v in pairs(NM) do if k:find ("^I") then v.link = NM.I.link endend
NM.BL.link = "Interstate %route% Business ([dab||%dab%, |]New Mexico)"
for k, v in pairs(NM) do if k:find ("^BL") then v.link = NM.BL.link endend
NM.US.name = "U.S. Highway %route%"NM.US.link = "U.S. Route %route% in New Mexico"
for k, v in pairs(NM) do if k:find ("^US %d") then v.name = NM.US.name v.link = NM.US.link endend
for _,auxType in ipairs do local spec = NM[" aux "][auxType] for k, v in pairs(NM) do if k:find (auxType) then if k:find ("^US") then v.name = NM.US.name .. " " .. spec.name v.link = NM.US.base .. " " .. spec.name .. " ([dab||%dab%, |]New Mexico)" end end endend
NM["US-Hist"].shield = "US %route% (NM historic).svg"NM["US-Hist"].link = NM.US.link
NM.NM = NM.SR = NM.NM
for _,year in ipairs do NM["NM " .. year] = end
NM.FR =
NM.SBR =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(NM) do if k:find ("^%a") then v.maint = "NMDOT" v.browse = "State Roads in New Mexico" v.browselinks = endend
for k, v in pairs(NM) do if k:find ("^%a+ %d") then v.maint = "New Mexico State Highway Department" endend
NM.CR.shield = NM.CR.maint = ""NM.CR.abbr =
return NM