Jump to content

Module:Road data/strings/USA/TN

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 11:59, 16 February 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

-- Tennessee
local TN = {}

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

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

TN.I.link = {
	hook = "split",
	split = 100,
	above = "Interstate %route% (Tennessee)",
	below = "Interstate %route% in Tennessee"
}

TN["I-Future"] .link = TN.I.link
TN.Future=TN["I-Future"]

TN.US.link = {
	["70N"] = "U.S. Route 70N",
	["70S"] = "U.S. Route 70S",
	default = "U.S. Route %route% in Tennessee"
}

TN["US 1926"].shieldmain = "US %route% Tennessee 1926.svg"
TN["US 1926"].link = TN.US.link
TN["US 1948"].shieldmain = "US %route% Tennessee 1948.svg"
TN["US 1948"].link = TN.US.link
TN["US 1961"].link = TN.US.link

TN["US-Alt"].link = TN.US.base .. " Alternate" .. suffix
TN["US-Bus"].link = TN.US.base .. " Business" .. suffix
TN["US-Byp"].link = TN.US.base .. " Bypass" .. suffix
TN["US-Conn"].link = TN.US.base .. " Connector" .. suffix
TN["US-Spur"].link = TN.US.base .. " Spur" .. suffix
TN["US-Scenic"].link = TN.US.base .. " Scenic" .. suffix
TN["US-Truck"].link = TN.US.base .. " Truck" .. suffix

TN.TN = {
	shield = "Tennessee %route%.svg",
	shieldmain = "Tennessee %route%.svg",
	name = "State Route %route%",
	link = "Tennessee State Route %route%",
	abbr = "SR&nbsp;%route%",
	width = "wide"
}

TN.SR = TN.TN

TN.Sec = {
	shield = "Secondary Tennessee %route%.svg",
	shieldmain = "Secondary Tennessee %route%.svg",
	name = TN.TN.name,
	link = TN.TN.link,
	abbr = TN.TN.abbr,
	width = "expand"
}
	
TN.Both = {
	shield = {"Tennessee %route%.svg", "Secondary Tennessee %route%.svg"},
	shieldmain = shield,
	name = TN.TN.name,
	link = TN.TN.link,
	abbr = TN.TN.abbr,
	width = 45
	
}
         
TN.Dual = TN.Both   

TN["SR-Bus"] = {
	shield = TN.SR.shield,
	shieldmain = TN.SR.shield,
	name = TN.TN.name .. " Business",
	link = "Tennessee State Route %route% Business [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Bus.",
	banner = "Business plate.svg",
	width= "wide"
}

TN["SR-Byp"] = {
	shield = TN.SR.shield,
	shieldmain = TN.SR.shield,
	name = TN.TN.name .. " Bypass",
	link = "Tennessee State Route %route% Bypass [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Byp.",
	banner = "Bypass plate.svg",
	width= "wide"
}  	

TN["SR-Truck"] = {
	shield = TN.SR.shield,
	name = TN.TN.name .. " Truck",
	link = "Tennessee State Route %route% Truck [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Truck",
	banner = "MUTCD R14-1.svg",
	width= "wide"
}  	

TN["Sec-Alt"] = {
	shield = {
		["220"] = "Secondary Tennessee %route%A.svg",
		default = TN.Sec.shield
	},
	shieldmain = {
		["220"] = "Secondary Tennessee %route%A.svg",
		default = TN.Sec.shield
	},
	name = TN.TN.name .. " Alternate",
	link = "Tennessee State Route %route% Alternate [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Alt.",
	banner = {
		["220"] = "",
		default = "Alternate plate.svg"
	},
	width= "expand"}
			
TN["Sec-Bus"] = {
	shield = TN.Sec.shield,
	shieldmain = TN.Sec.shield,
	name = TN["SR-Bus"].name,
	link = "Tennessee State Route %route% Business [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Bus.",
	banner = "Business plate.svg",
	width= "expand"
}


TN["Sec-Scenic"] = {
	shield = "Secondary Tennessee %route%.svg",
	shieldmain = "Secondary Tennessee %route%.svg",
	name = TN.TN.name .. " Scenic",
	link = "Tennessee State Route %route% Scenic [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Scenic",
	banner = "Scenic plate Vermont.svg",
	width = "expand"
}

TN["Sec-Truck"] = {
	shield = TN.Sec.shield,
	shieldmain = TN.Sec.shield,
	name = TN["SR-Truck"].name,
	link = "Tennessee State Route %route% Truck [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route% Truck",
	banner = "MUTCD R14-1.svg",
	width= "expand"
}  	

TN.NTP = {
	shield = "Natchez Trace Parkway Logo.gif",
	shieldmain = "Natchez Trace Parkway Logo.gif",
	link = "Natchez Trace Parkway",
	abbr = "Natchez Trace Parkway"
}

TN.GRR.shield = "GreatRiverRoad brown.svg"

TN.AL = {alias = {module = "USA/AL", type = "SR"}}
TN.KY= {alias = {module = "USA/KY", type = "KY"}}
TN.NC = {alias = {module = "USA/NC", type = "NC"}}


--Just for the list

TN.NoPri = {shield = {"Blank5x4.svg", "Secondary Tennessee %route%.svg"},
         link = TN.TN.link,
         abbr = TN.TN.abbr,
         width = 45}   

TN.NoSec = {shield = {"Tennessee %route%.svg", {hook = "split",
	       split = 100,
	       above = "Blank5x4.svg",
	       below = "No image.svg"}},
         link = TN.TN.link,
         abbr = TN.TN.abbr,
         width = 45}     
TN.road = {alias = {module = "USA", type = "road"}}

return TN