Module:Road data/strings/USA/NC: Difference between revisions

Content deleted Content added
update module
update module
Line 18:
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"
Line 39 ⟶ 43:
 
NC.US.name = "U.S. Highway %route%"
NC.US.link = {
NC.US.link = {["17-1"] = "U.S. Route 17-1 [dab||(%dab%, North Carolina)|]",
["7417-1"] = "U.S. Route 7417-1" [dab||(%dab%,.. North Carolina)|]"suffix,
["11774"] = "U.S. Route 11774" [dab||(%dab%,.. North Carolina)|]"suffix,
["158117"] = "U.S. Route 158117" [dab||(%dab%,.. North Carolina)|]"suffix,
["178158"] = "U.S. Route 178158" [dab||(%dab%,.. North Carolina)|]"suffix,
["258178"] = "U.S. Route 258178" [dab||(%dab%,.. North Carolina)|]"suffix,
["264258"] = "U.S. Route 264258" [dab||(%dab%,.. North Carolina)|]"suffix,
["276264"] = "U.S. Route 276264" [dab||(%dab%,.. North Carolina)|]"suffix,
["311276"] = "U.S. Route 311276" [dab||(%dab%,.. North Carolina)|]"suffix,
["321311"] = "U.S. Route 321311" [dab||(%dab%,.. North Carolina)|]"suffix,
["401321"] = "U.S. Route 401321" [dab||(%dab%,.. North Carolina)|]"suffix,
["521401"] = "U.S. Route 521401" [dab||(%dab%,.. North Carolina)|]"suffix,
["601521"] = "U.S. Route 601521" [dab||(%dab%,.. North Carolina)|]"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"
Line 65 ⟶ 71:
NC["US 1950"] = NC["US 1961"]
 
NC["US-AltToll"].name = NC.US.name .. " Alternate"{
NC["US-Toll"] = { shield = NC.US.shield,
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" .. suffixlink,
abbr = NC.NCUS.abbr},
NC["US-Conn"].name = NC.US.name .. " Connector"
banner = "Toll plate yellow.svg",
NC["US-Conn"].link = NC.US.base .. " Connector" .. suffix
width = "expand"}
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 base = "North Carolina Highway %route%",
link shield = "North Carolina HighwayNC %route% [dab||(%dab%)|].svg",
name = "North Carolina Highway abbr = "NC %route%"},
link = "North Carolina Highway %route% Spur [dab||(%dab%)|]",
 
NC["NC 1921"] = {shield abbr = "NC  %route% 1945.svg",
width = "square"
name = NC.NC.name,
}
link = NC.NC.link,
abbr = NC.NC.abbr}
 
NC["NC 1921"] = {
NC.USBR = { shield = "US BikeNC %route% (M1-9)1945.svg",
name = NC.USNC.name,
link = NC.USNC.link,
link abbr = NC.NC.link,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"]
 
for _,type in ipairs({'US', 'NC'}) do
NC["NC-Bus"] = {shield = NC.NC.shield,
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
name = NC.NC.name .. " Business",
local spec = NC[" aux "][auxType]
link = "North Carolina Highway %route% Business [dab||(%dab%)|]",
NC[type .. "-" .. auxType] = {
abbr = NC.NC.abbr .. " Bus.",
NC["NC-Bus"] = { shield = NC.NC[type].shield,
banner = "Business plate.svg"}
shieldmain = NC[type].shieldmain,
name = NC.NC[type].name .. " Business" .. 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["NCUS-BypAlt"].link = {shieldNC.US.base =.. " Alternate" NC.NC.shield, suffix
nameNC["US-Bus"].link = NC.NCUS.namebase .. " BypassBusiness", .. suffix
NC["US-AltConn"].link = NC.US.base .. " AlternateConnector" .. suffix
link = "North Carolina Highway %route% Bypass [dab||(%dab%)|]",
abbrNC["US-Truck"].link = NC.NCUS.abbrbase .. " BypTruck" .",. suffix
banner = "By-pass plate.svg"}
 
NC["NC-ConnToll"] = {
shield = NC.NC.shield,
name = NC.NC.name .. " Connector",
name link = NC.NC.namelink,
link = "North Carolina Highway %route% Connector [dab||(%dab%)|]",
abbr = NC.NC.abbr .. " Conn.Toll",
banner = "ConnectorToll plate yellow.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.Charlotte = {
NC["NC-Truck"] = {shield = NC.NC.shield,
NC.Charlotte = { shield = "Charlotte Route %route% shield.svg",
name = NC.NC.name .. " Truck",
name = "Charlotte Route %route%",
link = "North Carolina Highway %route% Truck [dab||(%dab%)|]",
link = "Charlotte Route %route%",
abbr = NC.NC.abbr .. " Truck",
abbr = "Charlotte Route %route%"}
banner = "Truck plate.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",
link name = "Blue Ridge Parkway",
abbr 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.USBR = {shield = "US Bike %route% (M1-9).svg",
link = "U.S. Bicycle Route %route%",
abbr = "U.S. Bike Route %route%"}
NC.SR = { abbr = "SR %route%"}