Module:Road data/strings/USA/NM

--[==[
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")
local format = mw.ustring.format
util.addAll(NM, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]New Mexico)"

NM.I.link =  {hook = "split",
		split = 100,
		above = "Interstate %route% (New Mexico)",
		below = "Interstate %route% in New Mexico"
	}

for k, v in pairs(NM) do if k:find ("^I") then 
	v.link = NM.I.link
	end
end

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

for k, v in pairs(NM) do if k:find ("^BL") then 
	v.link = NM.BL.link
	end
end

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

for k, v in pairs(NM) do if k:find ("^US %d") then 
	v.name = NM.US.name
	v.link = NM.US.link
	end
end

for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
	local spec = NM[" aux "][auxType]
		for k, v in pairs(NM) do if k:find (auxType) then if k:find ("^US") then
			v.name = NM.US.name .. " " .. spec.name
			v.link = NM.US.base .. " " .. spec.name .. " ([dab||%dab%, |]New Mexico)"
			end
		end
	end
end

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

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

	

for _,year in ipairs({"1926", "1932", "1952"}) do
	NM["NM " .. year] = {
		shield = format("New Mexico %%route%% %s.svg", year),
		name = NM.NM.name,
		link = NM.NM.link,
		abbr = NM.NM.abbr,
		width = "square",
	}
end

NM.FR = {shield = "",
		 name = "Frontage Road %route%",
		 link = "List of frontage roads in New Mexico#FR&nbsp;%route%",
		 abbr = "FR %route%"}

NM.SBR = {
	shield = "NM bike %route%.svg",
	name = "New Mexico State Bike Route %route%",
	link = "New Mexico State Bike Route %route%",
	abbr = "SBR&nbsp;%route%",
	orientation = "upright"
}

-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(NM) do if k:find ("^%a") then
	v.maint = "[[New Mexico Department of Transportation|NMDOT]]"
	v.browse = "State Roads in New Mexico"
	v.browselinks = {
		[1] = "[[List of Interstate Highways in New Mexico|Interstate]]",
		[2] = "[[List of U.S. Routes in New Mexico|US]]",
		[3] = "[[List of state roads in New Mexico|State]]",
		[4] = "[[New Mexico Scenic and Historic Byway|Scenic]]"
	}
	end
end

for k, v in pairs(NM) do if k:find ("^%a+ %d") then 
	v.maint = "[[New Mexico State Highway Department]]"
	end
end

         
NM.CR.shield = {
	arg = "county",
	default = "CR %route% jct.svg",
	["Doña Ana"] = ""
}
NM.CR.maint = ""
NM.CR.abbr = {
	arg = "county",
	default = "CR&nbsp;%route%",
	["Quay"] = "QR&nbsp;%route%"
}

return NM

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.