5,880 bytes added
, 05:47, 16 July 2021
--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
and enter the following input text:
{{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}}
To inspect the content of this data module when editing, enter the following
into 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"]`.
]==]
-- Illinois
local IL = {}
local util = require("Module:Road data/util")
local format = mw.ustring.format
util.addAll(IL, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]Illinois)"
local maint = "[[Illinois Department of Transportation|IDOT]]"
IL[" common "] = {
browse = {
{link = "Illinois State Highway System", bold = true},
{
noprint = true,
{link = "List of Interstate Highways in Illinois", name = "Interstate"},
{link = "List of U.S. Highways in Illinois", name = "U.S."},
{link = "List of state routes in Illinois", name = "State"},
{link = "Illinois State Toll Highway Authority", name = "Tollways"}
}
}
}
IL.I.maint = maint
IL.I.link = {
["39"] = "Interstate 39",
["41"] = "Interstate 41",
["44"] = "Interstate 44 in Missouri",
["72"] = "Interstate 72",
["88"] = "Interstate 88 (Illinois)",
["172"] = "Interstate 172",
["255"] = "Interstate 255",
["270"] = "Interstate 270 (Missouri–Illinois)",
["280"] = "Interstate 280 (Iowa–Illinois)",
["294"] = "Interstate 294",
["355"] = "Interstate 355",
["474"] = "Interstate 474",
default = {
hook = "split",
split = 100,
above = "Interstate %route% (Illinois)",
below = "Interstate %route% in Illinois"
}
}
IL.BL.link = IL.I.base .. " Business" .. suffix
IL["I-Bus"]=IL.BL
IL["I-Toll"].link = IL.I.link
IL["I 1957"].link = IL.I.link
IL["I 1961"].link = IL.I.link
IL.US.maint = maint
IL.US.shieldmain = {
["60"] = {"US 60.svg", "US 62.svg"},
default = "US %route%.svg"
}
IL.US.name = {
["60"] = "U.S. Route 60 and U.S. Route 62",
default = IL.US.base
}
IL.US.link = "U.S. Route %route% in Illinois"
for _,type in ipairs({'US', 'US 1961'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
local spec = IL[" aux "][auxType]
IL[type .. "-" .. auxType] = {
shield = IL[type].shield,
shieldmain = IL[type].shield,
name = IL.US.name.default .. " " .. spec.name,
link = IL.US.base .. " " .. spec.name .. suffix,
abbr = IL.US.abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand",
}
end
end
IL["US 1926"].shieldmain = "US %route% Illinois 1926.svg"
IL["US 1926"].link = IL.US.link
IL["US 1948"].shieldmain = "US %route% Illinois 1948.svg"
IL["US 1948"].link = IL.US.link
IL["US-City"] = {
shield = IL.US.shield,
name = "City " .. IL.US.name.default,
link = "U.S. Route %route% City ([dab||%dab%, |]Illinois)",
abbr = "US %route% City",
banner = "City plate.svg",
width = "expand"
}
IL["US 1961-Toll"] = {
shield = IL["US 1961"].shield,
name = "Toll " .. IL.US.name.default,
link = "U.S. Route %route% Toll ([dab||%dab%, |]Illinois)",
abbr = "Toll US %route%",
banner = "Toll plate.svg",
width = "square"
}
IL["US-Hist"].link = IL.US.link
IL.IL = {
shield = "Illinois %route%.svg",
name = "Illinois Route %route%",
link = "Illinois Route %route%",
abbr = "IL %route%",
width = "expand"
}
for _,year in ipairs({"1926", "1950", "1960"}) do
IL["IL " .. year] = {
shield = format("Illinois %%route%% (%s).svg", year),
shieldmain = format("Illinois %%route%% (%s).svg", year),
name = IL.IL.name,
link = IL.IL.link,
abbr = IL.IL.abbr,
orientation = "upright"
}
end
for _,type in ipairs({'IL', 'IL 1960'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
local spec = IL[" aux "][auxType]
IL[type .. "-" .. auxType] = {
shield = IL[type].shield,
shieldmain = IL[type].shield,
name = IL.US.name.default .. " " .. spec.name,
link = IL.US.base .. " " .. spec.name .. IL[" dab "],
abbr = IL.US.abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand",
}
end
end
IL["IL-Toll"] = {
shield = IL.IL.shield,
name = IL.IL.name,
link = IL.IL.link,
abbr = IL.IL.abbr,
banner = "Toll plate yellow.svg",
width = "expand"
}
IL.Skyway = {
shield = "Chicago Skyway logo.svg",
name = "Chicago Skyway",
link = "Chicago Skyway",
abbr = "Chicago Skyway",
bannersuffix = "blue"
}
IL.Lincoln.link = "Lincoln Highway in Illinois"
IL.LHT = {
shield = "Lincoln Heritage Trail.png",
name = "Lincoln Heritage Trail",
link = "Lincoln Heritage Trail",
abbr = "Lincoln Heritage Trail [route||(%route%)|]"
}
IL.MGR = {
shield = "",
name = "Meeting of the Great Rivers Scenic Route",
link = "Meeting of the Great Rivers Scenic Route",
abbr = "Meeting of the Great Rivers"
}
IL.IRR = {
shield = "",
name = "Illinois River Road",
link = "Illinois River Road",
abbr = "Illinois River Road"
}
IL.CR.link = {
ifexists = true,
default = "County Road %route% ([county||%county% County, |]Illinois)",
otherwise = ""
}
IL.CKC = {
shield = "Illinois 110.svg",
name = "Chicago–Kansas City Expressway",
link = "Chicago–Kansas City Expressway",
abbr = "IL 110 (CKC)",
banner = "Chicago-Kansas City Expressway plate.svg",
width = "square"
}
IL.IA = {alias = {module = "USA/IA", type = "IA"}}
IL.IN = {alias = {module = "USA/IN", type = "IN"}}
IL.Toll = {alias = {module = "USA/IN", type = "Toll"}}
IL.KY = {alias = {module = "USA/KY", type = "KY"}}
IL.MO = {alias = {module = "USA/MO", type = "MO"}}
IL.WI = {alias = {module = "USA/WI", type = "WI"}}
IL['I-MO'] = {alias = {module = "USA/MO", type = "I"}}
return IL