Jump to content

Module:Road data/strings/USA/GA

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 21:19, 19 February 2021 (update module). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

--[==[
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"]`.
]==]

-- Georgia
local GA = {}

local util = require("Module:Road data/util")
local format = mw.ustring.format
util.addAll(GA, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Georgia)"
local maint = "[[Georgia Department of Transportation|GDOT]]"

GA.I.link = {	hook = "split",
                split = 100,
				above = "Interstate %route% (Georgia)",
                below = "Interstate %route% in Georgia"}

GA.BL.link = "Interstate %route% Business ([dab||%dab%, |]Georgia)"

GA.US.name = "U.S. Highway %route%"
GA.US.link = "U.S. Route %route% in Georgia"

GA["US-Alt"].shield = "US %route% Alternate.svg"
GA["US-Alt"].link = "U.S. Route %route% Alternate ([dab||%dab%, |]Georgia)"
GA["US-Alt"].banner = ""

GA["US-Bus"].shield = "US %route% Business.svg"
GA["US-Bus"].link = "U.S. Route %route% Business ([dab||%dab%, |]Georgia)"
GA["US-Bus"].banner = ""

GA["US-Byp"].shield = "US %route% Bypass.svg"
GA["US-Byp"].link = "U.S. Route %route% Bypass ([dab||%dab%, |]Georgia)"
GA["US-Byp"].banner = ""

GA["US-Conn"].shield = "U.S. Route %route% Connector.svg"
GA["US-Conn"].link = "U.S. Route %route% Connector ([dab||%dab%, |]Georgia)"
GA["US-Conn"].banner = ""

GA["US-Truck"].link = "U.S. Route %route% Truck ([dab||%dab%, |]Georgia)"
                 
GA["US-Temp"].link = "U.S. Route %route% Temporary (%dab%, Georgia)"

for _,year in ipairs({"1926", "1948", "1961"}) do
	GA["US " .. year] = {
		shield = format("US %%route%% (%s).svg", year),
		shieldmain = format("US %%route%% Georgia %s.svg", year),
		base = GA.US.base,
		name = GA.US.name,
		link = GA.US.link,
		abbr = GA.US.abbr,
		width = "square",
	}
end

GA["US 1961"].shieldmain = "US %route% (1961).svg"
                
GA.SR = {
	base = "Georgia State Route %route%",
	shield = {
		hook = "split",
		split = 1000,
		above = "",
		below = "Georgia %route%.svg"
	},
	shieldmain = {
		hook = "split",
		split = 1000,
		above = "",
		below = "Georgia %route%.svg"
	},
	name = "State Route %route%",
	link = "Georgia State Route %route% [dab||(%dab%)|]",
	abbr = "SR&nbsp;%route%",
	width = "expand"
}

GA.GA = GA.SR

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

GA["SR-Alt"].shield = "Georgia %route% Alternate.svg"
GA["SR-Alt"].banner = ""
GA["GA-Alt"] = GA["SR-Alt"]

GA["SR-Bus"].shield = "Georgia %route% Business.svg"
GA["SR-Bus"].banner = ""
GA["GA-Bus"] = GA["SR-Bus"]

GA["SR-Byp"].shield = "Georgia %route% Bypass.svg"
GA["SR-Byp"].banner = ""
GA["GA-Byp"] = GA["SR-Byp"]

GA["SR-Conn"].shield = "Georgia %route% Connector.svg"
GA["SR-Conn"].banner = ""
GA["GA-Conn"] = GA["SR-Conn"]

GA["SR-Loop"] = {
	shield = GA.SR.shield,
	shieldmain = GA.SR.shield,
	name = GA.SR.name .. " Loop",
	link = GA.SR.base .. " Loop [dab||(%dab%)|]",
	abbr = GA.SR.abbr .. " Loop",
	width = "expand"
}
GA["GA-Loop"] = GA["SR-Loop"]

GA["SR-Spur"].shield = "Georgia %route% Spur.svg"
GA["SR-Spur"].banner = ""
GA["GA-Spur"] = GA["SR-Spur"]

GA["GA-Truck"] = GA["SR-Truck"]

GA["SR 1920"] = {	shield = "Georgia %route% (1920).svg",
					name = GA.SR.name,
					link = GA.SR.link,
					abbr = GA.SR.abbr}
         
GA["GA 1920"] = GA["SR 1920"]

GA["SR 1948"] = {shield = "Georgia %route% (1948).svg",
					name = GA.SR.name,
					link = GA.SR.link,
					abbr = GA.SR.abbr}
         
GA["GA 1948"] = GA["SR 1948"] 

GA["SR 1960"] = {	shield = {hook = "splitlen",
                           split = 3,
                           above = "Georgia %route% (1960).svg",
                           below = GA.SR.shield},
					name = GA.SR.name,
					link = GA.SR.link,
					abbr = GA.SR.abbr}
         
GA["GA 1960"] = GA["SR 1960"]

GA.SBR = {shield = "US Bike %route% (M1-8).svg",
	    link = "Georgia State Bicycle Route %route%",
		abbr = "SBR&nbsp;%route%"}
	
GA.CR.shield = ""

return GA