--[==[ 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 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%)|]"  WI.I.link = { 	["90"] = "Interstate 90 in Wisconsin", 	["94"] = "Interstate 94 in Wisconsin", 	default = "Interstate %route%" }  for k, v in pairs(WI) do if k:find ("^I") then  	v.link = WI.I.link 	end end  for _,auxType in ipairs({"Alt", "Express", "Future", "Local", "Spur", "Temp", "Toll", "Truck"}) do 	local spec = WI[" aux "][auxType] 		for k, v in pairs(WI) do if k:find (auxType) then if k:find ("I-") then 			v.link = WI.I.base .. " " .. spec.name .. " (Wisconsin)" 			v.name = spec.name .. " " .. WI.I.name 			v.abbr = spec.abbrsuffix .. " " .. WI.I.abbr 			end 		end 	end end  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 k, v in pairs(WI) do if k:find ("^US %d") then  	v.name = WI.US.name 	v.link = WI.US.link 	end end  for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do 	local spec = WI[" aux "][auxType] 		for k, v in pairs(WI) do if k:find (auxType) then if k:find ("^US") then 			v.shield = WI.US.shield 			v.shieldmain = WI.US.shieldmain 			v.name = spec.name .. " " .. WI.US.name 			v.link = WI.US.base .. " " .. spec.name .. suffix 			v.abbr = spec.abbrsuffix .. " " .. WI.US.abbr 			v.width = "square" 			end 		end 	end end WI["US 1961"].shield = "US %route% (1961 cutout).svg" WI["US 1965"] = WI["US 1961"]  for _,type in ipairs({'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 = "U.S. Route %route% " .. 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", 	}, 	base = "Wisconsin Highway %route% ", 	name = "State Trunk Highway %route%", 	link = "Wisconsin Highway %route% [dab||(%dab%)|]", 	abbr = "WIS %route%" } WI.STH = WI.WI WI.WIS = WI.WI  for _,year in ipairs({"1919", "1927", "1938", "1949", "1958", "1970"}) do 	WI["WI " .. year] = { 		shield = format("WIS %%route%% (%s).svg", year), 		base = WI.WI.base, 		name = WI.WI.name, 		link = WI.WI.link, 		abbr = WI.WI.abbr, 		width = "square", 	} end for _,type in ipairs({'WI', 'STH', 'WIS'}) do 	for _,auxType in ipairs({"Alt", "Bus", "Spur"}) do 		local spec = WI[" aux "][auxType] 		WI[type .. "-" .. auxType] = { 			shield = WI[type].shield, 			shieldmain = WI[type].shield, 			name = spec.name .. " " .. WI[type].name, 			link = WI[type].base .. spec.name .. suffix2, 			abbr = spec.abbrsuffix .. " " .. WI[type].abbr, 			banner = spec.bannerprefix .. " plate.svg", 			aux = spec.aux, 			width = "square" 		} 	end end  WI.RR = { 	shield = "Rustic road.svg", 	name = "Rustic Road %route%", 	link = "Rustic Roads (Wisconsin)", 	abbr = "R%route%" }  WI.Rustic = WI.RR  -- add new types above this line if you want it to have the state highway browse and maint for k, v in pairs(WI) do if k:find ("^%a") then 	v.maint = "WisDOT" 	v.browse = "Wisconsin State Trunk Highway System" 	v.browselinks = { 		[1] = "Interstate", 		[2] = "US", 		[3] = "State", 		[4] = "Scenic", 		[5] = "Rustic" 	} 	end end  WI.Kettle = { 	shield = "Kettle moraine.svg", 	name = "Kettle Moraine Scenic Drive", 	link = "Kettle Moraine Scenic Drive", 	abbr = "Kettle Moraine Scenic Drive", 	bannersuffix = "green" }  WI.CTH = { 	shield = "WIS County %route%.svg", 	name = "County Trunk Highway %route%", 	link = "", 	abbr = "CTH-%route%", 	browse = "County Trunk Highways", 	browselinks = "" 	 }  WI.CR = WI.CTH  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"}}  return WI