Module:Road data/strings/USA/VA

MyWikiBiz, Author Your Legacy — Thursday December 05, 2024
< 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)
Jump to navigationJump to search

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

-- Virginia
local VA = {}

local util = require("Module:Road data/util")
util.addAll(VA, require("Module:Road data/strings/USA"))

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


VA.I.link = "Interstate %route% (Virginia)"

VA["I-Express"] = {
	shield = VA.I.shield,
	name = "Interstate %route% Express",
	link = "Interstate %route% Express (Virginia)",
	abbr = VA.I.abbr .. " Express",
	width = "expand",
	bannersuffix = "blue"
}
         
VA["I-Future"].link = VA.I.link
VA.Future = VA["I-Future"]         

VA.US.link = "U.S. Route %route% in Virginia"

VA["US 1926"].shieldmain = "US %route% Virginia 1926.svg"
VA["US 1926"].link = VA.US.link
VA["US 1948"].shieldmain = "US %route% Virginia 1948.svg"
VA["US 1948"].link = VA.US.link
VA["US 1961"].link = VA.US.link

VA["US-Alt"].link = VA.US.base .. " Alternate" .. suffix
VA["US-Bus"].link = VA.US.base .. " Business" .. suffix
VA["US-Truck"].link = VA.US.base .. " Truck" .. suffix

VA["US-Alt-Bus"] = {
	shield = VA.US.shield,
	name = VA["US-Alt"].name .. " Business",
	link = "U.S. Route %route% Alternate Business ([dab||%dab%, |]Virginia)",
	abbr = "US&nbsp;%route% Alt. Bus.",
	banner = "Business alternate plate.svg",
	width = "expand"
}

VA["US-Toll"] = {
	shield = VA.US.shield,
	name = VA.US.name,
	link = VA.US.link,
	abbr = VA.US.abbr,
	width = "expand",
	banner = "Toll plate yellow.svg"
}

VA.SR = {
	shield = {
		default = "Virginia %route%.svg",
		["90000"] = "",
		["90004"] = ""
	},
	shieldmain = {
		default = "Virginia %route%.svg",
		["102"] = {"Virginia %route%.svg", "WV-%route%.svg"},
		["311"] = {"Virginia %route%.svg", "WV-%route%.svg"},
		["90000"] = "",
		["90004"] = ""
	},
	name = {
		default = "State Route %route%",
		["102"] = "Virginia State Route %route% and<br>West Virginia Route %route%",
		["311"] = "Virginia State Route %route% and<br>West Virginia Route %route%"
	},
	link = "Virginia State Route %route%[dab|| (%dab%)|]",
	abbr = "SR&nbsp;%route%",
	width = "expand"
	
}

VA.VA = VA.SR

VA.Sec = {
	shield = "Circle sign %route%.svg",
	name = VA.SR.name.default,
	link = {
		ifexists   = true,
		arg   = "county",
		default   = "Virginia State Route %route% (%county% County)",
		otherwise   = VA.SR.link
	},
	abbr = VA.SR.abbr
}

VA["SR-Alt"] = {
	shield = VA.SR.shield.default,
	name = VA.SR.name.default .. " Alternate",
	link = "Virginia State Route %route% Alternate [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Alt.",
	banner = "Alt plate.svg",
	width = "expand"
}

VA["VA-Alt"] = VA["SR-Alt"]

VA["SR-Bus"] = {
	shield = VA.SR.shield.default,
	name = VA.SR.name.default .. " Business",
	link = "Virginia State Route %route% Business [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Bus.",
	banner = "Business plate.svg",
	width = "expand"
}

VA["VA-Bus"] = VA["SR-Bus"]

VA["SR-Truck"] = {
	shield = VA.SR.shield.default,
	name = VA.SR.name.default .. " Truck",
	link = "Virginia State Route %route% Truck [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Truck",
	banner = "Truck plate.svg",
	width = "expand"
}

VA["VA-Truck"] = VA["SR-Truck"]

VA["SR-Toll"] = {
	shield = VA.SR.shield.default,
	name = VA.SR.name.default,
	link = VA.SR.link,
	abbr = "SR&nbsp;%route% Toll",
	banner = "Toll plate yellow.svg",
	width = "expand"
}

VA["SR 1924"] = {
	shield = "Virginia %route% (old).svg",
	name = VA.SR.name.default,
	link = VA.SR.link,
	abbr = VA.SR.abbr
}

VA["VA 1924"] = VA["SR 1924"]

VA.GWMP = {
	shield = "",
	name = "George Washington Memorial Parkway",
	link = "George Washington Memorial Parkway",
	abbr = "George Washington Parkway"}

VA.BRP = {
	shield = "Blue Ridge Parkway shield.png", 
	name = "Blue Ridge Parkway",
	link = "Blue Ridge Parkway",
	abbr = "Blue Ridge Parkway"
}

VA.Bike = {
	shield = "US Bike %route% (M1-8).svg",
	name = "%route%",
	link = "",
	abbr = "%route%"
}

VA.Byway = {
	shield = "Virginia D6-V1.svg",
	name = "Virginia Byway",
	link = "Virginia Byway",
	abbr = "Virginia Byway"
}
        
VA.KY = {alias = {module = "USA/KY", type = "KY"}}
VA.MD = {alias = {module = "USA/MD", type = "MD"}}
VA["I-MD"] = {alias = {module = "USA/MD", type = "I"}}
VA.NC = {alias = {module = "USA/NC", type = "NC"}}
VA.TN = {alias = {module = "USA/TN", type = "SR"}}
VA["TN-Sec"] = {alias = {module = "USA/TN", type = "Sec"}}
VA.WV = {alias = {module = "USA/WV", type = "WV"}}
VA["US-WV"] = {alias = {module = "USA/WV", type = "US"}}
VA.road = {alias = {module = "USA", type = "road"}}
       
return VA