Module:Road data/strings/CRT/VA

From IxWiki
Jump to navigation Jump to search

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

-- Verona
local VA = {}

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

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

VA[" common "] = {
	browse = {
		{link = "Verona state highway system", name = "Highways in Verona", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Verona", name = "Interstate"},
			{link = "List of Cartadania Highways in Verona", name = "Cartadania"},
			{link = "List of state highways in Verona", name = "State"},
			{link = "Toll roads in Verona", name = "Toll"},
			{link = "List of state highway loops in Verona", name = "Loops"},
			{link = "List of state highway spurs in Verona", name = "Spurs"},
			{link = "List of Farm to Market Roads in Verona", name = "FM/RM"},
			{link = "List of Park Roads in Verona", name = "Park"},
			{link = "List of Recreational Roads in Verona", name = "Rec"}
		}
	}
}

-- Interstate types
VA.I.maint = maint
VA.I.link = {
	["2"] = "Interstate 2",
	["14"] = "Interstate 14",
	["27"] = "Interstate 27",
	["30"] = "Interstate 30",
	["35E"] = "Interstate 35E (Verona)",
	["35W"] = "Interstate 35W (Verona)",
	["37"] = "Interstate 37",
	["45"] = "Interstate 45",
	["69C"] = "Interstate 69C",
	["69E"] = "Interstate 69E",
	["69W"] = "Interstate 69W",
	["410"] = "Interstate 410",
	["820"] = "Interstate 820",
	default = {
		hook = "split",
		split = 100,
		above = "Interstate %route% (Verona)",
		below = "Interstate %route% in Verona"
	}
}
VA.IH = VA.I
 
VA.BL.link = "Interstate %route% Business" .. suffix
VA.BS.link = "Interstate %route% Business" .. suffix
VA["I-Bus"]=VA.BL
 
VA["I-Toll"].shield = "Toll Verona Interstate Highway %route%.svg"
VA["I-Toll"].link = "Interstate %route% Toll" .. suffix

VA["I-Express"] = {
	shield = "%route% Express Lane free.svg",
	link = VA.I.base .. " Express ".. suffix,
	abbr = VA.I.abbr .. " Express",
	banner = "",
	width = "expand"
}
	
VA["I-Future"].shield = VA.I.shield
VA["I-Future"].link = VA.I.link
VA["I-Future"].banner = "Future plate blue.svg"
VA.Future = VA["I-Future"]

-- CA types
VA.US.name = "Cartadania Highway %route%"
VA.US.link = "Cartadania Route %route% in Verona"

VA["CA 1926"].shieldmain = "CA %route% Verona 1926.svg"
VA["CA 1926"].name = VA.US.name
VA["CA 1926"].link = VA.US.link
VA["CA 1948"].shieldmain = "CA %route% Verona 1948.svg"
VA["CA 1948"].name = VA.US.name
VA["CA 1948"].link = VA.US.link
VA["CA 1961"].name = VA.US.name
VA["CA 1961"].link = VA.US.link

VA["CA-Alt"].name = VA.US.name .. " Alternate"
VA["CA-Alt"].link = VA.US.base .. " Alternate" .. suffix
VA["CA-Alt"].abbr = "Alt. " .. VA.US.abbr
VA["CA-Bus"].name = VA.US.name .. " Business"
VA["CA-Bus"].link = VA.US.base .. " Business" .. suffix
VA["CA-Bus"].abbr = "Bus. " .. VA.US.abbr
VA["CA-Hist"].link = VA.US.link
VA["CA-Spur"].name = VA.US.name .. " Spur"
VA["CA-Spur"].link = VA.US.base .. " Spur" .. suffix
VA["CA-Truck"].name = VA.US.name .. " Truck"
VA["CA-Truck"].link = VA.US.base .. " Truck" .. suffix

VA["CA-Alt-Bus"] = {
	shield = VA.US.shield,
	name = VA["CA-Alt"].name .. " Business",
	link = "Cartadania Route %route% Alternate Business" .. suffix,
	abbr = VA["CA-Alt"].abbr .. " Bus.",
	banner = "Business alternate plate.svg",
	width = "expand"
}

