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

]

-- Alabamalocal AL =

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

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

AL.I.link =

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

AL.US.link = "U.S. Route %route% in Alabama"

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

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

AL.SR =

AL.AL = AL.SR

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

AL.SPR =

AL.SRD = AL.ALD = AL.SRDAL["SR-Hidden"] = AL.SRDAL["AL-Hidden"] = AL.SRD--This is for designated state routes along U.S. Highways in Alabama, which are not signed. Meant to streamline existing practices.--

AL["SR 1960"] = AL["AL 1960"] = AL["SR 1960"]

AL.OSR = AL.OAL = AL.OSRAL["Old-SR"] = AL.OSRAL["Old-AL"] = AL.OSR--These are for the state road system Alabama used prior to the 1928 renumbering. Currently, no known examples of the shields for these have been found.--

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

AL.CR.name = "County Route %route%"AL.CR.maint = ""

AL.Beach =

AL.IAL =

AL.FL = AL.GA = AL.TN = AL.TNSec = AL.MS =

return AL