Module:Road data/strings/USA/GA explained

--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]]and enter the following input text:

To inspect the content of this data module when editing, enter the followinginto 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"]`.]

]

-- Georgialocal GA =

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

local suffix = " ([dab||%dab%, |]Georgia)"local suffix2 = " [dab||(%dab%)|]"

GA.I.link =

for k, v in pairs(GA) do if k:find ("^I") then v.link = GA.I.link endend

GA.BL.link = "Interstate %route% Business " .. suffix

for k, v in pairs(GA) do if k:find ("^B%a") then v.link = GA.BL.link endend

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

for k, v in pairs(GA) do if k:find ("^US %d") then v.name = GA.US.name v.link = GA.US.link endend

for _,auxType in ipairs do local spec = GA[" aux "][auxType] for k, v in pairs(GA) do if k:find (auxType) then if k:find ("^US") then v.name = GA.US.name .. " " .. spec.name v.link = GA.US.base .. " " .. spec.name .. suffix end end endend

for _,auxType in ipairs do local spec = GA[" aux "][auxType] for k, v in pairs(GA) do if k:find (auxType) then if k:find ("^US") then v.shield = "US %route% " .. spec.name .. ".svg" v.name = GA.US.name .. " " .. spec.name v.link = GA.US.base .. " " .. spec.name .. suffix v.banner = "" end end endend

for _,year in ipairs do for _,auxType in ipairs do local type = "US " .. year local spec = GA[" aux "][auxType] GA[type .. "-" .. auxType] = endend GA.SR = GA.GA = GA.SR

for _,type in ipairs do for _,year in ipairs do GA[type .. " " .. year] = endend

for _,type in ipairs do for _,auxType in ipairs do local spec = GA[" aux "][auxType] GA[type .. "-" .. auxType] = endend

for _,type in ipairs do for _,year in ipairs do for _,auxType in ipairs do local spec = GA[" aux "][auxType] local newType = type .. " " .. year GA[newType .. "-" .. auxType] = end endend

for _,type in ipairs do for _,auxType in ipairs do local spec = GA[" aux "][auxType] GA[type .. "-" .. auxType] = endend

GA["SR-Truck"] =

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

GA.Byway =

GA.SBR =

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(GA) do if k:find ("^%a") then v.maint = "GDOT" v.browse = "Georgia State Routes" v.browselinks = endend GA.CR.shield = ""

return GA