Module:Road data/strings/USA/AZ 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"]`.]

]

-- Arizonalocal AZ =

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

local suffix = " ([dab||%dab%, |]Arizona)"local maint = "ADOT"

AZ.I.link =

AZ["I 1957"].shield = "I-%route% (AZ 1957).svg"

for k, v in pairs(AZ) do if k:find ("^I") then v.link = AZ.I.link endend

AZ.BL.link = "Interstate %route% Business" .. suffixAZ.BL.abbr = "BL %route%"AZ.BS.link = "Interstate %route% Business Spur" .. suffixAZ.BS.name = "Interstate %route% Business Spur"AZ.BS.abbr = "BS %route%"

AZ["BL 1957"].shield = "Business Loop %route% (AZ 1957).svg"AZ["BL 1957"].name = "Interstate %route% Business"AZ["BL 1957"].link = AZ.BL.linkAZ["BS 1957"].shield = "Business Spur %route% (AZ 1957).svg"AZ["BS 1957"].name = "Interstate %route% Business Spur"AZ["BS 1957"].link = AZ.BS.link

AZ.US.link = "U.S. Route %route% [dab||(%dab%, Arizona)|in Arizona]"

for _,auxType in ipairs do local spec = AZ[" aux "][auxType] for k, v in pairs(AZ) do if k:find (auxType) then if k:find ("^US") then v.link = AZ.US.base .. " " .. spec.name .. suffix end end endend

AZ["US-Alt"].shield = AZ["US-Alt"].link = AZ["US-Alt"].abbr = AZ["US-Alt"].banner = AZ["US-Temp"].name = AZ.US.name .. "T"AZ["US-Temp"].abbr = "US %route%T"

AZ["US-Hist"].shieldmain = AZ["US-Hist"].name = AZ["US-Hist"].link = "Historic U.S. Route %route% (Arizona)"AZ["US-Hist"].orientation = ""AZ["US-Hist"].width = "expand"

AZ["US 1941"] = --"US 1941" is only meant for use on major intersection lists depicting alignments or highways after 1941.Photographs and state highway maps suggest this type of shield was used on guide signage after 1941while the standard 1926 shield with the state name was used for reassurance markers.

AZ["US Pre-1956"] = AZ["US 1941"]AZ["US 1948"] = AZ["US 1941"]

AZ["US 1956 W"] =

AZ["US 1956 E"] =

AZ["US 1956 N"] =

AZ["US 1956 S"] =

AZ["US 1956"] =

AZ["US 1960 Even"] =

AZ["US 1960 Odd"] =

AZ["US 1960 N"] =

AZ["US 1960 S"] =

AZ["US 1960 W"] =

AZ["US 1960 E"] =

AZ["US 1963"] =

AZ["US 1974"] = --"US 1974" is only meant for use on infoboxes for U.S. Highways decommissioned after 1974 and before 1991.This was the year the ASHD became part of ADOT.

AZ["US 1961"] = AZ["US 1963"]

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

AZ["US 1926-Alt"] =

AZ["US 1926-Temp"] =

AZ["US 1941-Alt"] =

AZ["US Pre-1956-Alt"] = AZ["US 1941-Alt"]AZ["US 1948-Alt"] = AZ["US 1941-Alt"]

AZ["US 1941-Bus"] =

AZ["US 1948-Bus"] = AZ["US 1941-Bus"]AZ["US Pre-1956-Bus"] = AZ["US 1941-Bus"]

AZ["US 1956-Alt"] =

AZ["US 1963-Bus"] =

AZ["US 1963-Alt"] = AZ["US 1963-Truck"] =

AZ["US 1963-Spur"] =

for k, v in pairs(AZ) do if k:find ("^US") then v.nbrowse = AZ.US.nbrowse v.nbrowselinks = AZ.US.nbrowselinks endend

AZ.SR = AZ.AZ = AZ.SR

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

AZ.SR.link =

AZ["SR-Alt"].name = "State Route %route%A"AZ["SR-Alt"].link = "Arizona State Route %route%A"AZ["SR-Alt"].abbr = "SR %route%A"AZ["AZ-Alt"] = AZ["SR-Alt"]

