Module:Road data/strings/USA/VA explained

--[==[ 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"]`.]

]

-- Virginialocal VA =

local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(VA, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Virginia)"local suffix2 = " [dab||(%dab%)|]"

VA.I.link = "Interstate %route% (Virginia)"

for k, v in pairs(VA) do if k:find ("^I") then v.link = VA.I.link endendVA["I-Express"].link = "Interstate %route% Express (Virginia)"

VA.US.link = "U.S. Route %route% in Virginia"

for k, v in pairs(VA) do if k:find ("^US %d") then v.link = VA.US.link endend

for _,auxType in ipairs do local spec = VA[" aux "][auxType] for k, v in pairs(VA) do if k:find (auxType) then if k:find ("^US") then v.link = VA.US.base .. " " .. spec.name .. suffix end end endend

for _,type in ipairs do for _,auxType in ipairs do local spec = VA[" aux "][auxType] VA[type .. "-" .. auxType] = endend

VA["US-Alt-Bus"] =

VA["US-Old"] =

VA.SR = VA.VA = VA.SR

VA.Sec =

for _,type in ipairs do for _,auxType in ipairs do local spec = VA[" aux "][auxType] VA[type .. "-" .. auxType] = endendVA["SR-Toll"].banner = "Toll plate yellow.svg"VA["VA-Toll"].banner = VA["SR-Toll"].banner

for _,year in ipairs do -- add 1980 when shields are made VA["SR " .. year] = endVA["VA 1924"] = VA["SR 1924"]

VA.GWMP =

VA.Bike =

VA.Byway =

VA.ISR =

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(VA) do if k:find ("^%a") then v.maint = "VDOT" endend VA.KY = VA.MD = VA["I-MD"] = VA.NC = VA.TN = VA["TN-Sec"] = VA.WV = VA["US-WV"] =

return VA