--[==[ 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"]`.]
-- Massachusettslocal MA =
local util = require("Module:Road data/util")util.addAll(MA, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]Massachusetts)"local maint = "MassDOT"
MA.I.link = "Interstate %route% (Massachusetts)"
for k, v in pairs(MA) do if k:find ("^I") then v.link = MA.I.link endend MA.BL.link = "Interstate %route% Business ([dab||%dab%, |]Massachusetts)"
for k, v in pairs(MA) do if k:find ("^BL") then v.link = MA.BL.link endend
MA.US.link = "U.S. Route %route% in Massachusetts"for k, v in pairs(MA) do if k:find ("^US %d") then v.link = MA.US.link endend
for _,auxType in ipairs do local spec = MA[" aux "][auxType] for k, v in pairs(MA) do if k:find (auxType) then if k:find ("^US") then v.link = MA.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Massachusetts)" end end endend
MA.Route = MA.MA = MA.RouteMA.SR = MA.Route
MA["Route-Conn"] = MA["MA-Conn"] = MA["Route-Conn"]
MA.MATP =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(MA) do if k:find ("^%a") then v.maint = "MassDOT" endend
MA.CT = MA.NH = MA.NY = MA.RI = MA.VT =
return MA