Content deleted Content added
banner logic |
PlanetJuice (talk | contribs) add dual interstate/state route road type |
||
(11 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)",
Line 28 ⟶ 27:
below = "Interstate %route% in Alabama"}}
for k, v in pairs(AL) do if k:find ("^I") then
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
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
end
end
for k, v in pairs(AL) do if k:find ("^US %d") then
end
end
AL["US 1948"].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 56 ⟶ 60:
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,
shieldmain = AL.SR.shieldmain,▼
name = AL.SR.name .. " " .. spec.name,
link = AL.SR.base .. " " .. spec.name .. AL[" dab "],
Line 72 ⟶ 75:
end
AL.SPR = {▼
AL["AL-Bus"] = AL["SR-Bus"]▼
shield = "",▼
name = "State Park Road %route%",▼
link = "State Park Road %route% (Alabama)",▼
}
AL.
name = " abbr = "SR %route%",
AL.CR.link = {▼
default = "County Route %route% (%county% County, Alabama)"▼
}
AL.ALD = 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
name = AL.SR.name,
abbr = AL.SR.abbr
}
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.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.Beach = { --Foley or Baldwin
shield = {
ifexists = true,
Line 87 ⟶ 131:
},
link = "%route% Beach Express",
abbr = "%route% Beach Express"
maint = "Beach Express",
bannersuffix = "green"
}
AL.IAL = { --Infobox covering both Interstate and state hwy
shield = {AL.I.shield, AL.SR.shield},
name = AL.I.name .. " and " .. AL.SR.name,
link = "Interstate %route% (Alabama)",
abbr = "I-%route% / AL &route%",
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"}}
|