Jump to content

Module:Road data/strings/USA/NV

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

-- Nevada
local NV = {}

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

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

NV[" common "] = {
	browse = {
		{link = "Highways in Nevada", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Nevada", name = "Interstate"},
			{link = "List of U.S. Routes in Nevada", name = "U.S."},
			{link = "List of state routes in Nevada", name = "State"},
			{link = "List of Nevada Scenic Byways", name = "Scenic"}
		}
	}
}

NV.I.maint = maint
NV.I.link = {["11"] = "Interstate 11",
             ["215"] = "Las Vegas Beltway",
             ["515"] = "Interstate 515",
             default = {hook = "split",
                        split = 100,
                        above = "Interstate %route% (Nevada)",
                        below = "Interstate %route% in Nevada"}}
                           
NV["I 1957"].link = NV.I.link
NV["I 1961"].link = NV.I.link           

NV.US.maint = maint
NV.US.link = "U.S. Route %route% in Nevada"
NV["US-Alt"].link = NV.US.base .. " Alternate" .. suffix
NV["US-Bus"].link = NV.US.base .. " Business" .. suffix
NV["US-Spur"].link = NV.US.base .. " Spur" .. suffix
NV["US-Truck"].link = NV.US.base .. " Truck" .. suffix

for _,year in ipairs({"1926", "1948", "1961"}) do
	local oldUSmain = "US " .. year
	NV[oldUSmain].name = NV.US.name
	NV[oldUSmain].link = NV.US.link
end

NV.SR = {shield = "Nevada %route%.svg",
         link = "Nevada State Route %route% [dab||(%dab%)|]",
         abbr = "SR&nbsp;%route%"}

NV.CC = {shield = "Clark County Route %route% NV.svg",
         link = "Clark County %route% [dab||(%dab%)|]",
         abbr = "CC&nbsp;%route%"}
         
NV.CR = {shield = "CR %route% jct.svg",
         link = "County Route %route% ([county||%county% County, |]Nevada)",
         abbr = "CR&nbsp;%route%"}         

NV.NV = NV.SR

return NV