--[==[ 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"]`.]
-- Marylandlocal MD =
local util = require("Module:Road data/util")util.addAll(MD, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]Maryland)"
MD.I.link =
for k, v in pairs(MD) do if k:find ("^I") then v.link = MD.I.link endend
MD["I-Spur"].link = "Interstate %route% Spur (Maryland)" MD["I-Express"].link = "Interstate %route% Express (Maryland)"MD["I-Express"].banner = "Toll plate yellow.svg"
MD.US.link = "U.S. Route %route% in Maryland"
for k, v in pairs(MD) do if k:find ("^US %d") then v.name = MD.US.name v.link = MD.US.link endend
for _,auxType in ipairs do local spec = MD[" aux "][auxType] for k, v in pairs(MD) do if k:find (auxType) then if k:find ("^US") then v.banner = spec.banneralt .. " plate.svg" v.link = MD.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Maryland)" end end endend
for _,auxType in ipairs do local spec = MD[" aux "][auxType] for k, v in pairs(MD) do if k:find (auxType) then if k:find ("^US") then v.shield = "US %route% Business (MD).svg" v.link = MD.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Maryland)" v.banner = "" v.bannersuffix = "Vermont" end end endend
MD["US 1926-Alt"] = MD.SR = MD.MD = MD.SR
for _,type in ipairs do for _,auxType in ipairs do local spec = MD[" aux "][auxType] MD[type .. "-" .. auxType] = endendMD["SR-Toll"].banner = "Toll plate yellow.svg"MD["MD-Toll"].banner = MD["SR-Toll"].banner
for _,type in ipairs do for _,auxType in ipairs do local spec = MD[" aux "][auxType] MD[type .. "-" .. auxType] = endend
MD.BWP =
MD.CBP =
MD.CJP =
MD.COC =
MD.SB =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(MD) do if k:find ("^%a") then v.maint = "MDSHA" endend
MD.Pkwy =
MD.MDJFK =
for k, v in pairs(MD) do if k:find ("Toll$") then v.maint = MD.MDJFK.maint endend
MD.CR.maint = ""
MD.PA = MD.WV = MD.VA = MD.DEMD =
return MD