--[==[ 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"]`.]
-- North Carolinalocal NC = require("Module:Road data/strings/USA")
local util = require("Module:Road data/util")local format = mw.ustring.format
local suffix = " [dab||(%dab%, North Carolina)|]"local suffix2 = " [dab||(%dab%)|]"
NC.I.link =
for k, v in pairs(NC) do if k:find ("^I") then v.link = NC.I.link endendNC["Future"].shield = "I-%route%.svg"NC["I-Future"].shield = NC["Future"].shieldNC["Future"].shieldmain = NC["Future"].shieldNC["I-Future"].shieldmain = NC["Future"].shieldNC["I-Future"].banner = "Future plate blue.svg"
NC.BL.link = "Interstate %route% Business ([dab||%dab%, |]North Carolina)"
for k, v in pairs(NC) do if k:find ("^BL") then v.link = NC.BL.link endend
NC.US.name = "U.S. Highway %route%"NC.US.link =
for k, v in pairs(NC) do if k:find ("^US %d") then v.name = NC.US.name v.link = NC.US.link endend
NC["US 1950"] =
for _,auxType in ipairs do local spec = NC[" aux "][auxType] for k, v in pairs(NC) do if k:find (auxType) then if k:find ("^US") then v.name = NC.US.name .. " " .. spec.name v.link = NC.US.base .. " " .. spec.name .. " ([dab||%dab%, |]North Carolina)" end end endend
NC["US-Toll-Byp"] =
NC["US-Bus-Truck"] =
for _,year in ipairs do for _,auxType in ipairs do local type = "US " .. year local spec = NC[" aux "][auxType] NC[type .. "-" .. auxType] = endend
for _,type in ipairs do for _,auxType in ipairs do local spec = NC[" aux "][auxType] NC[type .. "-" .. auxType] = endend
NC.NC =
for _,type in ipairs do for _,year in ipairs do NC["NC " .. year] = endendNC["NC 1921"] = NC["NC 1945"]NC["NC 1949"] = NC["NC 1957"]
for _,type in ipairs do for _,auxType in ipairs do local spec = NC[" aux "][auxType] NC["NC-" .. auxType] = endendNC["NC-Toll"].banner = "Toll plate yellow.svg"
NC.NCBR =
NC.SR = NC.Sec = NC.SR
NC.INC =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(NC) do if k:find ("^%a") then v.maint = "NCDOT" endend
NC.Charlotte =
return NC