Module:Road data/strings/USA/WI

This module is used to store type data for use with several road templates, including {{jct}} and {{routelist row}}. Ba

Module:Road data/strings/USA/WI

--[==[
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%)|]"

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&nbsp;%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 = "[[Wisconsin Department of Transportation|WisDOT]]"
	v.browse = "[[Wisconsin State Trunk Highway System]]"
	v.browselinks = {
		[1] = "[[List of Interstate Highways in Wisconsin|Interstate]]",
		[2] = "[[List of U.S. Highways in Wisconsin|US]]",
		[3] = "[[List of state trunk highways in Wisconsin|State]]",
		[4] = "[[Wisconsin Scenic Byways|Scenic]]",
		[5] = "[[Rustic Road (Wisconsin)|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 (Wisconsin)|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

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.