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

Content deleted Content added
browselinks
update module
Line 19:
 
local suffix = " ([dab||%dab%, |]Alabama)"
local maint = "[[Alabama Department of Transportation|ALDOT]]"
 
AL.common = {
browse = "Alabama Highways",
browselinks = {
[1] = "[[List of Interstate Highways in Alabama|Interstate]]",
[2] = "[[List of U.S. Highways in Alabama|U.S.]]",
[3] = "[[List of state routes in Alabama|State]]"
}
 
AL.I.link = { ["185"] = "Interstate 185 (Georgia)",
Line 37 ⟶ 27:
below = "Interstate %route% in Alabama"}}
 
for k, v in pairs(AL) do if k:find ("^I") then
AL.Future 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
AL["US-Truck"].link = "U.S. Route %route% Truck" .. suffix
for k, v in pairs(AL) do if k:find ("^US") then
v.link = AL.US.base .. " " .. spec.name .. suffix
end
end
end
end
end
 
for k, v in pairs(AL) do if k:find ("^US %d") then
AL["US 1926"].shieldmain = "US %route% Alabama 1926.svg"
AL["US 1926"] v.link = AL.US.link
end
AL["US 1948"].shieldmain = "US %route% Alabama 1948.svg"
end
AL["US 1948"].link = AL.US.link
AL["US 1961"].link = AL.US.link
 
AL.SR = {
base = "Alabama State Route %route%",
shield = "Alabama %route%.svg",
shieldmain = "Alabama %route%.svg",
name = "State Route %route%",
link = "Alabama State Route %route% [dab||(%dab%)|]",
Line 65 ⟶ 62:
AL.AL = AL.SR
 
for _,type in ipairs({'SR', 'AL'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
local spec = AL[" aux "][auxType]
AL[type .. "SR-" .. auxType] = {
shield = AL.SR.shield,
shieldmain = AL.SR.shieldmain,
name = AL.SR.name .. " " .. spec.name,
link = AL.SR.base .. " " .. spec.name .. AL[" dab "],
Line 81 ⟶ 77:
end
 
AL.commonSPR = {
AL["AL-Bus"] = AL["SR-Bus"]
shield = "",
name = "State Park Road %route%",
link = "State Park Road %route% (Alabama)",
abbr = "State Park Road %route%"}
 
-- 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
local 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|U.S.]]",
[3] = "[[List of state routes in Alabama|State]]"
}
end
end
 
AL.CR.name = "County Route %route%"
AL.CR.link = {
ifexists = true,
default = "County Route %route% (%county% County, Alabama)"
}
 
AL.Beach = {
Line 97 ⟶ 106:
link = "%route% Beach Express",
abbr = "%route% Beach Express"} --Foley or Baldwin
 
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"}}