--[==[ 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"]`.]
-- Illinoislocal IL =
local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(IL, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]Illinois)"
IL.I.link =
for k, v in pairs(IL) do if k:find ("^I") then v.link = IL.I.link endend
IL.BL.link = IL.I.base .. " Business" .. suffix
for k, v in pairs(IL) do if k:find ("^BL") then v.link = IL.BL.link endend
IL.US.shieldmain = IL.US.name = IL.US.link = "U.S. Route %route% in Illinois"
for k, v in pairs(IL) do if k:find ("^US %d") then v.link = IL.US.link endend
for _,auxType in ipairs do local spec = IL[" aux "][auxType] for k, v in pairs(IL) do if k:find (auxType) then if k:find ("^US") then v.link = IL.US.base .. " " .. spec.name .. suffix end end endend
for _,type in ipairs do for _,auxType in ipairs do local spec = IL[" aux "][auxType] IL[type .. "-" .. auxType] = endend
IL["US 1926-Temp"] = IL["US 1961-Toll"].name = "Toll " .. IL.US.name.default
IL["US 1961-Toll-Bus"] =
IL["US-Hist"].link = IL.US.link
IL.IL =
for _,year in ipairs do IL["IL " .. year] = endIL["IL 1924"] = IL["IL 1926"]
for _,type in ipairs do for _,auxType in ipairs do local spec = IL[" aux "][auxType] IL[type .. "-" .. auxType] = endendIL["IL-Toll"].banner = "Toll plate yellow.svg"
IL.CKC =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(IL) do if k:find ("^%a") then v.maint = "IDOT" v.browse = "Illinois State Highway System" v.browselinks = endend
for k, v in pairs(IL) do if k:find ("Toll$") then v.maint = "ISTHA" endend
IL.Skyway =
IL.Lincoln.link = "Lincoln Highway in Illinois"
IL.LHT =
IL.MGR =
IL.IRR =
IL.CR.link = "County Road %route% ([county||%county% County, |]Illinois)"IL.CR.maint = ""IL.CR.browse = "%county% County Roads"IL.CR.browselinks = ""
IL.IA = IL.IN = IL.Toll = IL.KY = IL.MO = IL.WI = IL['I-MO'] =
return IL