Module:Road data/strings/USA/WY

MyWikiBiz, Author Your Legacy — Thursday May 30, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/USA/WY/doc

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

-- Wyoming
local WY = {}

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

local suffix = " ([dab||%dab%, |]Wyoming)"
local maint = "[[Wyoming Department of Transportation|Wyoming DOT]]"

WY.I.link = "Interstate %route% (Wyoming)"

WY.BL.link = "Interstate %route% Business ([dab||%dab%, |]Wyoming)"

WY.US.shield = {
	hook = "split",
	split = 100,
	below = "US %route%.svg",
	above = "US %route% square.svg"
	
}
WY.US.shieldmain= WY.US.shield      
WY.US.name = "U.S. Highway %route%"
WY.US.link = "U.S. Route %route% in Wyoming"

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

WY["US 1961"].shieldmain = WY["US 1961"].shield

for _,auxType in ipairs({"Alt", "Bus", "Byp", "Truck"}) do
	local spec = WY[" aux "][auxType]
	WY["US-" .. auxType] = {
		shield = WY.US.shield,
		shieldmain = WY.US.shieldmain,
		name = WY.US.name .. " " .. spec.name,
		link = WY.US.base .. " " .. spec.name .. suffix,
		abbr = WY.US.abbr .. " " .. spec.abbrsuffix,
		banner = spec.bannerprefix .. " plate.svg",
		aux = spec.aux,
		width = "square",
		browse = WY.US.browse
	}
end

WY.WY = {
	shield = "WY-%route%.svg",
	name = "Wyoming Highway %route%",
	link = "Wyoming Highway %route% [dab||(%dab%)|]",
	abbr = "WYO&nbsp;%route%"
}

WY.WYO = WY.WY

WY["WY-Conn"] = {
	shield = WY.WY.shield,
	name = WY.WY.name .. " Connector",
	link = "Wyoming Highway %route% Connector",
	abbr = "WYO&nbsp;%route%C",
	banner = "Connector plate Wyoming.svg"
}

WY["WYO-Conn"] = WY["WY-Conn"]

return WY