Jump to content

Module:Road data/strings/USA/SD

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 00:43, 14 November 2020 (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"]`.
]==]

-- South Dakota
local SD = {}

local util = require("Module:Road data/util")
util.addAll(SD, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]South Dakota)"
local suffix2 = " [dab||(%dab%)|]"
local maint = "[[South Dakota Department of Transportation|SDDOT]]"

SD[" common "] = {
	browse = {
		{name = "South Dakota Highways", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in South Dakota", name = "Interstate"},
			{link = "List of U.S. Highways in South Dakota", name = "U.S."},
			{link = "List of state highways in South Dakota", name = "State"},
		}
	}
}

SD.I.maint = maint
SD.I.link = {	hook = "splitlen",
                        split = 3,
                        above = "Interstate %route% (South Dakota)",
                        below = "Interstate %route% in South Dakota"}
                           
SD["I 1957"].link = SD.I.link
SD["I 1961"].link = SD.I.link           
SD.BL.link = SD.I.base .. " Business" .. suffix
SD.BS.link = SD.I.base .. " Business" .. suffix

SD.DL = {shield = "Downtown Loop %route%.svg",
         link = "Interstate %route% Downtown ([dab||%dab%, |]South Dakota)",
         abbr = "I-%route% Dwtn.",
         width = "expand"}

SD.DS = {shield = "Downtown Spur %route%.svg",
         link = SD.DL.link,
         abbr = SD.DL.abbr,
         width = "expand"}

SD.US.maint = maint
SD.US.name = "U.S. Highway %route%"
SD.US.link = {["14A"] = "U.S. Route 14A (South Dakota)",
			  ["16A"] = "U.S. Route 16A",
              default = "U.S. Route %route% in South Dakota"}

for _,year in ipairs({"1926", "1948", "1961"}) do
	local oldUSmain = "US " .. year
	SD[oldUSmain].name = SD.US.name
	SD[oldUSmain].link = SD.US.link
end

SD["US-Alt"].link = SD.US.base .. " Alternate" .. suffix
SD["US-Bus"].link = SD.US.base .. " Business" .. suffix
SD["US-Byp"].link = SD.US.base .. " Bypass" .. suffix
SD["US-Spur"].link = SD.US.base .. " Spur" .. suffix

SD.SD = {shield = "SD %route%.svg",
			base = "South Dakota Highway %route%",
        	link = SD.SD.base .. suffix2,
        	abbr = "SD %route%",
        	width = "expand"}
         
SD["SD 1926"] = {shield = "SD %route% (1926).svg",
                link = SD.SD.link,
                abbr = SD.SD.abbr}

SD["SD 1950"] = {shield = "SD %route% (1950).svg",
                link = SD.SD.link,
                abbr = SD.SD.abbr}
                
SD["SD 1960"] = {shield = "SD %route% (1960).svg",
                link = SD.SD.link,
                abbr = SD.SD.abbr}                

SD["SD-Bus"] = {shield = SD.SD.shield,
                link = SD.SD.base .. " Business" .. suffix2,
                abbr = SD.SD.abbr .. " Bus.",
                banner = "Business plate South Dakota.svg",
                width = "expand"}
                
SD["SD-Truck"] = {shield = SD.SD.shield,
                link = SD.SD.base .. " Business" .. suffix2,
                abbr = SD.SD.abbr .. " Truck",
                banner = "Truck plate South Dakota.svg",
                width = "expand"}

SD["SD-Spur"] = {shield = SD.SD.shield,
                link = SD.SD.base .. " Spur" .. suffix2,
                abbr = SD.SD.abbr .. " Spur",
                banner = "Spur plate South Dakota.svg",
                width = "expand"}
                
SD.CR = {shield = "CR %route% jct.svg",
         link = "",
         abbr = "CR %route%"}
         
SD.IA = {alias = {module = "USA/IA", type = "IA"}}
SD.MN = {alias = {module = "USA/MN", type = "MN"}}                 
SD.MT = {alias = {module = "USA/MT", type = "MT"}}
SD.ND = {alias = {module = "USA/ND", type = "ND"}}
SD.NE = {alias = {module = "USA/NE", type = "NE"}}                 
SD.WY = {alias = {module = "USA/WY", type = "WY"}}           
SD.road = {alias = {module = "USA", type = "road"}}
return SD