Module:Road data/strings/USA/NE

Documentation for this module may be created at Module:Road data/strings/USA/NE/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 iNElude the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]

-- Nebraska
local NE = {}

local util = require("Module:Road data/util")
local format = mw.ustring.format
util.addAll(NE, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Nebraska)"
local maint = "[[Nebraska Department of Transportation|NEOT]]"

NE.I.link = {
	["76"] = "Interstate 76 (Colorado–Nebraska)",
	["80"] = "Interstate 80 in Nebraska",
	["80S"] = "Interstate 76 (Colorado–Nebraska)",
	["129"] = "Interstate 129",
	["280"] = "Interstate 680 (Nebraska–Iowa)",
	["480"] = "Interstate 480 (Nebraska–Iowa)",
	["680"] = "Interstate 680 (Nebraska–Iowa)",
	default = "Interstate %route% ([dab||%dab%|Nebraska])"
}

NE["I-Future"].link = NE.I.link
NE["I 1957"].link = NE.I.link

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

NE.BL.link = "Interstate %route% Business ([dab||%dab%, |]Nebraska)"

NE.US.name = "U.S. Highway %route%"
NE.US.link = "U.S. Route %route% in Nebraska"

NE["US 1926"].shieldmain = "US %route% Nebraska 1926.svg"
NE["US 1926"].name = NE.US.name
NE["US 1926"].link = NE.US.link
NE["US 1948"].shieldmain = "US %route% Nebraska 1948.svg"
NE["US 1948"].name = NE.US.name
NE["US 1948"].link = NE.US.link
NE["US 1961"].shieldmain = "US %route% Nebraska 1963.svg"
NE["US 1961"].name = NE.US.name
NE["US 1961"].link = NE.US.link
NE["US 1963"] = NE["US 1961"]

NE["US-Alt"].name = NE.US.name .. " Alternate"
NE["US-Alt"].link = NE.US.base .. " Alternate" .. suffix
NE["US-Bus"].name = NE.US.name .. " Business"
NE["US-Bus"].link = NE.US.base .. " Business" .. suffix

NE.N = {
	bases = "Nebraska Highway %route%",
	shield = "N-%route%.svg",
	name = "State Highway %route%",
	link = "Nebraska Highway %route% [dab||(%dab%)|]",
	abbr = "N-%route%",
	width = "expand"
}

NE.NE = NE.N

NE.Link = {
	shield = "N LINK %route%.svg",
	name = "Connecting Link %route%",
	link = "Nebraska Link %route%",
	abbr = "L-%route%"
}

NE.Rec = {
	shield = "N REC %route%.svg",
	name = "Recreation %route%",
	link = "Nebraska Recreation %route%",
	abbr = "R-%route%",
	color = "hist"
}
	  
NE.Spur = {	shield = "N SPUR %route%.svg",
	name = "Spur %route%",
	link = "Nebraska Spur %route%",
	abbr = "S-%route%"
}
	  
NE.SS = {
	shield = "Nebraska State Spur %route%.svg",
	name = "Spur %route%",
	link = "Nebraska State Spur %route%",
	abbr = "Spur %route%",
	width = "wide"
} -- For secondary roads before the spur/link system

for _,year in ipairs({"1926", "1950", "1967"}) do
	NE["N " .. year] = {
		shield = format("N-%%route%% %s.svg", year),
		shieldmain = format("N-%%route%% %s.svg", year),
		name = NE.N.name,
		link = NE.N.link,
		abbr = NE.N.abbr,
		width = "square",
	}
end

NE["NE 1967"] = NE["N 1967"]
NE["NE 1950"] = NE["N 1950"]
NE["NE 1926"] = NE["N 1926"]

NE["N-Bus"] = {
	shield = NE.N.shield,
	name = NE.N.name .. " Business",
	link = "Nebraska Highway %route% Business [dab||(%dab%)|]",
	abbr = NE.N.abbr.." Bus.",
	banner = "Business plate.svg",
	width = "expand"
}
	
NE["NE-Bus"] = NE["N-Bus"]	

NE.CO = {alias = {module = "USA/CO", type = "SH"}}
NE.IA = {alias = {module = "USA/IA", type = "IA"}}
NE.KS = {alias = {module = "USA/KS", type = "K"}}
NE.MO = {alias = {module = "USA/MO", type = "MO"}}
NE.SD = {alias = {module = "USA/SD", type = "SD"}}
NE.WY = {alias = {module = "USA/WY", type = "WY"}}

return NE