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
end
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
local spec = AL[" aux "][auxType]
for k, v in pairs(AL) do if k:find (auxType) then
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
end
end
AL.SR = {
base = "Alabama State Route %route%",
shield = "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 .. "
shield = AL.SR.shield,
name = AL.SR.name .. " " .. spec.name,
link = AL.SR.base .. " " .. spec.name .. AL[" dab "],
Line 81 ⟶ 77:
end
shield = "",▼
name = "State Park Road %route%",▼
link = "State Park Road %route% (Alabama)",▼
▲}
-- 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.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.Beach = {
Line 97 ⟶ 106:
link = "%route% Beach Express",
abbr = "%route% Beach Express"} --Foley or Baldwin
▲ 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"}}
|