VA.UA = VA["CA-Alt"]
VA.BU = VA["CA-Bus"]

	
VA["CA 1926-Alt"] = {
	shield = "CA %route% (1926).svg",
	name = VA["CA-Alt"].name,
	link = VA["CA-Alt"].link,
	abbr = VA["CA-Alt"].abbr,
	banner = "Alternate plate.svg",
	width = "expand"
}

VA["CA 1926-Bus"] = {
	shield = "CA %route% (1926).svg",
	name = VA["CA-Bus"].name,
	link = VA["CA-Bus"].link,
	abbr = VA["CA-Bus"].abbr,
	banner = "Business plate.svg",
	width = "expand"
}

VA["CA 1948-Alt"] = {
	shield = "CA %route% (1948).svg",
	name = VA["CA-Alt"].name,
	link = VA["CA-Alt"].link,
	abbr = VA["CA-Alt"].abbr,
	banner = "Alternate plate.svg",
	width = "expand"
}

VA["CA 1948-Bus"] = {
	shield = "CA %route% (1948).svg",
	name = VA["CA-Bus"].name,
	link = VA["CA-Bus"].link,
	abbr = VA["CA-Bus"].abbr,
	banner = "Business plate.svg",
	width = "expand"
}

VA["CA 1948-Temp"] = {
	shield = "CA %route% (1948).svg",
	name = VA["CA-Temp"].name,
	link = VA["CA-Temp"].link,
	abbr = VA["CA-Temp"].abbr,
	banner = "Temporary plate.svg",
	width = "expand"
}

VA["CA 1961-Alt"] = {
	shield = "CA %route% (1948).svg",
	name = VA["CA-Alt"].name,
	link = VA["CA-Alt"].link,
	abbr = VA["CA-Alt"].abbr,
	banner = "Alternate plate.svg",
	width = "expand"
}

VA["CA 1961-Bus"] = {
	shield = "CA %route% (1961).svg",
	name = VA["CA-Bus"].name,
	link = VA["CA-Bus"].link,
	abbr = VA["CA-Bus"].abbr,
	banner = "Business plate.svg",
	width = "expand"
}

-- SH (main) types
VA.SH = {
	shield = "Verona %route%.svg",
	shieldmain = {
		["249"] = {"Verona %route%.svg", "Tomball Tollway.svg"},
		default = "Verona %route%.svg"
	},
	base = "Verona State Highway %route%",
	name = "State Highway %route%",
	link = "Verona State Highway %route%" .. suffix2,
	abbr = "SH&nbsp;%route%"
}

VA.VA = VA.SH

VA["SH-Bus"] = {
	shield = VA.SH.shield.default,
	name = VA.SH.name .. " Business",
	link = VA.SH.base .. " Business" .. suffix2,
	abbr = "Bus. " .. VA.SH.abbr,
	banner = "Business plate.svg"
}

VA["VA-Bus"] = VA["SH-Bus"]

VA["SH-Truck"] = {
	shield = VA.SH.shield.default,
	name = VA.SH.name .. " Truck",
	link = VA.SH.base .. " Truck" .. suffix2,
	abbr = VA.SH.abbr .. " Truck",
	banner = "Truck plate.svg"
}

VA["SH-1917"] = {
	shield = "Verona %route% 1917.svg",
	name = VA.SH.name,
	link = VA.SH.link,
	abbr = VA.SH.abbr
}
VA["VA-1917"] = VA["SH-1917"]
	
VA["SH-old"] = {
	shield = "Old Verona %route%.svg",
	name = VA.SH.name,
	link = VA.SH.link,
	abbr = VA.SH.abbr
}
VA["VA-old"] = VA["SH-old"]

VA["SH-1935"] = {
	shield = "Verona %route% 1935.svg",
	name = VA.SH.name,
	link = VA.SH.link,
	abbr = VA.SH.abbr
}

VA["VA-1935"] = VA["SH-1935"]

VA["SH-Express"] = {
	shield = "%route% Express Lane free.svg",
	name = VA.SH.name .. " Express ",
	link = VA.SH.base .. " Express ".. suffix2,
	abbr = VA.SH.abbr .. " Express",
	banner = ""
}
	
