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

Content deleted Content added
CR is inherited
add dual interstate/state route road type
 
(16 intermediate revisions by 4 users not shown)
Line 19:
 
local suffix = " ([dab||%dab%, |]Alabama)"
local maint = "[[Alabama Department of Transportation|ALDOT]]"
 
AL.I.link = { ["185"] = "Interstate 185 (Georgia)",
["210"] = "Interstate 210 (Alabama)",
default = {hook = "splitlen",
split = 3,
above = "Interstate %route% (Alabama)",
below = "Interstate %route% in Alabama"}}
 
for k, v in pairs(AL) do if k:find ("^I") then
AL.Future.link = AL.I.link
v.link = AL.I.link
 
end
AL["I-Future"] = AL.Future
end
 
AL.US.link = "U.S. Route %route% in Alabama"
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
AL["US-Alt"].link = "U.S. Route %route% Alternate" .. suffix
local spec = AL[" aux "][auxType]
AL["US-Bus"].link = "U.S. Route %route% Business" .. suffix
for k, v in pairs(AL) do if k:find (auxType) then if k:find ("^US") then
AL["US-Truck"].link = "U.S. Route %route% Truck" .. suffix
v.link = AL.US.base .. " " .. spec.name .. suffix
end
end
end
end
 
for k, v in pairs(AL) do if k:find ("^US %d") then
AL["US 1926"].link = AL.US.link
AL["US 1948"] v.link = AL.US.link
end
AL["US 1961"].link = AL.US.link
end
 
AL.SR = { shield = "Alabama %route%.svg",
name base = "Alabama State Route %route%",
link shield = "Alabama State Route %route% [dab||(%dab%)|].svg",
abbr name = "SRState Route %route%",
link = "Alabama State Route %route% [dab||(%dab%)|]",
width = "expand"}
abbr = "SR %route%",
width = "expand"
}
 
AL.AL = AL.SR
 
for _,type in ipairs({'SR', 'AL'}) do
AL["SR-Bus"] = {shield = AL.SR.shield,
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
name = AL.SR.name .. " Business",
local spec = AL[" aux "][auxType]
link = "Alabama State Route %route% Business [dab||(%dab%)|]",
AL[type .. "-" .. auxType] = {
abbr = AL.SR.abbr .. " Bus.",
shield = AL.SR.shield,
banner = "Business plate.svg",
name = AL.SR.name .. " " .. spec.name,
width = "expand"}
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 = {
AL["SR-Byp"] = {shield = AL.SR.shield,
shield = "",
name = AL.SR.name .. " Bypass",
link name = "Alabama State RoutePark Road %route% Bypass [dab||(%dab%)|]",
link = "State Park Road %route% (Alabama)",
abbr = AL.SR.abbr .. " Byp.",
abbr = "State Park Road %route%"
banner = "By-pass plate.svg",
}
width = "expand"}
 
AL.SRD = {
AL["SR-Truck"] = { shield = AL.SR.shield,
name = AL.SR.name"State .. "Route Truck%route%",
link abbr = "Alabama State RouteSR %route% Truck [dab||(%dab%)|]",
}
abbr = AL.SR.abbr .. " Truck",
AL.ALD = AL.SRD
banner = "Truck plate.svg",
AL["SR-Hidden"] = AL.SRD
width = "expand"}
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["AL-BusSR 1960"] = AL["SR-Bus"]{
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 = {
name = "State Road %route%",
abbr = "SR %route%",
link = "State Road %route% (Alabama pre-1928[dab||, %dab%|])"
}
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
for k, v in pairs(AL) do if k:find ("^%a") then
v.maint = "[[Alabama Department of Transportation|ALDOT]]"
v.browse = "Alabama Highways"
v.browselinks = {
[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.CR.linkmaint = {ifexists = true,""
 
default = "County Route %route% (%county% County, Alabama)"}
AL.Beach = { --Foley or Baldwin
shield = {
ifexists = true,
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.Beach = {shield = {ifexists = true,
shield = {AL.I.shield, AL.SR.shield},
default = "%route% Beach Express.svg",
shieldmain = {AL.I.shieldmain, AL.SR.shield},
otherwise = ""},
name = AL.I.name .. " and " .. AL.SR.name,
name = "%route% Beach Express",
link = "Interstate %route% Beach Express(Alabama)",
abbr = "I-%route% Beach/ ExpressAL &route%"} --Foley or Baldwin,
bannersuffix = {"blue", ""}
}
 
AL.SPR = {shield = "",
name = "State Park Road %route%",
link = "State Park Road %route% (Alabama)",
abbr = "State Park Road %route%"}
AL.FL = {alias = {module = "USA/FL", type = "SR"}}
AL.GA = {alias = {module = "USA/GA", type = "SR"}}
Line 94 ⟶ 150:
AL.TNSec = {alias = {module = "USA/TN", type = "Sec"}}
AL.MS = {alias = {module = "USA/MS", type = "MS"}}
AL.road = {alias = {module = "USA", type = "road"}}
 
return AL