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

Content deleted Content added
Undid revision 931637021 by MatthewAnderson707 (talk)
update module
Line 1:
--Alabama[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
and enter the following input text:
{{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}}
 
To inspect the content of this data module when editing, enter the following
into the Debug console:
local util = require("Module:Road data/util")
print(util.arrayToString(p))
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]
 
-- Alabama
local AL = {}
 
local util = require("Module:Road data/util")
AL.I = {shield = "I-%route%.svg",
util.addAll(AL, require("Module:Road data/strings/USA"))
link = {["185"] = "Interstate 185 (Georgia)",
 
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"}},
abbr = "I-%route%",
width = "expand"}
 
AL.Future.link = {shield = "AL.I-%route% (Future).svg",link
link = AL.I.link,
abbr = "Future " .. AL.I.abbr,
width = "expand"}
 
AL["I-Future"] = AL.Future
 
AL.US = {shield.link = "USU.S. Route %route%.svg in Alabama",
link = "U.S. Route %route% in Alabama",
abbr = "US %route%",
width = "expand"}
 
AL["US-Bus"] = {shield = AL.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Alabama)",
abbr = AL.US.abbr .. " Bus.",
banner = "Business plate.svg",
width = "expand"}
 
AL["US-Alt"] = {shield = AL.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Alabama)",
abbr = AL.US.abbr .. " Alt.",
banner = "Alt plate.svg",
width = "expand"}
 
AL["US-Truck"] = {shield = AL.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]Alabama)",
abbr = AL.US.abbr .. " Truck",
banner = "Truck plate.svg",
width = "expand"}
 
AL["US 1926-Alt"] = {shield.link = "USU.S. Route %route% (1926).svgAlternate", .. suffix
AL["US-Bus"].link = "U.S. Route %route% Business" ([dab||%dab%,.. |]Alabama)",suffix
link = AL.US.link,
AL["US-Truck"].link = "U.S. Route %route% inTruck" Alabama",.. suffix
abbr = AL.US.abbr,
width = "US1926"}
 
AL["US 19481926"].link = {shield = "AL.US %route% (1948).svg",link
AL["US 1948"].link = AL.US.link,
AL["US 1961"].link = AL.US.link abbr = AL.US.abbr,
width = "square"}
AL["US 1961"] = {shield = "US %route% (1961).svg",
link = AL.US.link,
abbr = AL.US.abbr,
width = "square"}
 
AL.SR = { shield = "Alabama %route%.svg",
name = "State Route %route%",
link = "Alabama State Route %route% [dab||(%dab%)|]",
abbr = "SR %route%",
width = "expand"}
 
AL.AL = AL.SR
 
AL["SR-Bus"] = {shield = AL.SR.shield,
name = AL.SR.name .. " Business",
link = "Alabama State Route %route% Business [dab||(%dab%)|]",
abbr = AL.SR.abbr .. " Bus.",
Line 71 ⟶ 58:
 
AL["SR-Byp"] = {shield = AL.SR.shield,
name = AL.SR.name .. " Bypass",
link = "Alabama State Route %route% Bypass [dab||(%dab%)|]",
abbr = AL.SR.abbr .. " Byp.",
Line 76 ⟶ 64:
width = "expand"}
 
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 = {shield = "CR %route% jct.svg",
name = "County Route %route%",
link = {ifexists = true,
default = "County Route %route% (%county% County, Alabama)"},
Line 92 ⟶ 82:
default = "%route% Beach Express.svg",
otherwise = ""},
name = "%route% Beach Express",
link = "%route% Beach Express",
abbr = "%route% Beach Express"} --Foley or Baldwin
 
AL.SPR = {shield = "",
link name = "State Park Road %route% (Alabama)",
abbr link = "State Park Road %route% (Alabama)"},
abbr = "USState Park Road %route%",}
AL.FL = {alias = {module = "USA/FL", type = "SR"}}