Module:Road data/strings/USA/TX
MyWikiBiz, Author Your Legacy — Tuesday November 26, 2024
< Module:Road data | strings | USA
Jump to navigationJump to searchDocumentation for this module may be created at Module:Road data/strings/USA/TX/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"]`. ]==] -- Texas local TX = {} local util = require("Module:Road data/util") util.addAll(TX, require("Module:Road data/strings/USA")) local suffix = " ([dab||%dab%, |]Texas)" local suffix2 = " [dab||(%dab%)|]" local maint = "[[Texas Department of Transportation|TxDOT]]" TX[" common "] = { browse = { {link = "Texas state highway system", name = "Highways in Texas", bold = true}, { noprint = true, {link = "List of Interstate Highways in Texas", name = "Interstate"}, {link = "List of U.S. Highways in Texas", name = "U.S."}, {link = "List of state highways in Texas", name = "State"}, {link = "Toll roads in Texas", name = "Toll"}, {link = "List of state highway loops in Texas", name = "Loops"}, {link = "List of state highway spurs in Texas", name = "Spurs"}, {link = "List of Farm to Market Roads in Texas", name = "FM/RM"}, {link = "List of Park Roads in Texas", name = "Park"}, {link = "List of Recreational Roads in Texas", name = "Rec"} } } } -- Interstate types TX.I.maint = maint TX.I.link = { ["2"] = "Interstate 2", ["14"] = "Interstate 14", ["27"] = "Interstate 27", ["30"] = "Interstate 30", ["35E"] = "Interstate 35E (Texas)", ["35W"] = "Interstate 35W (Texas)", ["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% (Texas)", below = "Interstate %route% in Texas" } } TX.IH = TX.I TX.BL.shieldmain = "Business Interstate %route% (TX).svg" TX.BL.name = "Business " .. TX.I.name TX.BL.link = "Interstate %route% Business" .. suffix TX.BS.shieldmain = "Business Interstate %route% (TX).svg" TX.BS.name = "Business " .. TX.I.name TX.BS.link = "Interstate %route% Business" .. suffix TX["I-Bus"]=TX.BL TX["I-Toll"].shield = "Toll Texas Interstate Highway %route%.svg" TX["I-Toll"].link = "Interstate %route% Toll" .. suffix TX["I-Express"] = { shield = "%route% Express Lane free.svg", link = TX.I.base .. " Express ".. suffix, abbr = TX.I.abbr .. " Express", banner = "", width = "expand" } TX["I-Future"].shield = TX.I.shield TX["I-Future"].link = TX.I.link TX["I-Future"].banner = "Future plate blue.svg" TX.Future = TX["I-Future"] -- US types TX.US.name = "U.S. Highway %route%" TX.US.link = "U.S. Route %route% in Texas" TX["US 1926"].shieldmain = "US %route% Texas 1926.svg" TX["US 1926"].name = TX.US.name TX["US 1926"].link = TX.US.link TX["US 1948"].shieldmain = "US %route% Texas 1948.svg" TX["US 1948"].name = TX.US.name TX["US 1948"].link = TX.US.link TX["US 1961"].name = TX.US.name TX["US 1961"].link = TX.US.link for _,type in ipairs({'US', 'US 1961'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = TX[" aux "][auxType] TX[type .. "-" .. auxType] = { shield = TX[type].shield, name = spec.name .. " " .. TX[type].name, link = TX[type].base .. " " .. spec.name .. suffix, abbr = TX[type].abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = TX[type].width } end end for _,type in ipairs({'US 1926', 'US 1948'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = TX[" aux "][auxType] TX[type .. "-" .. auxType] = { shield = TX[type].shield, shieldmain = TX[type].shieldmain, name = spec.name .. " " .. TX[type].name, link = TX[type].base .. " " .. spec.name .. suffix, abbr = TX[type].abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = TX[type].width } end end TX["US-Alt-Bus"] = { shield = TX.US.shield, name = TX["US-Alt"].name .. " Business", link = "U.S. Route %route% Alternate Business" .. suffix, abbr = TX["US-Alt"].abbr .. " Bus.", banner = "Business alternate plate.svg", width = "expand" } TX.UA = TX["US-Alt"] TX.BU = TX["US-Bus"] -- SH (main) types TX.SH = { shield = "Texas %route%.svg", shieldmain = { ["249"] = {"Texas %route%.svg", "Tomball Tollway.svg"}, default = "Texas %route%.svg" }, base = "Texas State Highway %route%", name = "State Highway %route%", link = "Texas State Highway %route%" .. suffix2, abbr = "SH %route%" } TX.TX = TX.SH TX["SH-Bus"] = { shield = TX.SH.shield, shieldmain = TX.SH.shieldmain.default, name = "Business " .. TX.SH.name, link = TX.SH.base .. " Business" .. suffix2, abbr = "Bus. " .. TX.SH.abbr, banner = "Business plate.svg" } TX["TX-Bus"] = TX["SH-Bus"] TX["SH-Bus 1969"] = { shield = "Texas Business %route%.svg", name = TX["SH-Bus"].name, link = TX["SH-Bus"].link, abbr = TX["SH-Bus"].abbr, } TX["TX-Bus 1969"] = TX["SH-Bus 1969"] TX["SH-Byp"] = { shield = TX.SH.shield, shieldmain = TX.SH.shieldmain.default, name = TX.SH.name .. " Bypass", link = TX.SH.base .. " Bypass" .. suffix2, abbr = "Byp. " .. TX.SH.abbr, banner = "Bypass plate.svg" } TX["TX-Byp"] = TX["SH-Byp"] TX["SH-Truck"] = { shield = TX.SH.shield.default, name = TX.SH.name .. " Truck", link = TX.SH.base .. " Truck" .. suffix2, abbr = TX.SH.abbr .. " Truck", banner = "Truck plate.svg" } TX["SH-1917"] = { shield = "Texas %route% 1917.svg", name = TX.SH.name, link = TX.SH.link, abbr = TX.SH.abbr } TX["TX-1917"] = TX["SH-1917"] TX["SH-old"] = { shield = "Old Texas %route%.svg", name = TX.SH.name, link = TX.SH.link, abbr = TX.SH.abbr } TX["TX-old"] = TX["SH-old"] TX["SH-1935"] = { shield = "Texas %route% 1935.svg", name = TX.SH.name, link = TX.SH.link, abbr = TX.SH.abbr } TX["TX-1935"] = TX["SH-1935"] TX["SH-Express"] = { shield = "%route% Express Lane free.svg", name = TX.SH.name .. " Express ", link = TX.SH.base .. " Express ".. suffix2, abbr = TX.SH.abbr .. " Express", banner = "" } -- Loop/Spur types TX.Beltway = { shield = "Texas Beltway %route%.svg", shieldmain = { ["8"] = {"Texas Beltway %route%.svg", "Sam Houston Tollway.svg"}, default = "Texas Beltway %route%.svg" }, name = "State Highway Beltway %route%", link = "Texas State Highway Beltway %route%", abbr = "Beltway %route%" } TX.BW = TX.Beltway TX.Loop = { shield = "Texas Loop %route%.svg", base = "Texas State Highway Loop %route%", name = "State Highway Loop %route%", link = { default = "Texas State Highway Loop %route%" .. suffix2, ["1910"] = "Andrews Loop 1910" }, abbr = "Loop %route%"} TX.SL = TX.Loop TX["Loop Dual"] = { shield = {"Texas Loop %route%.svg", "Toll Texas %route% new.svg"}, shieldmain = {"Texas Loop %route%.svg", "Toll Texas %route% new.svg"}, name = TX.Loop.name, link = TX.Loop.link, abbr = TX.Loop.abbr } TX.Spur = { shield = "Texas Spur %route%.svg", base = "Texas State Highway Spur %route%", name = "State Highway Spur %route%", link = "Texas State Highway Spur %route%" .. suffix2, abbr = "Spur %route%" } TX.SS = TX.Spur TX["Loop-Express"] = { shield = { default = TX.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 = TX.Loop.name .. " Express ", link = TX.Loop.base .. " Express ".. suffix2, abbr = TX.Loop.abbr .. " Express", banner = "" } TX["SL-Express"] = TX["Loop-Express"] TX.INTL = { shield = "", name = "International Parkway", link = "International Parkway", abbr = "International Parkway" } TX.IP = TX.INTL local tollAbbrs = { default = TX.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 TX.Toll = { shield = { default = "Toll Texas %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 Texas 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 Texas %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 Texas Chisholm Trail Parkway.svg", DNT = "Toll Texas Dallas North Tollway.svg", PGBT = "Toll Texas President George Bush Turnpike.svg", SRT = "Toll Texas Sam Rayburn Tollway.svg", KFML= "Toll Texas 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 = TX.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"] = TX.Loop.link, ["49"] = TX.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" } TX.Both = { shield = {"Texas %route%.svg", "Toll Texas %route% new.svg"}, name = TX.SH.name, link = TX.SH.link, abbr = TX.SH.abbr, width = 40, bannersuffix = {"", "blue"} } TX.AATT = { shield = "Toll Texas AATT new.svg", shieldmain = "Toll Texas Addison Airport Toll Tunnel.svg", name = "Addison Airport Toll Tunnel", link = "Addison Airport Toll Tunnel", abbr = "Addison Airport Toll Tunnel", orientation = "upright" } TX.DFW = { shield = "", name = "Dallas-Fort Worth Turnpike", link = "Dallas-Fort Worth Turnpike", abbr = "D/FW Turnpike" } TX.LLTB = { shield = "Toll Texas LLTB new.svg", shieldmain = "Toll Texas Lewisville Lake Toll Bridge.svg", name = "Lewisville Lake Toll Bridge", link = "Lewisville Lake Toll Bridge", abbr = "Lewisville Lake Toll Bridge", orientation = "upright" } TX.MCLB = { shield = "Toll Texas MCLB new.svg", shieldmain = "Toll Texas 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 TX.FM = { shield = "Texas FM %route%.svg", name = "Farm to Market Road %route%", base = "Farm to Market Road %route%", link = "Farm to Market Road %route%", abbr = "FM %route%" } TX.Farm = TX.FM TX["FM-Bus"] = { shield = "Texas Business FM %route%.svg", name = TX.FM.name .. " Business", link = TX.FM.base .. " Business", abbr = "Bus. " .. TX.FM.abbr } TX.BF = TX["FM-Bus"] TX["FM-Loop"] = { shield = TX.Loop.shield, name = TX.FM.name .. " Loop", link = TX.FM.base .. " Loop", abbr = "FM Loop %route%" } TX["FM-Spur"] = { shield = TX.Spur.shield, name = TX.FM.name .. " Spur", link = TX.FM.base .. " Spur", abbr = "FM Spur %route%" } TX["FM 1956"] = { shield = "Texas FM %route% (1956).svg", name = TX.FM.name, link = TX.FM.link, abbr = TX.FM.abbr } TX.RM = { shield = "Texas RM %route%.svg", base = "Ranch to Market Road %route%", name = "Ranch to Market Road %route%", link = "Ranch to Market Road %route%", abbr = "RM %route%" } TX["RM 1956"] = { shield = "Texas RM %route% (1956).svg", name = TX.RM.name, link = TX.RM.link, abbr = TX.RM.abbr } TX.Ranch = TX.RM TX["RM-Spur"] = { shield = TX.Spur.shield, link = TX.RM.base .. " Spur", abbr = "RM Spur %route%" } -- Misc SH types -- TX.Park = { shield = "Texas Park Road %route%.svg", link = "Texas Park Road %route%", abbr = "PR %route%", color = "hist" } TX.PR = TX.Park TX.NASA = { shield = "Texas NASA Road %route%.svg", name = "NASA Road %route%", link = "NASA Road %route%", abbr = "NASA %route%" } TX.RR = { shield = "Texas RM %route%.svg", name = "Ranch Road %route%", link = "Ranch Road %route%", abbr = "RR %route%" } TX.RE = { shield = "Texas Recreational Road %route%.svg", name = "Recreational Road %route%", link = "Texas Recreational Road %route%", abbr = "RE %route%", color = "hist" } TX["RE-Spur"] = { shield = TX.Spur.shield, name = TX.RE.name .. " Spur", link = TX.RE.name .. " Spur", abbr = "RE Spur %route%", color = "hist" } TX.PA = { shield = { ifexists = true, default = "Texas PA %route%.svg", otherwise = "" }, name = "Principal Arterial Road %route%", link = "Texas Principal Arterial Road %route%", abbr = "PA %route%" } TX.CR.shield = { arg = "county", default = "", Brazoria = "Generic green square county %route%.svg" } TX.MEX = {alias = {module = "MEX", type = "FH"}} TX["I-AR"] = {alias = {module = "USA/AR", type = "I"}} TX["US-AR"] = {alias = {module = "USA/AR", type = "US"}} TX.AR = {alias = {module = "USA/AR", type = "AR"}} TX.LA = {alias = {module = "USA/LA", type = "LA"}} TX.OK = {alias = {module = "USA/OK", type = "SH"}} TX.NM = {alias = {module = "USA/NM", type = "NM"}} return TX