Module:Road data/strings/USA/GA

MyWikiBiz, Author Your Legacy — Tuesday November 26, 2024
< Module:Road data‎ | strings‎ | USA
Revision as of 05:46, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

-- 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 suffix2 = " [dab||(%dab%)|]"
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"

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"

for _,type in ipairs({'US'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Spur"}) do
		local spec = GA[" aux "][auxType]
		GA[type .. "-" .. auxType] = {
			shield = "US %route% " .. spec.name .. ".svg",
			name = GA[type].name .. " " .. spec.name,
			link = GA[type].base .. " " .. spec.name .. suffix,
			abbr = GA[type].abbr .. " " .. spec.abbrsuffix,
			banner = "",
			aux = spec.aux,
			width = GA[type].width
		}
	end
end

GA["US-Truck"] = {
	shield = GA.US.shield,
	name = GA.US.name .. " Truck",
	link = GA.US.base .. " Truck" .. suffix,
	abbr = GA.US.abbr .. " Truck",
	banner = "Truck plate.svg",
	width = GA.US.width
}

for _,type in ipairs({'US 1948', 'US 1961'}) 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].shieldmain,
			name = GA[type].name .. " " .. spec.name,
			link = GA[type].base .. " " .. spec.name .. suffix,
			abbr = GA[type].abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate.svg",
			aux = spec.aux,
			width = GA[type].width
		}
	end
end
                
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 _,year in ipairs({"1920", "1926", "1948", "1960"}) do
	GA["SR " .. year] = {
		shield = format("Georgia %%route%% (%s).svg", year),
		base = GA.SR.base,
		name = GA.SR.name,
		link = GA.SR.link,
		abbr = GA.SR.abbr,
		width = "square",
	}
end

GA["GA 1920"] = GA["SR 1920"]
GA["GA 1948"] = GA["SR 1948"]
GA["GA 1960"] = GA["SR 1960"]

for _,type in ipairs({'SR', 'SR 1960'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Loop", "Spur"}) do
		local spec = GA[" aux "][auxType]
		GA[type .. "-" .. auxType] = {
			shield = "Georgia %route% " .. spec.name .. ".svg",
			name = GA.SR.name .. " " .. spec.name,
			link = GA.SR.base .. " " .. spec.name .. suffix2,
			abbr = GA.SR.abbr .. " " .. spec.abbrsuffix,
			banner = "",
			aux = spec.aux,
			width = GA.SR.width
		}
	end
end

GA["GA-Alt"] = GA["SR-Alt"]
GA["GA-Bus"] = GA["SR-Bus"]
GA["GA-Byp"] = GA["SR-Byp"]
GA["GA-Conn"] = GA["SR-Conn"]
GA["GA-Loop"] = GA["SR-Loop"]
GA["GA-Spur"] = GA["SR-Spur"]
GA["SR 1960-Alt"].shield = "Georgia %route% Alternate (1960).svg"
GA["GA 1960-Alt"] = GA["SR 1960-Alt"]
GA["SR 1960-Bus"].shield = "Georgia %route% Business (1960).svg"
GA["GA 1960-Bus"] = GA["SR 1960-Bus"]
GA["SR 1960-Byp"].shield = "Georgia %route% Bypass (1960).svg"
GA["GA 1960-Byp"] = GA["SR 1960-Byp"]
GA["SR 1960-Conn"].shield = "Georgia %route% Connector (1960).svg"
GA["GA 1960-Conn"] = GA["SR 1960-Conn"]
GA["SR 1960-Loop"].shield = "Georgia %route% Loop (1960).svg"
GA["GA 1960-Loop"] = GA["SR 1960-Loop"]
GA["SR 1960-Spur"].shield = "Georgia %route% Spur (1960).svg"
GA["GA 1960-Spur"] = GA["SR 1960-Spur"]

GA["SR-Truck"] = {
	shield = GA.SR.shield,
	name = GA.SR.name .. " Truck",
	link = GA.SR.base .. " Truck" .. suffix2,
	abbr = GA.SR.abbr .. " Truck",
	banner = "Truck plate.svg",
	width = GA.SR.width
}

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

GA.Byway = {
	shield = "Georgia Scenic Byway.svg",
	name = "%route%",
	link = "List of Maryland Scenic Byways",
	abbr = "%route%",
}

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

return GA