Module:Road data/strings/USA/TX explained

--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]]and enter the following input text:

To inspect the content of this data module when editing, enter the followinginto 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"]`.]

]

-- Texaslocal TX =

local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(TX, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Texas)"local suffix2 = " [dab||(%dab%)|]"

-- Interstate typesTX.I.link = TX.IH = TX.I

for _,auxType in ipairs do local spec = TX[" aux "][auxType] for k, v in pairs(TX) do if k:find (auxType) then if k:find ("^I-") then v.link = "Interstate %route% " .. spec.name .. suffix end endendTX["I-Toll"].shield = "Toll Texas Interstate Highway %route%.svg"TX["I-Express"].shield = "%route% Express Lane free.svg"TX["I-Express"].banner = ""TX["I-Future"].shield = TX.I.shieldTX["I-Future"].link = TX.I.linkTX["I-Future"].banner = "Future plate blue.svg"

TX.BL.shieldmain = "Business Interstate %route% (TX).svg"TX.BL.name = "Business " .. TX.I.nameTX.BL.link = "Interstate %route% Business" .. suffix

for k, v in pairs(TX) do if k:find ("^B%a") then v.shieldmain = TX.BL.shieldmain v.name = TX.BL.name v.link = TX.BL.link endendTX["I-Bus"]=TX.BLTX.BLBS.shieldmain =

-- US typesTX.US.name = "U.S. Highway %route%"TX.US.link = "U.S. Route %route% in Texas"

for k, v in pairs(TX) do if k:find ("^US %d") then v.name = TX.US.name v.link = TX.US.link endend

for _,auxType in ipairs do local spec = TX[" aux "][auxType] for k, v in pairs(TX) do if k:find (auxType) then if k:find ("^US") then v.shieldmain = TX.US.shield v.name = spec.name .. " " .. TX.US.name v.link = TX.US.base .. " " .. spec.name .. suffix v.abbr = TX.US.abbr .. " " .. spec.abbrsuffix end end endendTX.UA = TX["US-Alt"]TX.BU = TX["US-Bus"]

for _,year in ipairs do for _,auxType in ipairs do local type = "US " .. year local spec = TX[" aux "][auxType] TX[type .. "-" .. auxType] = endend

TX["US-Bus"] = TX["Bus-US"] = TX["US-Bus"]

TX["US-Alt-Bus"] =

-- SH (main) typesTX.SH = TX.TX = TX.SH

for _,type in ipairs do for _,auxType in ipairs do local spec = TX[" aux "][auxType] TX[type .. "-" .. auxType] = endend

TX["SH-Bus"] = TX["TX-Bus"] = TX["SH-Bus"]TX["Bus-SH"] = TX["SH-Bus"]TX["Bus-TX"] = TX["SH-Bus"]

TX["SH-Bus 1969"] = TX["TX-Bus 1969"] = TX["SH-Bus 1969"]

for _,type in ipairs do for _,year in ipairs do TX[type .. "-" .. year] = end endendTX["SH-old"].shield = "Old Texas %route%.svg"TX["TX-old"].shield = TX["SH-old"].shield

-- Loop/Spur typesTX.Beltway = TX.BW = TX.Beltway

TX.Loop = TX.SL = TX.Loop

TX.Spur = TX.SS = TX.Spur

-- FM/RM typesTX.FM = TX.Farm = TX.FM

TX.RM = TX.Ranch = TX.RM

for _,type in ipairs do for _,year in ipairs do TX[type .. "-" .. year] = endendTX["FM 1956"] = TX["FM-1956"]

for _,type in ipairs do for _,auxType in ipairs do local spec = TX[" aux "][auxType] TX[type .. "-" .. auxType] = endendTX["FM-Bus"].shield = "Texas Business FM %route%.svg"TX["FM-Loop"].shield = TX.Loop.shieldTX["FM-Spur"].shield = TX.Spur.shield

-- Misc SH types --TX.Park = TX.PR = TX.Park

TX.NASA = TX.RR =

TX.RE =

TX["RE-Spur"] =

TX.PA =

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(TX) do if k:find ("^%a") then v.maint = "TxDOT" endend

for k, v in pairs(TX) do if k:find ("%d") then v.maint = "Texas State Highway Department" endend

TX.INTL = TX.IP = TX.INTL

local tollAbbrs =

--Toll maintlocal BCTRA = "Brazoria County Toll Road Authority"local CTRMA = "Central Texas Regional Mobility Authority"local CTTP = "Central Texas Turnpike Project"local FBCTRA = "Fort Bend County Toll Road Authority"local HCTRA = "Harris County Toll Road Authority"local MCTRA = "Montgomery County Toll Road Authority"local NETRMA = "North East Texas Regional Mobility Authority"local NTTA = "North Texas Tollway Authority"

-- Toll typesTX.Toll =

TX.Both =

TX.AATT =

TX.DFW =

TX.LLTB =

TX.MCLB =

TX["SH-Express"] = TX["Loop Dual"] =

TX["Loop-Express"] = TX["SL-Express"] = TX["Loop-Express"]

TX.CR.shield = TX.CR.maint = ""TX.CR.browse = ""TX.CR.browselinks = "" TX.MEX = TX["I-AR"] = TX["US-AR"] = TX.AR = TX.LA = TX.OK = TX.NM =

return TX