Module:Road data/strings/USA/AL

MyWikiBiz, Author Your Legacy — Thursday May 02, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/USA/AL/doc

--[==[
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")
util.addAll(AL, require("Module:Road data/strings/USA"))

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"}}

AL.Future.link = AL.I.link

AL["I-Future"] = AL.Future

AL.US.link = "U.S. Route %route% in Alabama"

AL["US-Alt"].link = "U.S. Route %route% Alternate" .. suffix
AL["US-Bus"].link = "U.S. Route %route% Business" .. suffix
AL["US-Truck"].link = "U.S. Route %route% Truck" .. suffix

AL["US 1926"].shieldmain = "US %route% Alabama 1926.svg"
AL["US 1926"].link = AL.US.link
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 = {
	base = "Alabama State Route %route%",
	shield = "Alabama %route%.svg",
	shieldmain = "Alabama %route%.svg",
	name = "State Route %route%",
	link = "Alabama State Route %route% [dab||(%dab%)|]",
	abbr = "SR %route%",
	width = "expand"
}

AL.AL = AL.SR

for _,type in ipairs({'SR'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
		local spec = AL[" aux "][auxType]
		AL["SR-" .. auxType] = {
			shield = AL.SR.shield,
			shieldmain = AL.SR.shieldmain,
			name = AL.SR.name .. " " .. spec.name,
			link = AL.SR.base .. " " .. spec.name .. AL[" dab "],
			abbr = AL.SR.abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate.svg",
			aux = spec.aux,
			width = "expand",
		}
	end
end

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"}}
AL.GA = {alias = {module = "USA/GA", type = "SR"}}
AL.TN = {alias = {module = "USA/TN", type = "TN"}}
AL.TNSec = {alias = {module = "USA/TN", type = "Sec"}}
AL.MS = {alias = {module = "USA/MS", type = "MS"}}

return AL