Module:Road data/strings/USA/SC 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"]`.]

]

-- South Carolinalocal SC =

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

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

SC.I.link =

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

SC.BL.link = "Interstate %route% Business ([dab||%dab%, |]South Carolina)"

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

SC.US.maint = maintSC.US.name = "U.S. Highway %route%"SC.US.link =

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

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

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

SC["US-Alt-Truck"] =

SC.SC =

for _,type in ipairs do for _,year in ipairs do SC["SC " .. year] = endendSC["SC 1920"].shield = SC["SC 1926"].shieldSC["SC 1971"].shield = "SC-%route%.svg"SC["SC 1971"].width = "expand"SC["SC 1948"] = SC["SC 1971"]

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

for _,type in ipairs do for _,auxType in ipairs do local spec = SC[" aux "][auxType] SC[type .. "-" .. auxType] = endendSC["SC 1948-Alt"] = SC["SC 1971-Alt"] SC["SC 1948-Bus"] = SC["SC 1971-Bus"]SC["SC 1948-Spur"] = SC["SC 1971-Spur"]SC["SC 1948-Temp"] = SC["SC 1971-Temp"]

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(SC) do if k:find ("^%a") then v.maint = "SCDOT" v.browse = "South Carolina State Highway System" v.browselinks = endend

local secName =

SC.Sec =

SC.GA = SC["GA-Spur"] = SC.NC =

return SC