--[==[ 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 Hampshirelocal NH =
local util = require("Module:Road data/util")util.addAll(NH, require("Module:Road data/strings/USA"))
local format = mw.ustring.format
--REGION-SPECIFIC SETTINGS --local state = "New Hampshire"NH[" common "].state = stateNH[" common "].region = state
--ROUTE TYPES --local suffix = format(" ([dab||%%dab%%, |]%s)", state)
NH.I.shieldmain = NH.I.link = NH.I.base .. " in New Hampshire"NH.I.orientation =
for k, v in pairs(NH) do if k:find ("^I") then v.link = NH.I.link endend
NH.BL.link = NH.I.base .. " Business" .. suffixfor k, v in pairs(NH) do if k:find ("^B%a") then v.link = NH.BL.link endend
NH.US.shield = "US %route% square.svg"NH.US.link = NH.US.base .. " in New Hampshire"NH.US.width = "square"
for k, v in pairs(NH) do if k:find ("^US %d") then v.name = NH.US.name v.link = NH.US.link endend
for _,auxType in ipairs do local spec = NH[" aux "][auxType] for k, v in pairs(NH) do if k:find (auxType) then if k:find ("^US") then v.shield = NH.US.shield v.link = NH.US.base .. " " .. spec.name .. suffix v.width = "square" end end endendNH["US-Byp"].shield = NH["US-Byp"].banner =
NH.NH =
NH["NH-Byp"] =
NH["NH 1948"] =
NH["NH 1983"] =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(NH) do if k:find ("^%a") then v.maint = "NHDOT" v.browse = "New Hampshire Highway System" v.browselinks = endend
NH.Turnpike =
NH.MA = NH.VT = NH["I-VT"] = NH["US-VT"] =
return NH