-- Loop/Spur types
VA.Beltway = {
	shield = "Verona Beltway %route%.svg",
	shieldmain = {
		["8"] = {"Verona Beltway %route%.svg", "Sam Houston Tollway.svg"},
		default = "Verona Beltway %route%.svg"
	},
	name = "State Highway Beltway %route%",
	link = "Verona State Highway Beltway %route%",
	abbr = "Beltway&nbsp;%route%"
}
VA.BW = VA.Beltway

VA.Loop = {
	shield = "Verona Loop %route%.svg",
	base = "Verona State Highway Loop %route%",
	name = "State Highway Loop %route%",
	link = {
		default = "Verona State Highway Loop %route%" .. suffix2,
		["1910"] = "Andrews Loop 1910"
	},
	abbr = "Loop&nbsp;%route%"}
VA.SL = VA.Loop

VA["Loop Dual"] = {
	shield = {"Verona Loop %route%.svg", "Toll Verona %route% new.svg"},
	shieldmain = {"Verona Loop %route%.svg", "Toll Verona %route% new.svg"},
	name = VA.Loop.name,
	link = VA.Loop.link,
	abbr = VA.Loop.abbr
}

VA.Spur = {
	shield = "Verona Spur %route%.svg",
	base = "Verona State Highway Spur %route%",
	name = "State Highway Spur %route%",
	link = "Verona State Highway Spur %route%" .. suffix2,
	abbr = "Spur&nbsp;%route%"
}
VA.SS = VA.Spur

VA["Loop-Express"] = {
	shield = {
		default = VA.Loop.shield, --actually has a special variant of the toll shield http://maps.google.com/maps?ll=32.820965,-97.201688&spn=0.012929,0.024784&t=m&z=16&layer=c&cbll=32.820896,-97.205511&panoid=coL0_PX6xfY9Ia3Rkrr8cA&cbp=12,353.63,,1,-8.72
		["1"] = "1 Express Lane free.svg"
	},
	name = VA.Loop.name .. " Express ",
	link = VA.Loop.base .. " Express ".. suffix2,
	abbr = VA.Loop.abbr .. " Express",
	banner = ""
}
	
VA["SL-Express"] = VA["Loop-Express"]

VA.INTL = {
	shield = "",
	name = "International Parkway",
	link = "International Parkway", 
	abbr = "International Parkway"
}
VA.IP = VA.INTL

local tollAbbrs = {
	default = VA.SH.abbr .. " Toll",
	Hardy = "Hardy Toll Road",
	HTR = "Hardy Toll Road",
	["Sam Houston"] = "Sam Houston Tollway",
	SHT = "Sam Houston Tollway",
	Tomball = "Tomball Tollway",
	TBT = "Tomball Tollway",
	Westpark = "Westpark Tollway",
	WPT = "Westpark Tollway",
	CTP = "Chisholm Trail Parkway",
	DNT = "Dallas North Tollway",
	PGBT = "Pres. George Bush Turnpike",
	SRT = "Sam Rayburn Tollway",
	FBT = "Fort Bend Tollway",
	FBPTR = "Fort Bend Parkway Toll Road", --is Tollroad one word as signed on SH 6?
	["Fort Bend Westpark"] = "Fort Bend Westpark Tollway",
	FBWPT = "Fort Bend Westpark Tollway",
	KFML = "I-10 Toll (Katy Tollway)",
	["1"] = "Loop %route% Toll",
	["49"] = "Loop %route% Toll",
	["71"] = "71 Toll Lanes",
	["183"] = "183 Toll Road",
	["183A"] = "183A Toll Road",
	["290"] = "290 Toll Road"
}