AZ["SR-Spur"].shield = AZ["SR-Spur"].abbr =

AZ["SR-Temp"].name = AZ["SR-Temp"].abbr = "SR %route%T"AZ["AZ-Temp"] = AZ["SR-Temp"]

AZ["SR-Loop"] = AZ["AZ-Loop"] = AZ["SR-Loop"]AZ.Loop = AZ["SR-Loop"]

AZ["Loop 1987"] =

for _,type in ipairs do for _,year in ipairs do AZ[type .. " " .. year] = endend

AZ["SR 1927"].link =

AZ["AZ 1927"].link = AZ["SR 1927"].link

AZ["SR 1941"].link = AZ["AZ 1941"].link = AZ["SR 1941"].link

AZ["SR 1963"].link = AZ["AZ 1963"].link = AZ["SR 1963"].link

AZ["SR 1973"].link = AZ["AZ 1973"].link = AZ["SR 1973"].link

AZ["SR 1978"].link = AZ["AZ 1978"].link = AZ["SR 1978"].link

AZ["SR 1960 Even"] =

AZ["SR 1960 Odd"] =

AZ["AZ 1960 Even"] = AZ["SR 1960 Even"]

AZ["AZ 1960 Odd"] = AZ["SR 1960 Odd"]

AZ["SR 1960 W"] = AZ["AZ 1960 W"] = AZ["SR 1960 W"]

AZ["SR 1960 E"] = AZ["AZ 1960 E"] = AZ["SR 1960 E"]

AZ["SR 1960 N"] = AZ["AZ 1960 N"] = AZ["SR 1960 N"]

AZ["SR 1960 S"] = AZ["AZ 1960 S"] = AZ["SR 1960 S"]

for k, v in pairs(AZ) do if k:find ("^SR %d") then v.name = AZ.SR.name.default v.link = AZ.SR.link v.abbr = AZ.SR.abbr endend

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

AZ["SR 1941-Alt"].shield = "Arizona %route% 1941.svg"AZ["SR 1956-Alt"].shield = "Arizona %route%A 1956.svg"AZ["SR 1963-Alt"].shield = "Arizona %route%A 1963.svg"AZ["SR 1973-Alt"].shield = "Arizona %route%A 1973.svg"AZ["SR 1978-Alt"].shield = "Arizona %route%A 1973.svg"AZ["SR 1941-Alt"].banner = "Alternate plate 1927.svg"AZ["SR 1956-Alt"].banner = ""AZ["SR 1963-Alt"].banner = ""AZ["SR 1973-Alt"].banner = ""AZ["SR 1978-Alt"].banner = ""AZ["AZ 1941-Alt"] = AZ["SR Pre1956-Alt"]AZ["AZ 1956-Alt"] = AZ["SR 1956-Alt"]AZ["AZ 1963-Alt"] = AZ["SR 1963-Alt"]AZ["AZ 1973-Alt"] = AZ["SR 1973-Alt"]AZ["AZ 1978-Alt"] = AZ["SR 1978-Alt"]AZ["SR Pre-1956"] = AZ["SR 1941"]AZ["SR Pre-1956-Alt"] = AZ["SR 1941-Alt"]AZ["AZ Pre-1956"] = AZ["SR 1941"]AZ["AZ Pre-1956-Alt"] = AZ["SR 1941-Alt"]

AZ["SR 1978-Temp"] =

AZ["AZ 1978-Temp"] = AZ["SR 1978-Temp"]

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

for k, v in pairs(AZ) do if k:match ("^%a*%s19[2-6]") then v.maint = "ASHD" endend

for k, v in pairs(AZ) do if k:match ("1927") then v.maint = "ASHD" endend

for k, v in pairs(AZ) do if k:match ("1941") then v.maint = "ASHD" endend

for k, v in pairs(AZ) do if k:match ("1956") then v.maint = "ASHD" endend

for k, v in pairs(AZ) do if k:match ("1963") then v.maint = "ASHD" endend

AZ.NV = AZ.CA = AZ.NM = AZ.UT = AZ.MEX = AZ.SON =

AZ.MC =

AZ.BIA =

AZ.N =

AZ.Historic =

AZ.Scenic = AZ.Parkway =

return AZ