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

Content deleted Content added
more
add dual interstate/state route road type
 
(36 intermediate revisions by 8 users not shown)
Line 1:
--Alabama[==[
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"]`.
]==]
 
-- Alabama
local AL = {}
 
local util = require("Module:Road data/util")
AL.I = {shield = "I-%route%.svg",
util.addAll(AL, require("Module:Road data/strings/USA"))
link = "Interstate %route% (Alabama)",
abbr = "I&#8209;%route%",
width = "expand"}
 
local suffix = " ([dab||%dab%, |]Alabama)"
AL.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Alabama",
abbr = "US-%route%",
width = "expand"}
 
AL.I.link = { ["US-Bus185"] = {shield = "USInterstate %route%.svg185 (Georgia)",
link ["210"] = "U.S.Interstate Route %route% Business210 ([dab||%dab%, |]Alabama)",
default abbr= {hook = "US-%route% Bus.splitlen",
split = 3,
banner = "Business plate.svg",
above = "Interstate %route% (Alabama)",
width = "expand"}
below = "Interstate %route% in Alabama"}}
 
for k, v in pairs(AL) do if k:find ("^I") then
AL["US-Alt"] = {shield = "US %route%.svg",
v.link = AL.I.link
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Alabama)",
end
abbr = "US-%route% Alt.",
end
banner = "Alt plate.svg",
width = "expand"}
 
AL[".US-Truck"] = {shield.link = "USU.S. Route %route%.svg in Alabama",
link = "U.S. Route %route% Truck ([dab||%dab%, |]Alabama)",
abbr = "US-%route% Truck",
banner = "Truck plate.svg",
width = "expand"}
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
AL["US 1926"] = {shield = "US %route% Alabama 1926.svg",
local spec = AL[" aux "][auxType]
link = "U.S. Route %route% in Alabama",
for k, v in pairs(AL) do if k:find (auxType) then if k:find ("^US") then
abbr = "US&nbsp;%route%",
v.link = AL.US.base .. " " .. spec.name .. suffix
width = "US1926"}
end
end
end
end
 
for k, v in pairs(AL) do if k:find ("^US %d") then
AL.SR = {shield = "Alabama %route%.svg",
v.link = AL.US.link
link = "Alabama State Route %route% [dab||(%dab%)|]",
end
abbr = "SR-%route%",
end
width = "expand"}
 
AL.SR = {
base = "Alabama State Route %route%",
shield = "Alabama %route%.svg",
name = "State Route %route%",
link = "Alabama State Route %route% [dab||(%dab%)|]",
abbr = "SR %route%",
width = "expand"
}
 
AL.AL = AL.SR
 
for _,type in ipairs({'SR', 'AL'}) do
AL["SR-Bus"] = {shield = "Alabama %route%.svg",
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
link = "Alabama State Route %route% Business [dab||(%dab%)|]",
local spec = AL[" aux "][auxType]
abbr = "SR-%route% Bus.",
AL[type .. "-" .. auxType] = {
banner = "Business plate.svg",
shield = AL.SR.shield,
width = "expand"}
name = AL.SR.name .. " " .. spec.name,
link = AL.SR.base .. " " .. spec.name .. AL[" dab "],
abbr = AL.SR.abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand",
}
end
end
 
AL.SPR = {
shield = "",
name = "State Park Road %route%",
link = "State Park Road %route% (Alabama)",
abbr = "State Park Road %route%"
}
 
AL.SRD = {
name = "State Route %route%",
abbr = "SR %route%",
}
AL.ALD = AL.SRD
AL["SR-Hidden"] = AL.SRD
AL["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"] = {
shield = "Alabama %route% (1960).svg",
name = AL.SR.name,
link = AL.SR.link,
abbr = AL.SR.abbr
}
AL["AL 1960"] = AL["SR 1960"]
 
AL.OSR = {
AL["SR-Byp"] = {shield = "Alabama %route%.svg",
link name = "Alabama State RouteRoad %route% Bypass [dab||(%dab%)|]",
abbr = "SR- %route% Byp.",
link = "State Road %route% (Alabama pre-1928[dab||, %dab%|])"
banner = "Bypass plate.svg",
}
width = "expand"}
AL.OAL = AL.OSR
AL["Old-SR"] = AL.OSR
AL["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 maint
AL["SR-Truck"] = {shield = "Alabama %route%.svg",
for k, v in pairs(AL) do if k:find ("^%a") then
link = "Alabama State Route %route% Truck [dab||(%dab%)|]",
v.maint = "[[Alabama Department of Transportation|ALDOT]]"
abbr = "SR-%route% Truck",
v.browse = "Alabama Highways"
banner = "Truck plate.svg",
v.browselinks = {
width = "expand"}
[1] = "[[List of Interstate Highways in Alabama|Interstate]]",
[2] = "[[List of U.S. Highways in Alabama|US]]",
[3] = "[[List of state routes in Alabama|State]]"
}
end
end
 
AL.CR.name = "County Route %route%"
AL["AL-Bus"] = AL["SR-Bus"]
AL.CR.maint = ""
 
AL.CRBeach = {shield = "CR--Foley %route%or jct.svg",Baldwin
shield = {
link = "{{#ifexist:County Route {{{num}}} ({{{county}}} County, Alabama)|County Route {{{num}}} ({{{county}}} County, Alabama)|none}}",
ifexists = true,
abbr = "CR-%route%"}
default = "%route% Beach Express.svg",
otherwise = ""
},
link = "%route% Beach Express",
abbr = "%route% Beach Express",
maint = "Beach Express",
bannersuffix = "green"
}
 
AL.IAL = { --Infobox covering both Interstate and state hwy
AL.FBE = {shield = "",
shield = {AL.I.shield, AL.SR.shield},
link = "Foley Beach Express",
shieldmain = {AL.I.shieldmain, AL.SR.shield},
abbr = "Foley Beach Express"}
name = AL.I.name .. " and " .. AL.SR.name,
link = "Interstate %route% (Alabama)",
abbr = "I-%route% / AL &route%",
bannersuffix = {"blue", ""}
}
 
AL.SPRFL = {shieldalias = {module = "USA/FL", type = "SR"}}
AL.GA = {alias = {module = "USA/GA", type = "SR"}}
link = "State Park Road {{{num}}} (Alabama)",
AL.TN = {alias = {module = "USA/TN", type = "TN"}}
abbr = "State Park Road {{{num}}}"}
AL.TNSec = {alias = {module = "USA/TN", type = "Sec"}}
AL.MS = {alias = {module = "USA/MS", type = "MS"}}
 
return AL