Module:Road data/strings/USA/CO 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))]

]

--Coloradolocal CO = require("Module:Road data/strings/USA")

local util = require("Module:Road data/util")local format = mw.ustring.format

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

CO.I.link =

for k, v in pairs(CO) do if k:find ("^I") then v.link = CO.I.link endend

CO.BL.link = "Interstate %route% Business ([dab||%dab%, |]Colorado)"CO.BS.link = CO.BL.link

for k, v in pairs(CO) do if k:find ("^B%a") then v.link = CO.BL.link endend

CO.US.name = "U.S. Highway %route%"CO.US.link =

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

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

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

CO.SH =

CO.CO = CO.SH

for _,type in ipairs do for _,year in ipairs do CO[type .. " " .. year] = endend

CO["SH 1969"].shield = "Colorado %route%.svg"CO["CO 1969"].shield = CO["SH 1969"].shield

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

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(CO) do if k:find ("^%a") then v.maint = "CDOT" endend

CO.E =

CO.NW =

CO.AZ = CO.KS = CO.NE = CO["I-NE"] = CO.NM = CO.OK = CO.UT = CO.WY =

return CO