--[==[ 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"]`.]
-- Delawarelocal DE =
local util = require("Module:Road data/util")util.addAll(DE, require("Module:Road data/strings/USA"))local format = mw.ustring.format
local suffix = " ([dab||%dab%, |]Delaware)"
DE.I.link = "Interstate %route% (Delaware)"DE["I-Alt"].banner = "Alt plate blue.svg"
for k, v in pairs(DE) do if k:find ("^I") then v.link = DE.I.link endend
DE.US.link = "U.S. Route %route% in Delaware"
for k, v in pairs(DE) do if k:find ("^US %d") then v.name = DE.US.name v.link = DE.US.link endend
for _,auxType in ipairs do local spec = DE[" aux "][auxType] for k, v in pairs(DE) do if k:find (auxType) then if k:find ("^US") then v.link = DE.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Delaware)" v.banner = spec.banneralt .. " plate.svg" end end endendDE["US-Toll"].link = DE.US.linkDE["US-Toll"].banner = "Toll plate yellow.svg"DE["US 1961"].bannersuffix = "1961"
for _,year in ipairs do for _,auxType in ipairs do local type = "US " .. year local spec = DE[" aux "][auxType] DE[type .. "-" .. auxType] = endend
DE.SR =
DE.DE = DE.SR
for _,type in ipairs do for _,auxType in ipairs do local spec = DE[" aux "][auxType] DE[type .. "-" .. auxType] = endendDE["SR-Toll"].banner = "Toll plate yellow.svg"DE["DE-Toll"].banner = DE["SR-Toll"].banner
for _,type in ipairs do for _,year in ipairs do DE[type .. " " .. year] = endendDE["SR 1926"].orientation = "upright"DE["DE 1926"].orientation = "upright"DE["SR 1955"].orientation = "upright"DE["DE 1955"].orientation = "upright"DE["SR 1970"].shield = "Circle sign %route%.svg"DE["DE 1970"].shield = "Circle sign %route%.svg"DE["SR 1978"].shield = DE["DE 1978"].shield = DE["SR 1978"].shieldDE["SR 1978"].width = DE.SR.widthDE["DE 1978"].width = DE.SR.widthDE["SR 1926"].bannersuffix = "1926"DE["DE 1926"].bannersuffix = "1926"DE["SR 1955"].bannersuffix = "1961"DE["DE 1955"].bannersuffix = "1961"DE["SR 1964"].bannersuffix = "1961"DE["DE 1964"].bannersuffix = "1961" DE["SR 1978-Alt"] = DE["DE 1978-Alt"] = DE["SR 1978-Alt"]
DE.DETP = DE.Byway =
DE.SBR =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(DE) do if k:find ("^%a") then v.maint = "DelDOT" v.browse = "Delaware State Route System" v.browselinks = endend
DE.DEMD =
DE.NJTP = DE.MD =
return DE