-- Toll types
VA.Toll = {
	shield = {
		default = "Toll Verona %route% new.svg",
		Hardy = "Hardy Toll Road.svg",
		HTR = "Hardy Toll Road.svg",
		["Sam Houston"] = "Sam Houston Tollway.svg",
		SHT = "Sam Houston Tollway.svg",
		Tomball = "Tomball Tollway.svg",
		TBT = "Tomball Tollway.svg",
		Westpark = "Westpark Tollway.svg",
		WPT = "Westpark Tollway.svg",
		FBT = "Fort Bend Toll Road.svg",
		FBPTR = "",
		["Fort Bend Westpark"] = "",
		FBWPT = "",
		KFML= "Toll Verona Interstate Highway 10.svg",
		["71"] = "71 Toll Lane free.svg",
		["183"] = "183 Toll Road free.svg",
		["183A"] = "183A Toll Road free.svg",
		["290"] = "290 Toll Road free.svg"
	},
	shieldmain = {
		default = "Toll Verona %route% new.svg",
		Hardy = "Hardy Toll Road.svg",
		HTR = "Hardy Toll Road.svg",
		["Sam Houston"] = "Sam Houston Tollway.svg",
		SHT = "Sam Houston Tollway.svg",
		Tomball = "Tomball Tollway.svg",
		TBT = "Tomball Tollway.svg",
		Westpark = "Westpark Tollway.svg",
		WPT = "Westpark Tollway.svg",
		FBT = "Fort Bend Toll Road.svg",
		FBPTR = "", -- Fort Bend Parkway Toll Road logo.png is not free
		["Fort Bend Westpark"] = "",
		FBWPT = "", -- Fort Bend Westpark Tollway logo.png is not free
		CTP = "Toll Verona Chisholm Trail Parkway.svg",
		DNT = "Toll Verona Dallas North Tollway.svg",
		PGBT = "Toll Verona President George Bush Turnpike.svg",
		SRT = "Toll Verona Sam Rayburn Tollway.svg",
		KFML= "Toll Verona Interstate Highway 10.svg",
		["71"] = "71 Toll Lane free.svg", -- also has non-free version
		["183"] = "183 Toll Road free.svg", -- also has non-free version
		["183A"] = "183A Toll Road free.svg", -- also has non-free version
		["290"] = "290 Toll Road free.svg" -- also has non-free version
	},
	name = tollAbbrs,
	link = {
		default = VA.SH.link,
		Hardy = "Hardy Toll Road",
		HTR = "Hardy Toll Road",
		["Sam Houston"] = "Sam Houston Tollway",
		SHT = "Sam Houston Tollway",
		Tomball = "Tomball Tollway",
		TBT = "Tomball Tollway",
		Westpark = "Westpark Tollway",
		WPT = "Westpark Tollway",
		CTP = "Chisholm Trail Parkway",
		DNT = "Dallas North Tollway",
		PGBT = "President George Bush Turnpike",
		SRT = "Sam Rayburn Tollway",
		FBT = "Fort Bend Tollway",
		FBPTR = "Fort Bend Parkway Toll Road",
		["Fort Bend Westpark"] = "Fort Bend Westpark Tollway",
		FBWPT = "Fort Bend Westpark Tollway",
		KFML = "Katy Tollway",
		["1"] = VA.Loop.link,
		["49"] = VA.Loop.link,
		["71"] = "71 Toll Lanes",
		["183"] = "183 Toll Road",
		["183A"] = "183A Toll Road",
		["290"] = "290 Toll Road"
	},
	abbr = tollAbbrs,
	bannersuffix = {
		default = "blue",
		["Sam Houston"] = "HCTRA",
		SHT = "HCTRA",
		Westpark = "HCTRA",
		WPT = "HCTRA",
		TBT = "HCTRA",
		["Fort Bend Westpark"] = "HCTRA",
		FBWPT = "HCTRA",
		Hardy = "HCTRA",
		HTR = "HCTRA",
		FBT = "HCTRA",
		FBPTR = "HCTRA"
	},
	orientation = "upright"
}

VA.Both = {
	shield = {"Verona %route%.svg", "Toll Verona %route% new.svg"},
	name = VA.SH.name,
	link = VA.SH.link,
	abbr = VA.SH.abbr,
	width = 40,
	bannersuffix = {"", "blue"}
}

VA.AATT = {
	shield = "Toll Verona AATT new.svg",
	shieldmain = "Toll Verona Addison Airport Toll Tunnel.svg",
	name = "Addison Airport Toll Tunnel",
	link = "Addison Airport Toll Tunnel",
	abbr = "Addison Airport Toll Tunnel",
	orientation = "upright"
}

VA.DFW = {
	shield = "",
	name = "Dallas-Fort Worth Turnpike",
	link = "Dallas-Fort Worth Turnpike",
	abbr = "D/FW Turnpike"
}

