Module:Road data/strings/USA/FL

MyWikiBiz, Author Your Legacy — Thursday December 26, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/USA/FL/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"]`.
]==]

-- Florida
local FL = {}

local util = require("Module:Road data/util")
util.addAll(FL, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Florida)"
local suffix2 = " [dab||(%dab%)|]"
local ctdab = " ([county||%county% County, |]Florida)"
local maint = "[[Florida Department of Transportation|FDOT]]"

FL[" common "] = {
	browse = {
		{link = "Florida State Highway System", bold = true},
		{
	noprint = true,
	{link = "List of Interstate Highways in Florida", name = "Interstate"},
	{link = "List of U.S. Routes in Florida", name = "U.S."},
	{link = "List of state roads in Florida", name = "State"},
	{link = "List of former state roads in Florida", name = "Former"},
	{link = "State roads in Florida before 1945", name = "Pre-1945"},
	{link = "List of toll roads in Florida", name = "Toll"},
	{link = "Florida Scenic Highways", name = "Scenic"}
		}
	}
}

FL.I.maint = maint
FL.I.link = {
	["4"] = "Interstate 4",
	["175"] = "Interstate 175",
	default = {
		hook = "splitlen",
		split = 3,
		above = "Interstate %route% (Florida)",
		below = "Interstate %route% in Florida"
	}
}
FL["I 1957"].link = FL.I.link
FL["I 1961"].link = FL.I.link


FL["I-Express"] = {
	shield = FL.I.shield,
	shieldmain = FL.I.shield,
	name = "Interstate %route% Express",
	link = "Interstate %route% Express (Florida)",
	abbr = "I-%route% Express",
	width = "expand"
}

FL.US.maint = maint
FL.US.name = "U.S. Highway %route%"
FL.US.link = {
	["92"] = "U.S. Route 92",
	["192"] = "U.S. Route 192",
	["319"] = "U.S. Route 319",
	["331"] = "U.S. Route 331",
	default = "U.S. Route %route% in Florida"
}

FL["US 1926"].shieldmain = "US %route% Florida 1926.svg"
FL["US 1926"].link = FL.US.link
FL["US 1948"].shieldmain = "US %route% Florida 1948.svg"
FL["US 1948"].link = FL.US.link
FL["US 1961"].shield = "US %route% (FL).svg" --colored shields
FL["US 1961"].link = FL.US.link
FL["US 1964"] = FL["US 1961"]

FL["US-Alt"].link = FL.US.base .. " Alternate" .. suffix
FL["US-Bus"].link = FL.US.base .. " Business" .. suffix
FL["US-Byp"].link = FL.US.base .. " Bypass " .. suffix
FL["US-Truck"].link = FL.US.base .. " Truck " .. suffix

FL["US 1964-Alt"] = {
	shield = "US %route% (FL reversed).svg",
	link = FL["US-Alt"].link,
	name = FL["US-Alt"].name,
	abbr = FL["US-Alt"].link,
	banner = "US %route% Alternate (1956).svg",
	width = "square"
}
FL["US-Alt 1964"] = FL["US 1964-Alt"]

FL["US 1964-Bus"] = {
	shield = "US %route% (FL reversed).svg",
	link = FL["US-Bus"].link,
	name = FL["US-Bus"].name,
	abbr = FL["US-Bus"].link,
	banner = "US %route% Business (1956).svg",
	width = "square"
}
FL["US-Bus 1964"] = FL["US 1964-Bus"]
	
FL["US-Toll"] = {
	shield = FL.US.shield,
	shieldmain = FL.US.shield,
	name = FL.US.name,
	link = FL.US.link,
	abbr = FL.US.abbr .. " Toll",
	banner = "Toll plate.svg",
	width = "expand"
}

FL.SR = {
	shield = "Florida %route%.svg",
	shieldmain = {
		["9B"] = {"Florida %route%.svg", "I-795 (Future).svg"},
		default = "Florida %route%.svg"
	},
	name = "State Road %route%",
	base = "Florida State Road %route%",
	link = "Florida State Road %route%" .. suffix2,
	abbr = "SR&nbsp;%route%",
	width = "expand"
}

FL.FL = FL.SR

FL.Toll = {
	shield = "Toll Florida %route%.svg",
	shieldmain = {
		["538"] = {"Toll Florida %route%.svg", "Poinciana Parkway shield.svg"},
		default = "Toll Florida %route%.svg"
	},
	name = FL.SR.name,
	link = FL.SR.link,
	abbr = FL.SR.abbr,
	orientation = "upright"
}

FL.Both = {
	shield = {"Toll Florida %route%.svg", "Florida %route%.svg"},
	shieldmain = {
		["836"] = {"Toll Florida %route%.svg", "Florida %route%.svg", "I-395.svg"},
		default = {"Toll Florida %route%.svg", "Florida %route%.svg"}
	},
	name = FL.SR.name,
	link = FL.SR.link,
	abbr = FL.SR.abbr,
	width = 45,
	orientation = {"upright", "none"}
}
         
FL.Dual = FL.Both

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

FL.CR.shield = {
	["Old 78"] = "CR 78 jct.svg",
	default = "CR %route% jct.svg"
}
FL.CR.shieldmain = {
	["522"] = {
		arg = "county",
		["Osceola"] = {"[county||%county% |]County %route%.svg", "Osceola Parkway logo.svg"},
		default = "[county||%county% |]County %route%.svg"
	},
	default = "[county||%county% |]County %route%.svg"
}
FL.CR.link = "County Road %route%" .. ctdab

FL["CR-Alt"] = {
	shield = FL.CR.shield,
	shieldmain = FL.CR.shieldmain,
	name = FL.CR.name .. " Alternate",
	link = FL.CR.base .. " Alternate" .. ctdab,
	abbr = FL.CR.abbr .. " Alt.",
	banner = "Alt plate county.svg"
}

FL["CR-Old"] = {
	shield = FL.CR.shield,
	shieldmain = FL.CR.shieldmain,
	name = "Old " .. FL.CR.name ,
	link = "Old " .. FL.CR.link, 
	abbr = "Old " .. FL.CR.abbr,
	banner = "Old plate county.svg"
}

FL["CR-Truck"] = {
	shield = FL.CR.shield,
	shieldmain = FL.CR.shieldmain,
	name = FL.CR.name .. " Truck",
	link = FL.CR.base .. " Truck" .. ctdab,
	abbr = FL.CR.abbr .. " Truck",
	banner = "Truck plate county.svg"
}

FL.SRCR = {
	shield = FL.SR.shield,
	shieldmain = {FL.SR.shield, FL.CR.shieldmain},
	name = FL.SR.name,
	link = FL.SR.link,
	abbr = FL.SR.abbr
}

FL["City"] = {
	shield = "",
	link = "City Road %route% (%dab%, Florida)",
	abbr = "City Road&nbsp;%route%"
}

FL.FLTP = {
	shield = "Florida's Turnpike shield.svg",
	link = "Florida's Turnpike",
	abbr = "Florida's Turnpike",
	bannersuffix = "green"
}

FL.HEFT = {
	shield = FL.FLTP.shield,
	name = "Homestead Extension of Florida's Turnpike",
	link = "Homestead Extension of Florida's Turnpike",
	abbr = FL.FLTP.abbr .. " Extension",
	bannersuffix = "green"
}

FL.AL = {alias = {module = "USA/AL", type = "SR"}}
FL.GA = {alias = {module = "USA/GA", type = "SR"}}
FL.USBR = {alias = {module = "USA", type = "USBR"}}

FL.null = FL.road

return FL