Changes

Pywikibot 6.4.0
--[==[
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"]`.
]==]

-- Wisconsin
local WI = {}

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

local suffix = " ([dab||%dab%, |]Wisconsin)"
local suffix2 = " [dab||(%dab%)|]"
local maint = "[[Wisconsin Department of Transportation|WisDOT]]"

WI.I.link = {
["90"] = "Interstate 90 in Wisconsin",
["94"] = "Interstate 94 in Wisconsin",
default = "Interstate %route%"
}

WI["I-Future"].link = WI.I.link
WI.Future = WI["I-Future"]

WI["I-Alt"].name = "Alternate Interstate %route%"
WI["I-Alt"].link = "Interstate %route% Alternate (Wisconsin)"
WI["I-Alt"].abbr = "Alt. I-%route%"

WI.BL.link = "Interstate %route% Business ([dab||%dab%, |]Wisconsin)"
WI.BL.abbr = "BL I-%route%"

WI.BS.link = "Interstate %route% Business ([dab||%dab%, |]Wisconsin)"
WI.BS.abbr = "BS I-%route%"

WI.US.shield = "US %route% (WI).svg"
WI.US.shieldmain = "US %route% (WI).svg"
WI.US.name = "U.S. Highway %route%"
WI.US.link = {
default ="U.S. Route %route% in Wisconsin",
["8"] = "U.S. Route 8",
["110"] = "U.S. Route 110",
["118"] = "U.S. Route 118",
["141"] = "U.S. Route 141",
["151"] = "U.S. Route 151",
}
WI.US.width = "square"

for _,year in ipairs({"1926", "1948", "1961"}) do
WI["US " .. year] = {
shield = format("US %%route%% (%s).svg", year),
shieldmain = format("US %%route%% Wisconsin %s.svg", year),
name = WI.US.name,
link = WI.US.link,
abbr = WI.US.abbr,
width = "square",
}
end

WI["US 1961"].shield = "US %route% (1961 cutout).svg"
WI["US 1961"].shieldmain = WI["US 1961"].shield
WI["US 1965"] = WI["US 1961"]

for _,type in ipairs({'US', 'US 1926', 'US 1948', 'US 1961', 'US 1965'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Spur", "Temp", "Truck"}) do
local spec = WI[" aux "][auxType]
WI[type .. "-" .. auxType] = {
shield = WI[type].shield,
shieldmain = WI[type].shieldmain,
name = spec.name .. " " .. WI[type].name,
link = WI[type].link.default .. " " .. spec.name .. suffix,
abbr = spec.abbrsuffix .. " " .. WI[type].abbr,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = WI.US.width
}
end
end


WI.WI = {
shield = "WIS %route%.svg",
shieldmain = {
["243"] = {"MN-%route% wide.svg", "WIS %route%.svg"},
default = "WIS %route%.svg",
},
name = "State Trunk Highway %route%",
link = "Wisconsin Highway %route% [dab||(%dab%)|]",
abbr = "WIS&nbsp;%route%"
}

WI.STH = WI.WI

WI.WIS = WI.WI

WI["WI-Alt"] = {
shield = WI.WI.shield,
shieldmain = WI.WI.shield,
name = "Alternate " .. WI.WI.name,
link = "Wisconsin Highway %route% Alternate [dab||(%dab%)|]",
abbr = "Alt. WIS&nbsp;%route%",
banner = "Alt plate.svg"
}

WI["WI-Bus"] = {
shield = WI.WI.shield,
shieldmain = WI.WI.shield,
name = "Business " .. WI.WI.name,
link = "Wisconsin Highway %route% Business [dab||(%dab%)|]",
abbr = "Bus. WIS&nbsp;%route%",
banner = "Business plate.svg"
}

WI["STH-Alt"] = WI["WI-Alt"]

WI["STH-Bus"] = WI["WI-Bus"]

WI["WI-Spur"] = {
shield = WI.WI.shield,
shieldmain = WI.WI.shield,
name = "Spur Wisconsin Highway %route%",
link = "Wisconsin Highway %route% Spur",
abbr = "Spur WIS&nbsp;%route%",
banner = "Spur plate.svg"
}

WI.CTH = {
shield = "WIS County %route%.svg",
name = "County Trunk Highway %route%",
link = "",
abbr = "CTH-%route%"

}

WI.CR = WI.CTH

WI.RR = {
shield = "Rustic road.svg",
name = "Rustic Road %route%",
link = "Rustic Roads (Wisconsin)",
abbr = "R%route%"
}

WI.Rustic = WI.RR

WI.Kettle = {
shield = "Kettle moraine.svg",
name = "Kettle Moraine Scenic Drive",
link = "Kettle Moraine Scenic Drive",
abbr = "Kettle Moraine Scenic Drive"
}

WI.IL = {alias = {module = "USA/IL", type = "IL"}}
WI.IA = {alias = {module = "USA/IA", type = "IA"}}
WI.MI = {alias = {module = "USA/MI", type = "M"}}
WI.M = {alias = {module = "USA/MI", type = "M"}}
WI.MN = {alias = {module = "USA/MN", type = "MN"}}
WI.road = {alias = {module = "USA", type = "road"}}

return WI