Jump to content

Module:Road data/strings/USA/SC

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 19:23, 7 December 2020 (fix). 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 Carolina
local SC = {}

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

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

SC[" common "] = {
	browse = {
		{link = "South Carolina State Highway System", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in South Carolina", name = "Interstate"},
			{link = "List of U.S. Highways in South Carolina", name = "U.S."},
			{link = "List of state highways in South Carolina", name = "State"},
			{link = "List of South Carolina Scenic Byways", name = "Scenic"}
		}
	}
}

SC.I.maint = maint
SC.I.link = {["185"] = "Interstate 185 (South Carolina)",
             ["326"] = "Interstate 326 (South Carolina)",
             default = {hook = "splitlen",
                        split = 3,
                        above = "Interstate %route%",
                        below = "Interstate %route% in South Carolina"}}
                           
SC["I 1957"].link = SC.I.link
SC["I 1961"].link = SC.I.link           

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

SC.US.maint = maint
SC.US.name = "U.S. Highway %route%"
SC.US.link = {["217"] = "U.S. Route 217 in South Carolina",
			  ["221"] = "U.S. Route 221 in South Carolina",
			  ["278"] = "U.S. Route 278 in South Carolina",
        	  ["301"] = "U.S. Route 301 in South Carolina",
              default = {hook = "splitlen",
                        split = 3,
                        above = "U.S. Route %route%",
                        below = "U.S. Route %route% in South Carolina"}}

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

SC["US-Alt"].link = SC.US.base .. " Alternate" .. suffix
SC["US-Bus"].link = SC.US.base .. " Business" .. suffix
SC["US-Byp"].link = SC.US.base .. " Bypass" .. suffix
SC["US-Conn"].link = SC.US.base .. " Connector" .. suffix
SC["US-Spur"].link = SC.US.base .. " Spur" .. suffix
SC["US-Truck"].link = SC.US.base .. " Truck" .. suffix

--Are all these really necessary? --

SC["US-Alt-Truck"] = {shield = SC.US.shield,
                     link = SC.US.base .. " Alternate Truck" .. suffix,
                     abbr = SC["US-Alt"].abbr .. " Truck",
                     banner = "Alt truck plate.svg",
                     width = 'expand'}

SC["US 1926-Alt"] = {shield = SC["US 1926"].shield,
                     link = SC["US-Alt"].link,
                     abbr = SC["US-Alt"].abbr,
                     banner = "Alternate plate 1927.svg",
                     width = 'US1926'}

SC["US 1948-Alt"] = {shield = SC["US 1948"].shield,
                     link = SC["US-Alt"].link,
                     abbr = SC["US-Alt"].abbr,
                     banner = "Alternate plate 1948.svg",
                     width = 'US1926'}

SC["US 1961-Alt"] = {shield = SC["US 1961"].shield,
                     link = SC["US-Alt"].link,
                     abbr = SC["US-Alt"].abbr,
                     banner = SC["US-Alt"].banner}

SC["US 1926-Bus"] = {shield = SC["US 1926"].shield,
                     link = SC["US-Bus"].link,
                     abbr = SC["US-Bus"].abbr,
                     banner = "Business plate 1927.svg",
                     width = 'US1926'}

SC["US 1948-Bus"] = {shield = SC["US 1948"].shield,
                     link = SC["US-Bus"].link,
                     abbr = SC["US-Bus"].abbr,
                     banner = "Business plate 1948.svg",
                     width = 'US1926'}

SC["US 1961-Bus"] = {shield = SC["US 1961"].shield,
                     link = SC["US-Bus"].link,
                     abbr = SC["US-Bus"].abbr,
                     banner = SC["US-Bus"].banner}

SC.SC = {shield = "South Carolina %route%.svg",
           link = "South Carolina Highway %route%" .. suffix2,
           abbr = "SC&nbsp;%route%",
          width = "wide"}

SC["SC-Alt"] = {shield = SC.SC.shield,
                link = "South Carolina Highway %route% Alternate" .. suffix2,
                abbr = SC.SC.abbr .. " Alt.",
                banner = "Alt plate South Carolina.svg",
                width = "wide"}

SC["SC-Bus"] = {shield = SC.SC.shield,
                link = "South Carolina Highway %route% Business" .. suffix2,
                abbr = SC.SC.abbr .. " Bus.",
                banner = "Business plate South Carolina.svg",
                width = "wide"}

