Module:Road data/strings/USA/SD

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

-- 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 State Trunk Highway System", 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",
	name = "Interstate %route% Downtown Loop",
	link = "Interstate %route% Downtown ([dab||%dab%, |]South Dakota)",
	abbr = "I-%route% Dwtn.",
	width = "expand"
	
}

SD.DS = {
	shield = "Downtown Spur %route%.svg",
	name = "Interstate %route% Downtown Spur",
	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"}

SD["US 1926"].shieldmain = "US %route% South Dakota 1926.svg"
SD["US 1926"].name = SD.US.name
SD["US 1926"].link = SD.US.link
SD["US 1948"].shieldmain = "US %route% South Dakota 1948.svg"
SD["US 1948"].name = SD.US.name
SD["US 1948"].link = SD.US.link
SD["US 1961"].name = SD.US.name
SD["US 1961"].link = SD.US.link

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

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

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

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

SD["SD-Spur"] = {
	shield = SD.SD.shield,
	name = SD.SD.name .. " Spur",
	link = SD.SD.name .. " Spur" .. suffix2,
	abbr = SD.SD.abbr .. " Spur",
	banner = "Spur plate South Dakota.svg",
	width = "expand"
}

SD["SD 1960-Spur"] = {
	shield = SD["SD 1960"].shield,
	name = SD["SD-Spur"].name,
	link = SD["SD-Spur"].link,
	abbr = SD["SD-Spur"].abbr,
	banner = "Spur plate.svg",
	width = square
}
	
	
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"}}           

return SD