--[==[ 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 Dakotalocal SD =
local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(SD, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]South Dakota)"local suffix2 = " [dab||(%dab%)|]"
SD.I.link = SD.I.law = "
SDCL ยง31-4-%section%"for k, v in pairs(SD) do if k:find ("^I") then v.link = SD.I.link endend
SD.BL.link = SD.I.base .. " Business" .. suffix
for k, v in pairs(SD) do if k:find ("^B%a") then v.link = SD.BL.link endend
SD.DL =
SD.DS =
SD.US.name = "U.S. Highway %route%"SD.US.link = SD.US.law = SD.I.law
for k, v in pairs(SD) do if k:find ("^US %d") then v.name = SD.US.name v.link = SD.US.link endend
for _,auxType in ipairs do local spec = SD[" aux "][auxType] for k, v in pairs(SD) do if k:find (auxType) then if k:find ("^US") then v.name = SD.US.name .. " " .. spec.name v.link = SD.US.base .. " " .. spec.name .. suffix end end endend
SD.SD =
for _,type in ipairs do for _,year in ipairs do SD["SD " .. year] = endend
for _,type in ipairs do for _,auxType in ipairs do local spec = SD[" aux "][auxType] SD[type .. "-" .. auxType] = endend
SD["SD 1960-Spur"] =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(SD) do if k:find ("^%a") then v.maint = "SDDOT" endend
SD.BIA = SD.IA = SD.MN = SD.MT = SD.ND = SD.NE = SD.WY =
return SD