Jump to content

Module:Road data/strings/USA/TN: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add simple
Tag: Reverted
m Reverted edits by Fredddie (talk) to last version by Imzadi1979
Tags: Rollback Reverted
Line 1: Line 1:
--Tennessee
--[==[
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 TN = {}


TN.I = {shield = "I-%route%.svg",
local util = require("Module:Road data/util")
link = {hook = "split",
util.addAll(TN, require("Module:Road data/strings/USA"))
split = 100,
above = "Interstate %route% (Tennessee)",
below = "Interstate %route% in Tennessee"},
abbr = "I-%route%",
width = "expand"}


TN["I-Future"] = {shield = "I-%route% (Future).svg",
local suffix = " ([dab||%dab%, |]Tennessee)"
link = TN.I.link,
local suffix2 = " [dab||(%dab%)|]"
abbr = "Future I-%route%",
width = "expand"}
TN.Future=TN["I-Future"]


TN.US = {shield = "US %route%.svg",
TN.I.shieldmain = {
link = {["70N"] = "U.S. Route 70N",
["140"] = {"I-%route%.svg", "Tennessee 162.svg"},
["70S"] = "U.S. Route 70S",
default = "I-%route%.svg"
default = "U.S. Route %route% in Tennessee"},
}
abbr = "US&nbsp;%route%",
TN.I.link = {
width = "expand"}
hook = "split",
split = 100,
above = "Interstate %route% (Tennessee)",
below = "Interstate %route% in Tennessee"
}


TN["US-Alt"] = {shield = TN.US.shield,
for k, v in pairs(TN) do if k:find ("^I") then
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Tennessee)",
v.link = TN.I.link
abbr = "US&nbsp;%route% Alt.",
end
banner = "Alt plate.svg",
end
width = "expand"}


TN.US.link = {
TN["US-Bus"] = {shield = TN.US.shield,
["70N"] = "U.S. Route 70N",
link = "U.S. Route %route% Business ([dab||%dab%, |]Tennessee)",
abbr = "US&nbsp;%route% Bus.",
["70S"] = "U.S. Route 70S",
banner = "Business plate.svg",
default = "U.S. Route %route% in Tennessee"
width = "expand"}
}


TN["US-Byp"] = {shield = TN.US.shield,
for k, v in pairs(TN) do if k:find ("^US %d") then
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Tennessee)",
v.link = TN.US.link
abbr = "US&nbsp;%route% Byp.",
end
banner = "By-pass plate.svg",
end
width = "expand"}


TN["US-Truck"] = {shield = TN.US.shield,
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
link = "U.S. Route %route% Truck ([dab||%dab%, |]Tennessee)",
local spec = TN[" aux "][auxType]
abbr = "US&nbsp;%route% Truck",
for k, v in pairs(TN) do if k:find (auxType) then if k:find ("^US") then
banner = "Truck plate.svg",
v.link = TN.US.base .. " " .. spec.name .. suffix
width = "expand"}
end
end
end
end


TN["US-Scenic"] = {shield = TN.US.shield,
TN.SR = {
base = "Tennessee State Route %route%",
link = "U.S. Route %route% Scenic ([dab||%dab%, |]Tennessee)",
shield = "Tennessee %route%.svg",
abbr = "US&nbsp;%route% Scenic",
banner = "Scenic plate.svg",
name = "State Route %route%",
width = "expand"}
link = "Tennessee State Route %route%",
abbr = "SR&nbsp;%route%",
TN.TN = {shield = "Tennessee %route%.svg",
width = "wide"
link = "Tennessee State Route %route%",
}
abbr = "SR&nbsp;%route%",
width = "wide"}


TN.TN = TN.SR
TN.SR = TN.TN


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


