--[==[ 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"]`.]
-- Iowalocal IA =
local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(IA, require("Module:Road data/strings/USA/sandbox"))
local suffix = " ([dab||%dab%, |]Iowa)"local maint = "Iowa DOT"
IA.common =
IA.I.link =
for k, v in pairs(IA) do if k:find ("^I-%a") then v.link = IA.I.link endend
IA.BL.name = IA.I.name .. " Business Loop"IA.BL.link = IA.I.base .. " Business" .. suffixIA.BL.abbr = IA.I.abbr .. " Business Loop"
IA["I 1957"].link = IA.I.linkIA["I 1961"].link = IA.I.link
IA.US.name = "U.S. Highway %route%"IA.US.link =
for k, v in pairs(IA) do if k:find ("^US %d") then v.name = IA.US.name v.link = IA.US.link endend
for _,auxType in ipairs do local spec = IA[" aux "][auxType] for k, v in pairs(IA) do if k:find ("^US-%a+") then v.name = IA.US.name .. " " .. spec.name v.link = IA.US.base .. " " .. spec.name .. suffix end endend
IA["US-Hist"].link = IA.US.link
IA["US 1926-City"] = IA["US 1948-City"] = IA["US 1926-City"]
IA["US-City-Bus"] =
IA.IA =
for _,type in ipairs do for _,year in ipairs do IA["IA " .. year] = endend
IA["IA-Bus"] =
IA.AOTS =
IA.CR.link = IA.CR.browse = "Secondary roads in Iowa"IA.CR.browselinks = ""IA.CR.maint = "[county||%county% County Highway Department|]"
IA.Primary =
IA.Registered =
IA.Lincoln.link = "Lincoln Highway in Iowa"IA.Lincoln.abbr = "Lincoln Highway Heritage Byway"IA.Jefferson.abbr = "Jefferson Highway Heritage Byway"
-- add new types above this linefor k, v in pairs(IA) do if k:find ("^%a") then v.browse = maint v.browse = IA.common.browse v.browselinks = IA.common.browselinks endend IA.IL = IA.MN = IA.MO = IA.NE = IA.SD = IA.WI =
return IA