Jump to content

Module:Road data/strings/USA/NC

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

-- North Carolina
local NC = {}

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

local suffix = " ([dab||%dab%, |]North Carolina)"
local maint = "[[North Carolina Department of Transportation|NCDOT]]"

NC.I.link = {	["87"] =  "Interstate 87 (North Carolina)",
                ["485"] = "Interstate 485",
                ["540"] = "Interstate 540 and North Carolina Highway 540",
                ["785"] = "Interstate 785",
                default = {hook = "splitlen",
                           split = 3,
                           above = "Interstate %route% (North Carolina)",
                           below = "Interstate %route% in North Carolina"}}

NC["I-Future"].shield = "I-%route%.svg"
NC["I-Future"].link = NC.I.link
NC["I-Future"].banner = "Future plate blue.svg"

NC.Future = NC["I-Future"]

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

NC.US.name = "U.S. Highway %route%"
NC.US.link = {["17-1"] = "U.S. Route 17-1 [dab||(%dab%, North Carolina)|]",
        		["74"] = "U.S. Route 74 [dab||(%dab%, North Carolina)|]",
        		["117"] = "U.S. Route 117 [dab||(%dab%, North Carolina)|]",
        		["158"] = "U.S. Route 158 [dab||(%dab%, North Carolina)|]",
        		["178"] = "U.S. Route 178 [dab||(%dab%, North Carolina)|]",
        		["258"] = "U.S. Route 258 [dab||(%dab%, North Carolina)|]",
        		["264"] = "U.S. Route 264 [dab||(%dab%, North Carolina)|]",
        		["276"] = "U.S. Route 276 [dab||(%dab%, North Carolina)|]",
        		["311"] = "U.S. Route 311 [dab||(%dab%, North Carolina)|]",
        		["321"] = "U.S. Route 321 [dab||(%dab%, North Carolina)|]",
        		["401"] = "U.S. Route 401 [dab||(%dab%, North Carolina)|]",
        		["521"] = "U.S. Route 521 [dab||(%dab%, North Carolina)|]",
        		["601"] = "U.S. Route 601 [dab||(%dab%, North Carolina)|]",
         		default = "U.S. Route %route% [dab||(%dab%, North Carolina)|in North Carolina]"}

NC["US 1926"].shieldmain = "US %route% North Carolina 1926.svg"
NC["US 1926"].name = NC.US.name
NC["US 1926"].link = NC.US.link
NC["US 1948"].shieldmain = "US %route% North Carolina 1948.svg"
NC["US 1948"].name = NC.US.name
NC["US 1948"].link = NC.US.link
NC["US 1961"].shield = "US %route% North Carolina 1950.svg"
NC["US 1961"].name = NC.US.name
NC["US 1961"].link = NC.US.link
NC["US 1950"] = NC["US 1961"]

NC["US-Alt"].name = NC.US.name .. " Alternate"
NC["US-Alt"].link = NC.US.base .. " Alternate" .. suffix
NC["US-Bus"].name = NC.US.name .. " Business"
NC["US-Bus"].link = NC.US.base .. " Business" .. suffix
NC["US-Conn"].name = NC.US.name .. " Connector"
NC["US-Conn"].link = NC.US.base .. " Connector" .. suffix
NC["US-Truck"].name = NC.US.name .. " Truck"
NC["US-Truck"].link = NC.US.base .. " Truck" .. suffix
         
NC["US-Toll"] = {shield = NC.US.shield,
				name = NC.US.name,
                link = NC.US.link,
                abbr = NC.US.abbr,
                banner = "Toll plate yellow.svg",
                width = "expand"}

NC["US-Toll-Byp"] = {shield = NC.US.shield,
				name = NC.US.name .. " Bypass",
                link = NC["US-Byp"].link,
                abbr = NC["US-Byp"].abbr,
                banner = "By-pass plate white and toll plate yellow.svg",
                width = "expand"}

NC.NC = {shield = "NC %route%.svg",
         name = "North Carolina Highway %route%",
         link = "North Carolina Highway %route% [dab||(%dab%)|]",
         abbr = "NC&nbsp;%route%"}

NC["NC 1921"] = {shield = "NC %route% 1945.svg",
				name = NC.NC.name,
				link = NC.NC.link,
				abbr = NC.NC.abbr}

NC["NC 1945"] = NC["NC 1921"]		
			
NC["NC 1949"] = {shield = "NC %route% 1957.svg",
				name = NC.NC.name,
				link = NC.NC.link,
				abbr = NC.NC.abbr}			

NC["NC 1957"] = NC["NC 1949"]

NC["NC-Bus"] = {shield = NC.NC.shield,
				name = NC.NC.name .. " Business",
                link = "North Carolina Highway %route% Business [dab||(%dab%)|]",
                abbr = NC.NC.abbr .. " Bus.",
                banner = "Business plate.svg"}

NC["NC-Byp"] = {shield = NC.NC.shield,
				name = NC.NC.name .. " Bypass",
                link = "North Carolina Highway %route% Bypass [dab||(%dab%)|]",
                abbr = NC.NC.abbr .. " Byp.",
                banner = "By-pass plate.svg"}

NC["NC-Conn"] = {shield = NC.NC.shield,
				name = NC.NC.name .. " Connector",
                link = "North Carolina Highway %route% Connector [dab||(%dab%)|]",
                abbr = NC.NC.abbr .. " Conn.",
                banner = "Connector plate.svg"}
                
NC["NC-Spur"] = {shield = NC.NC.shield,
				name = NC.NC.name .. " Spur",
                link = "North Carolina Highway %route% Spur [dab||(%dab%)|]",
                abbr = NC.NC.abbr .. " Spur",
                banner = "Spur plate.svg"}
                
NC["NC-Toll"] = {shield = NC.NC.shield,
				name = NC.NC.name,
                link = NC.NC.link,
                abbr = NC.NC.abbr .. " Toll",
                banner = "Toll plate yellow.svg"}

NC["NC-Truck"] = {shield = NC.NC.shield,
				name = NC.NC.name .. " Truck",
                link = "North Carolina Highway %route% Truck [dab||(%dab%)|]",
                abbr = NC.NC.abbr .. " Truck",
                banner = "Truck plate.svg"}
                
NC.Charlotte = {shield = "Charlotte Route %route% shield.svg",
         name = "Charlotte Route %route%",
         link = "Charlotte Route %route%",
         abbr = "Charlotte Route&nbsp;%route%"}

NC.BRP = {shield = "Blue Ridge Parkway shield.png",
	     link = "Blue Ridge Parkway",
	     abbr = "Blue Ridge Parkway"}

NC.NCBR = {shield = "US Bike %route% (M1-8).svg",
        link = "North Carolina Bicycle Route %route%",
        abbr = "NC Bike Route %route%"}

NC.USBR = {shield = "US Bike %route% (M1-9).svg",
        link = "U.S. Bicycle Route %route%",
        abbr = "U.S. Bike Route %route%"}
        
NC.SR = {	abbr = "SR&nbsp;%route%"}

NC.Sec = NC.SR

return NC