TN["SR-Bus"] = {shield = TN.SR.shield,
for _,type in ipairs({'SR', 'Sec'}) do
link = "Tennessee State Route %route% Business [dab||(%dab%)|]",
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Scenic", "Spur", "Truck"}) do
abbr = "SR&nbsp;%route% Bus.",
local spec = TN[" aux "][auxType]
banner = "Business plate.svg",
TN[type .. "-" .. auxType] = {
width= "wide"}
shield = TN[type].shield,
shieldmain = TN[type].shield,
name = TN[type].name .. " " .. spec.name,
link = TN[type].base .. " " .. spec.name .. TN[" dab "],
abbr = TN[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = TN[type].width
}
end
end


TN["SR-Byp"] = {shield = TN.SR.shield,
for _,type in ipairs({'SR', 'TN'}) do
link = "Tennessee State Route %route% Bypass [dab||(%dab%)|]",
for _,year in ipairs({"1918", "1948", "1966"}) do
abbr = "SR&nbsp;%route% Byp.",
TN[type .. " " .. year] = {
shield = "",
banner = "Bypass plate.svg",
base = TN.SR.base,
width= "wide"}
name = TN.SR.name,
link = TN.SR.link,
abbr = TN.SR.abbr,
width = "square",
}
end
end


TN["SR-Truck"].banner = "MUTCD R14-1.svg"
TN["SR-Truck"] = {shield = TN.SR.shield,
link = "Tennessee State Route %route% Truck [dab||(%dab%)|]",
TN["Sec-Alt"].shield = {
["220"] = "Secondary Tennessee %route%A.svg",
abbr = "SR&nbsp;%route% Truck",
banner = "MUTCD R14-1.svg",
default = TN.Sec.shield
width= "wide"}
}
TN["Sec-Alt"].banner = {
["220"] = "",
default = "Alternate plate.svg"
}
TN["Sec-Scenic"].banner = "Scenic plate Vermont.svg"
TN["Sec-Truck"].banner = "MUTCD R14-1.svg"


TN.GRR.shield = "GreatRiverRoad brown.svg"
TN["Sec-Alt"] = {shield = {["220"] = "Secondary Tennessee %route%A.svg",
default = TN.Sec.shield},
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,
link = "Tennessee State Route %route% Business [dab||(%dab%)|]",
abbr = "SR&nbsp;%route% Bus.",
banner = "Business plate.svg",
width= "expand"}


TN["SR 1966"] = {
base = TN.SR.base,
shield = "Tennessee %route% (1966).svg",
name = TN.SR.name,
link = TN.SR.link,
abbr = TN.SR.abbr,
width = "square"
}
TN["TN 1966"] = TN["SR 1966"]


TN["Sec-Scenic"] = {shield = "Secondary Tennessee %route%.svg",
-- add new types above this line if you want it to have the state highway browse and maint
link = "Tennessee State Route %route% Scenic [dab||(%dab%)|]",
for k, v in pairs(TN) do if k:find ("^%a") then
abbr = "SR&nbsp;%route% Scenic",
v.maint = "[[Tennessee Department of Transportation|TDOT]]"
banner = "Scenic plate Vermont.svg",
end
width = "expand"}
end

TN["Sec-Truck"] = {shield = TN.Sec.shield,
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",
link = "Natchez Trace Parkway",
abbr = "Natchez Trace Parkway"}

TN.GRR = {shield = "GreatRiverRoad brown.svg",
link = "Great River Road",
abbr = "Great River Road"}


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

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

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



--Just for the list
--Just for the list


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


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


return TN
return TN

Revision as of 05:14, 10 April 2022

--Tennessee
local TN = {}

TN.I = {shield = "I-%route%.svg",
        link = {hook = "split",
                           split = 100,
                           above = "Interstate %route% (Tennessee)",
                           below = "Interstate %route% in Tennessee"},
        abbr = "I-%route%",
        width = "expand"}

TN["I-Future"] = {shield = "I-%route% (Future).svg",
             link = TN.I.link,
             abbr = "Future I-%route%",
             width = "expand"}
 
TN.Future=TN["I-Future"]

TN.US = {shield = "US %route%.svg",
         link = {["70N"] = "U.S. Route 70N",
         		 ["70S"] = "U.S. Route 70S",
         		 default = "U.S. Route %route% in Tennessee"},
         abbr = "US&nbsp;%route%",
         width = "expand"}

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

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

TN["US-Byp"] = {shield = TN.US.shield,
                link = "U.S. Route %route% Bypass ([dab||%dab%, |]Tennessee)",
                abbr = "US&nbsp;%route% Byp.",
                banner = "By-pass plate.svg",
                width = "expand"}

TN["US-Truck"] = {shield = TN.US.shield,
                link = "U.S. Route %route% Truck ([dab||%dab%, |]Tennessee)",
                abbr = "US&nbsp;%route% Truck",
                banner = "Truck plate.svg",
                width = "expand"}

TN["US-Scenic"] = {shield = TN.US.shield,
                link = "U.S. Route %route% Scenic ([dab||%dab%, |]Tennessee)",
                abbr = "US&nbsp;%route% Scenic",
                banner = "Scenic plate.svg",
                width = "expand"}
                
TN.TN = {shield = "Tennessee %route%.svg",
         link = "Tennessee State Route %route%",
         abbr = "SR&nbsp;%route%",
         width = "wide"}

TN.SR = TN.TN

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

TN["SR-Bus"] = {shield = TN.SR.shield,
				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,
				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,
				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},
				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,
				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",
                    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,
				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",
          link = "Natchez Trace Parkway",
          abbr = "Natchez Trace Parkway"}

TN.GRR = {shield = "GreatRiverRoad brown.svg",
          link = "Great River Road",
          abbr = "Great River Road"}

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