Module:Road data/strings/USA/NC
MyWikiBiz, Author Your Legacy — Friday November 22, 2024
< Module:Road data | strings | USA
Jump to navigationJump to searchDocumentation 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 = require("Module:Road data/strings/USA") local util = require("Module:Road data/util") local format = mw.ustring.format local suffix = " [dab||(%dab%, North Carolina)|]" local suffix2 = " [dab||(%dab%)|]" 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]" } for _,year in ipairs({"1926", "1948", "1950", "1961"}) do NC["US " .. year] = { shield = format("US %%route%% (%s).svg", year), shieldmain = format("US %%route%% North Carolina %s.svg", year), base = NC.US.base, name = NC.US.name, link = NC.US.link, abbr = NC.US.abbr, width = "square", } end NC["US 1950"].shield = "US %route% North Carolina 1950.svg" NC["US 1961"].shieldmain = "US %route% (1961).svg" NC.NC = { base = "North Carolina Highway %route%", shield = "NC %route%.svg", shieldmain = { ["106"] = {"Georgia 246.svg", "NC %route%.svg"}, default = "NC %route%.svg", }, name = { default = "North Carolina Highway %route%", ["106"] = "Georgia State Route 246 and<br>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', 'US 1926', 'US 1948', 'US 1950', 'US 1961'}) 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].shieldmain, name = NC[type].name .. " " .. spec.name, link = NC[type].base .. " " .. spec.name .. suffix, abbr = NC[type].abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = NC[type].width } end end 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" } for _,type in ipairs({'NC'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = NC[" aux "][auxType] NC["NC-" .. auxType] = { shield = NC.NC.shield, shieldmain = NC.NC.shieldmain, name = "North Carolina Highway %route%" .. " " .. spec.name, link = NC.NC.base .. " " .. spec.name .. suffix2, abbr = NC.NC.abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = NC.NC.width } end end 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