Jump to content

Module:Road data/strings/USA/NM

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

-- New Mexico
local NM = {}

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

local suffix = " ([dab||%dab%, |]New Mexico)"
local maint = "[[New Mexico Department of Transportation|NMDOT]]"

NM.I.link = "Interstate %route% (New Mexico)"

NM.BL.link = "Interstate %route% Business ([dab||%dab%, |]New Mexico)"

NM.US.name = "U.S. Highway %route%"
NM.US.link = "U.S. Route %route% in New Mexico"

NM["US 1926"].shieldmain = "US %route% New Mexico 1926.svg"
NM["US 1926"].name = NM.US.name
NM["US 1926"].link = NM.US.link
NM["US 1948"].shieldmain = "US %route% New Mexico 1948.svg"
NM["US 1948"].name = NM.US.name
NM["US 1948"].link = NM.US.link
NM["US 1961"].name = NM.US.name
NM["US 1961"].link = NM.US.link

NM["US-Alt"].name = NM.US.name .. " Alternate"
NM["US-Alt"].link = NM.US.base .. " Alternate" .. suffix
NM["US-Bus"].name = NM.US.name .. " Business"
NM["US-Bus"].link = NM.US.base .. " Business" .. suffix
NM["US-Conn"].name = NM.US.name .. " Connector"
NM["US-Conn"].link = NM.US.base .. " Connector" .. suffix
NM["US-Spur"].name = NM.US.name .. " Spur"
NM["US-Spur"].link = NM.US.base .. " Spur" .. suffix
NM["US-Truck"].name = NM.US.name .. " Truck"
NM["US-Truck"].link = NM.US.base .. " Truck" .. suffix

NM["US-Hist"].shield = "US %route% (historic).svg"
NM["US-Hist"].link = NM.US.link

NM.NM = {	shield = "New Mexico %route%.svg",
			name = "State Road %route%",
			link = "New Mexico State Road %route% [dab||(%dab%)|]",
			abbr = "NM&nbsp;%route%",
			width = "square"}
         

NM["NM 1926"] = {shield = "New Mexico %route% 1926.svg",
         name = NM.NM.name,
         link = NM.NM.link,
         abbr = NM.NM.abbr}
         

NM["NM 1932"] = {shield = "New Mexico %route% 1932.svg",
         name = NM.NM.name,
         link = NM.NM.link,
         abbr = NM.NM.abbr}
         

NM["NM 1932 Dir"] = {shield = "New Mexico %route% 1932.svg",
         name = NM.NM.name,
         link = NM.NM.link,
         abbr = NM.NM.abbr}
         

NM["NM 1952"] = {shield = "New Mexico %route% 1952.svg",
         name = NM.NM.name,
         link = NM.NM.link,
         abbr = NM.NM.abbr}
         
NM.FR = {shield = "",
		 name = "Frontage Road %route%",
		 link = "List of frontage roads in New Mexico#FR&nbsp;%route%",
		 abbr = "FR %route%"}
         
NM.CR.shield = {arg        = "county",
                   default    = "CR %route% jct.svg",
                   ["Doña Ana"]	= ""}

return NM