Module:Road data/strings/USA/VT

< Module:Road data‎ | strings‎ | USA
Revision as of 05:48, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Road data/strings/USA/VT/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"]`.
]==]

-- Vermont
local VT = {}

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

local suffix = " ([dab||%dab%, |]Vermont)"
local suffix2 = " [dab||(%dab%)|]"
local maint = "[[Vermont Agency of Transportation|VTrans]]"

VT[" common "] = {
	browse = {
		{link = "List of state highways in Vermont", name = "State Highways in Vermont", bold = true},
	}
}

VT.I.maint = maint
VT.US.maint = maint
VT.US.link = {
	["3"] = "U.S. Route 3",
	["302"] = "U.S. Route 302",
	default = "U.S. Route %route% in Vermont"
}

VT["US-Alt"].link = VT.US.base .. " Alternate" .. suffix
VT["US-Bus"].link = VT.US.base .. " Business" .. suffix
VT["US-Truck"].link = VT.US.base .. " Bypass" .. suffix
VT["US-Spur"].link = VT.US.base .. " Spur" .. suffix

VT["US 1926"].shieldmain = "US %route% Vermont 1926.svg"
VT["US 1926"].link = VT.US.link
VT["US 1948"].shieldmain = "US %route% Vermont 1948.svg"
VT["US 1948"].link = VT.US.link
VT["US 1961"].link = VT.US.link

VT.VT = {
	shield = "Vermont %route%.svg",
	name = "Vermont Route %route%",
	link = "Vermont Route %route%",
	abbr = "VT&nbsp;%route%",
	width = "expand"
}

for _,type in ipairs({'VT'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Spur", "Truck"}) do
		local spec = VT[" aux "][auxType]
		VT[type .. "-" .. auxType] = {
			shield = VT[type].shield,
			shieldmain = VT[type].shieldmain,
			name = VT[type].name .. " " .. spec.name,
			link = VT[type].link .. " " .. spec.name .. suffix2,
			abbr = VT[type].abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate Vermont.svg",
			aux = spec.aux,
			width = VT[type].width
		}
	end
end
                
VT.Dual = {
	shield = {"Vermont %route%.svg", "Ellipse sign %route%.svg"},
	name = VT.VT.name,
	link = VT.VT.link,
	abbr = VT.VT.abbr,
	width = "expand"
}                

VT.Town = {
	shield = {
		default = "Ellipse sign %route%.svg",
		["8A"] = "Vermont 8A (town).svg",
		["F-5"] = "Vermont F-5 (town).svg"
	},
	name = VT.VT.name,
	link = VT.VT.link,
	abbr = VT.VT.abbr,
	width = "expand"
}

for _,type in ipairs({'Town'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Spur", "Truck"}) do
		local spec = VT[" aux "][auxType]
		VT[type .. "-" .. auxType] = {
			shield = VT[type].shield,
			shieldmain = VT[type].shieldmain,
			name = VT[type].name .. " " .. spec.name,
			link = VT[type].link .. " " .. spec.name .. suffix2,
			abbr = VT[type].abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate.svg",
			aux = spec.aux,
			width = VT[type].width
		}
	end
end
           
VT.Ferry = {
	shield = {
		default = "Vermont F-%route%.svg",
		["5"] = "Vermont F-5 (town).svg"
	},
	name = "Vermont Route F-%route%",
	link = "Vermont Route F-%route%",
	abbr = "VT&nbsp;F-%route%",
	width = "expand"
}

VT["VT 1955"] = {
	shield = "Vermont %route% (1955).svg",
	name = VT.VT.name,
	link = VT.VT.link,
	abbr = VT.VT.abbr,
	width = "expand"
}

VT.FH.link = ""
VT.FFH=VT.FH

VT.NH = {alias = {module = "USA/NH", type = "NH"}}
VT["US-NH"] = {alias = {module = "USA/NH", type = "US"}}
VT.NY = {alias = {module = "USA/NY", type = "NY"}}
VT["US-NY"] = {alias = {module = "USA/NY", type = "US"}}

return VT