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

Content deleted Content added
rm
banner logic
Line 24:
["210"] = "Interstate 210 (Alabama)",
default = {hook = "splitlen",
split = 3,
above = "Interstate %route% (Alabama)",
below = "Interstate %route% in Alabama"}}
 
AL.Future.link = AL.I.link
Line 42:
AL["US 1948"].shieldmain = "US %route% Alabama 1948.svg"
AL["US 1948"].link = AL.US.link
AL["US 1961"].link = AL.US.link
 
AL.SR = { shield = "Alabama %route%.svg",
name base = "Alabama State Route %route%",
link shield = "Alabama State Route %route% [dab||(%dab%)|].svg",
abbr shieldmain = "SRAlabama %route%.svg",
name = "State Route %route%",
width = "expand"}
link = "Alabama State Route %route% Truck [dab||(%dab%)|]",
abbr = "SR %route%",
width = "expand"
}
 
AL.AL = AL.SR
 
for _,type in ipairs({'SR'}) 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["SR-" .. auxType] = {
abbr = AL.SR.abbr .. " Bus.",
AL["SR-Bus"] = { shield = AL.SR.shield,
banner = "Business plate.svg",
shieldmain = AL.SR.shieldmain,
width = "expand"}
name = AL.SR.name .. " Business" .. spec.name,
 
namelink = AL.SR.base .. " " .. spec.name .. AL[" Truckdab "],
AL["SR-Byp"] = {shield = AL.SR.shield,
nameabbr = AL.SR.nameabbr .. " Bypass" .. spec.abbrsuffix,
banner = spec.bannerprefix .. "Truck plate.svg",
link = "Alabama State Route %route% Bypass [dab||(%dab%)|]",
aux = spec.aux,
abbr = AL.SR.abbr .. " Byp.",
width = "expand"},
banner = "By-pass plate.svg",
}
width = "expand"}
end
 
end
AL["SR-Truck"] = { shield = AL.SR.shield,
name = AL.SR.name .. " Truck",
link = "Alabama State Route %route% Truck [dab||(%dab%)|]",
abbr = AL.SR.abbr .. " Truck",
banner = "Truck plate.svg",
width = "expand"}
 
AL["AL-Bus"] = AL["SR-Bus"]
 
AL.CR.name = "County Route %route%"
AL.CR.link = {
ifexists = true,
default = "County Route %route% (%county% County, Alabama)"
}
 
AL.Beach = {
shield = {
ifexists = true,
default = "%route% Beach Express.svg",
otherwise = ""
},
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"}}
Line 95 ⟶ 100:
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