SC["SC-Byp"] = {shield = SC.SC.shield,
                link = "South Carolina Highway %route% Bypass" .. suffix2,
                abbr = SC.SC.abbr .. " Byp.",
                banner = "By-pass plate South Carolina.svg",
                width = "wide"}

SC["SC-Conn"] = {shield = SC.SC.shield,
                link = "South Carolina Highway %route% Connector" .. suffix2,
                abbr = SC.SC.abbr .. " Conn.",
                banner = "Connector plate South Carolina.svg",
                width = "wide"}

SC["SC-Spur"] = {shield = SC.SC.shield,
                link = "South Carolina Highway %route% Spur" .. suffix2,
                abbr = SC.SC.abbr .. " Spur",
                banner = "Spur plate.svg",
                width = "wide"}
                
SC["SC-Truck"] = {shield = SC.SC.shield,
                link = "South Carolina Highway %route% Truck" .. suffix2,
                abbr = SC.SC.abbr .. " Truck",
                banner = "Truck plate South Carolina.svg",
                width = "wide"}      

SC["SC-Temp"] = {shield = SC.SC.shield,
                link = "South Carolina Highway %route% Temporary" .. suffix2,
                abbr = SC.SC.abbr .. " Temp.",
                banner = "Temp plate.svg",
                width = "wide"}      

SC.Sec = {shield = "",
		    link = "",
		    abbr = {hook = "mask",
                  	mask = "Road data/masks/USA/SC",
                  	base = "county",
                  	masked = "number",
                  	default = "S-%number%-%route%"}
                  }

SC["SC 1920"] = {shield = "SC-%route% (1926).svg",
         link = SC.SC.link,
         abbr = SC.SC.abbr}

SC["SC 1920-Alt"] = {shield = SC["SC 1920"].shield,
                     link = SC["SC-Alt"].link,
                     abbr = SC["SC-Alt"].abbr,
                     banner = "Alternate plate 1927.svg"}

SC["SC 1920-Bus"] = {shield = SC["SC 1920"].shield,
                     link = SC["SC-Bus"].link,
                     abbr = SC["SC-Bus"].abbr,
                     banner = "Business plate 1927.svg"}

SC["SC 1920-Spur"] = {shield = SC["SC 1920"].shield,
                     link = SC["SC-Spur"].link,
                     abbr = SC["SC-Spur"].abbr,
                     banner = "Spur plate 1927.svg"}

SC["SC 1971"] = {shield = "SC-%route%.svg",
         link = SC.SC.link,
         abbr = SC.SC.abbr}

SC["SC 1948"] = SC["SC 1971"]         

SC["SC 1971-Alt"] = {shield = SC["SC 1971"].shield,
                     link = SC["SC-Alt"].link,
                     abbr = SC["SC-Alt"].abbr,
                     banner = "Alt plate.svg",
                	width = "expand"}      
                     
SC["SC 1948-Alt"] = SC["SC 1971-Alt"]                     

SC["SC 1971-Bus"] = {shield = SC["SC 1971"].shield,
                     link = SC["SC-Bus"].link,
                     abbr = SC["SC-Bus"].abbr,
                     banner = "Business plate.svg",
                	width = "expand"}      

SC["SC 1948-Bus"] = SC["SC 1971-Bus"]

SC["SC 1971-Spur"] = {shield = SC["SC 1971"].shield,
                     link = SC["SC-Spur"].link,
                     abbr = SC["SC-Spur"].abbr,
                     banner = "Spur plate.svg",
                	width = "expand"}      

SC["SC 1948-Spur"] = SC["SC 1971-Spur"]

SC["SC 1971-Temp"] = {shield = SC["SC 1971"].shield,
                     link = SC["SC-Temp"].link,
                     abbr = SC["SC-Temp"].abbr,
                     banner = "Temp plate.svg",
                	width = "expand"}      

SC["SC 1948-Temp"] = SC["SC 1971-Temp"]

SC.GA = {alias = {module = "USA/GA", type = "GA"}}
SC["GA-Spur"] = {alias = {module = "USA/GA", type = "SR-Spur"}}
SC.NC = {alias = {module = "USA/NC", type = "NC"}}                
SC.road = {alias = {module = "USA", type = "road"}}

return SC