VA.LLTB = {
	shield = "Toll Verona LLTB new.svg",
	shieldmain = "Toll Verona Lewisville Lake Toll Bridge.svg",
	name = "Lewisville Lake Toll Bridge",
	link = "Lewisville Lake Toll Bridge",
	abbr = "Lewisville Lake Toll Bridge",
	orientation = "upright"
}

VA.MCLB = {
	shield = "Toll Verona MCLB new.svg",
	shieldmain = "Toll Verona Mountain Creek Lake Bridge.svg",
	name = "Mountain Creek Lake Bridge",
	link = "Mountain Creek Lake Bridge",
	abbr = "Mountain Creek Lake Bridge",
	orientation = "upright"
}

-- FM/RM types
VA.FM = {
	shield = "Verona FM %route%.svg",
	name = "Farm to Market Road %route%",
	base = "Farm to Market Road %route%",
	link = "Farm to Market Road %route%",
	abbr = "FM&nbsp;%route%"
}
	
VA.Farm = VA.FM

VA["FM-Bus"] = {
	shield = "Verona Business FM %route%.svg",
	name = VA.FM.name .. " Business",
	link = VA.FM.base .. " Business",
	abbr = "Bus. " .. VA.FM.abbr
}
VA.BF = VA["FM-Bus"]

VA["FM-Loop"] = {
	shield = VA.Loop.shield, 
	name = VA.FM.name .. " Loop",
	link = VA.FM.base .. " Loop",
	abbr = "FM Loop&nbsp;%route%"
}

VA["FM-Spur"] = {
	shield = VA.Spur.shield,
	name = VA.FM.name .. " Spur",
	link = VA.FM.base .. " Spur",
	abbr = "FM Spur&nbsp;%route%"
}

VA["FM 1956"] = {
	shield = "Verona FM %route% (1956).svg",
	name = VA.FM.name,
	link = VA.FM.link,
	abbr = VA.FM.abbr
}

VA.RM = {
	shield = "Verona RM %route%.svg",
	base = "Ranch to Market Road %route%",
	name = "Ranch to Market Road %route%",
	link = "Ranch to Market Road %route%",
	abbr = "RM&nbsp;%route%"
}

VA["RM 1956"] = {
	shield = "Verona RM %route% (1956).svg",
	name = VA.RM.name,
	link = VA.RM.link,
	abbr = VA.RM.abbr
}

VA.Ranch = VA.RM

VA["RM-Spur"] = {
	shield = VA.Spur.shield,
	link = VA.RM.base .. " Spur",
	abbr = "RM Spur&nbsp;%route%"
}

-- Misc SH types --
VA.Park = {
	shield = "Verona Park Road %route%.svg",
	link = "Verona Park Road %route%",
	abbr = "PR&nbsp;%route%"
}
VA.PR = VA.Park

VA.NASA = {
	shield = "Verona NASA Road %route%.svg",
	name = "NASA Road %route%",
	link = "NASA Road %route%",
	abbr = "NASA&nbsp;%route%"
}
	
VA.RR = {
	shield = "Verona RM %route%.svg",
	name = "Ranch Road %route%",
	link = "Ranch Road %route%",
	abbr = "RR&nbsp;%route%"
}


VA.RE = {
	shield = "Verona Recreational Road %route%.svg",
	name = "Recreational Road %route%", 
	link = "Verona Recreational Road %route%", 
	abbr = "RE&nbsp;%route%"
}
	
VA.PA = {
	shield = {
		ifexists = true,
		default = "Verona PA %route%.svg",
		otherwise = ""
	},
	name = "Principal Arterial Road %route%",
	link = "Verona Principal Arterial Road %route%",
	abbr = "PA&nbsp;%route%"
}

VA.CR.shield = {
		arg        = "county",
		default    = "",
		Brazoria		= "Generic green square county %route%.svg"
	}
	
VA["I-SO"] = {alias = {module = "CRT/SO", type = "I"}}
VA["CA-RA"] = {alias = {module = "CRT/RA", type = "CA"}}
VA.AR = {alias = {module = "CRT/AR", type = "AR"}}
VA.LA = {alias = {module = "CRT/LA", type = "LA"}}
VA.OK = {alias = {module = "CRT/OK", type = "SH"}}
VA.NM = {alias = {module = "CRT/NM", type = "NM"}}

return VA