Module:Road data/strings/USA/CT 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"]`.]

]

-- Connecticutlocal CT =

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

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

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

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

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

CT.CT =

CT.Route = CT.CT

for _,year in ipairs do CT["CT " .. year] = end

CT["CT 1963"].shield = "Connecticut Highway %route%.svg" CT.CTTP =

CT.Merritt =

CT.SSR = CT.SR =

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