Module:Road data/strings/USA/NC: Difference between revisions
Jump to navigation
Jump to search
m 1 revision imported |
|
(No difference)
|
Latest revision as of 08:22, 1 June 2021
Documentation for this module may be created at Module:Road data/strings/USA/NC/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"]`.
]==]
-- 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" .. suffix,
["74"] = "U.S. Route 74" .. suffix,
["117"] = "U.S. Route 117" .. suffix,
["158"] = "U.S. Route 158" .. suffix,
["178"] = "U.S. Route 178" .. suffix,
["258"] = "U.S. Route 258" .. suffix,
["264"] = "U.S. Route 264" .. suffix,
["276"] = "U.S. Route 276" .. suffix,
["311"] = "U.S. Route 311" .. suffix,
["321"] = "U.S. Route 321" .. suffix,
["401"] = "U.S. Route 401" .. suffix,
["521"] = "U.S. Route 521" .. suffix,
["601"] = "U.S. Route 601" .. suffix,
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-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 = {
base = "North Carolina Highway %route%",
shield = "NC %route%.svg",
shieldmain = {
["106"] = {"Georgia 246.svg", "NC %route%.svg"},
default = "NC %route%.svg",
},
name = {
["106"] = "Georgia State Route 246 and<br>North Carolina Highway %route%",
default = "North Carolina Highway %route%",
},
link = "North Carolina Highway %route% [dab||(%dab%)|]",
abbr = "NC %route%",
width = "square"
}
NC["NC 1921"] = {
shield = "NC %route% 1945.svg",
name = NC.NC.base,
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.base,
link = NC.NC.link,
abbr = NC.NC.abbr
}
NC["NC 1957"] = NC["NC 1949"]
for _,type in ipairs({'US', 'NC'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
local spec = NC[" aux "][auxType]
NC[type .. "-" .. auxType] = {
shield = NC[type].shield,
shieldmain = NC[type].shield,
name = NC[type].base .. " " .. spec.name,
link = NC[type].base .. " " .. spec.name .. NC[" dab "],
abbr = NC[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = NC[type].width
}
end
end
NC["US-Alt"].link = NC.US.base .. " Alternate" .. suffix
NC["US-Bus"].link = NC.US.base .. " Business" .. suffix
NC["US-Conn"].link = NC.US.base .. " Connector" .. suffix
NC["US-Truck"].link = NC.US.base .. " Truck" .. suffix
NC["NC-Toll"] = {
shield = NC.NC.shield,
name = NC.NC.base,
link = NC.NC.link,
abbr = NC.NC.abbr .. " Toll",
banner = "Toll plate yellow.svg"
}
NC.Charlotte = {
shield = "Charlotte Route %route% shield.svg",
name = "Charlotte Route %route%",
link = "Charlotte Route %route%",
abbr = "Charlotte Route %route%"
}
NC.BRP = {
shield = "Blue Ridge Parkway shield.png",
name = "Blue Ridge Parkway",
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%",
orientation = "upright"
}
NC.SR = { abbr = "SR %route%"}
NC.Sec = NC.SR
return NC