Jump to content

Module:Road data/strings/USA/ID

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

-- Idaho
local ID = {}

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

local suffix = " ([dab||%dab%, |]Idaho)"
local maint = "[[Idaho Transportation Department|IDT]]"

ID[" common "] = {
	browse = {
		{link = "State Highways in Idaho", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Idaho", name = "Interstate"},
			{link = "List of U.S. Highways in Idaho", name = "U.S."},
			{link = "List of state highways in Idaho", name = "State"}
		}
	}
}

ID.I.maint = maint
ID.I.link =  {	["15W"]  = "Interstate 15W (Idaho)",
        		["86"]  = "Interstate 86 (Idaho)",
        		["180"] = "Interstate 180 (Idaho)",
        		["184"] = "Interstate 184",
                default = "Interstate %route% in Idaho"}
                           
ID["I 1957"].link = ID.I.link
ID["I 1961"].link = ID.I.link           

ID.BL.link = ID.I.base .. " Business" .. suffix

ID.US.maint = maint
ID.US.name = "U.S. Highway %route%"
ID.US.link = "U.S. Route %route% in Idaho"

ID["US-Alt"].link = ID.US.base .. " Alternate" .. suffix
ID["US-Bus"].link = ID.US.base .. " Business" .. suffix
ID["US-Byp"].link = ID.US.base .. " Bypass" .. suffix
ID["US-Spur"].link = ID.US.base .. " Spur" .. suffix
ID["US-Alt"].name = ID.US.name .. " Alternate"
ID["US-Bus"].name = ID.US.name .. " Business"
ID["US-Byp"].name = ID.US.name .. " Bypass"
ID["US-Spur"].name = ID.US.name .. " Spur"

for _,year in ipairs({"1926", "1948", "1961"}) do
	local oldUSmain = "US " .. year
	ID[oldUSmain].name = ID.US.name
	ID[oldUSmain].link = ID.US.link
end
         
ID.SH = {	shield = "Idaho %route%.svg",
			name = "State Highway %route%",
			link = "Idaho State Highway %route% [dab||(%dab%)|]",
			abbr = "SH-%route%",
			width = "expand"}

ID["SH 1980"] = {	shield = "ID-%route%.svg",
					name = ID.SH.name,
					link = ID.SH.link,
					abbr = ID.SH.abbr,
					width = "square"}

ID["SH 1955"] = {	shield = "Idaho %route% (1955).svg",
					name = ID.SH.name,
					link = ID.SH.link,
					abbr = ID.SH.abbr,
					width = "square"}

ID["SH 1970"] = ID["SH 1955"]

ID["SH 1930"] = {	shield = "Idaho %route% (1930).svg",
					name = ID.SH.name,
					link = ID.SH.link,
					abbr = ID.SH.abbr,
					width = "square"}

ID["SH 1926"] = {	shield = "Idaho %route% (1926).svg",
					name = ID.SH.name,
					link = ID.SH.link,
					abbr = ID.SH.abbr,
					width = "square"}
       
ID.ID = ID.SH

ID["SH-Conn"] = {	shield = ID.SH.shield,
					name = ID.SH.name .. " Connector",
					link = "Idaho State Highway %route% Connector [dab||(%dab%)|]",
					abbr = ID.ID.abbr .. " Conn.",
					banner = "Connector plate.svg",
					width = "expand"}

ID["ID-Conn"] = ID["SH-Conn"]

ID["SH-Bus"] = {	shield = ID.SH.shield,
					name = ID.SH.name .. " Business",
					link = "Idaho State Highway %route% Business [dab||(%dab%)|]",
					abbr = ID.SH.abbr .. " Bus.",
					banner = "Business plate.svg",
					width = "expand"}

ID["ID-Bus"] = ID["SH-Bus"]

ID["SH-Spur"] = {	shield = ID.SH.shield,
					name = ID.SH.name .. " Spur",
					link = "Idaho State Highway %route% Spur [dab||(%dab%)|]",
					abbr = ID.SH.abbr .. " Spur",
					banner = "Spur plate.svg",
					width = "expand"}

ID["ID-Spur"] = ID["SH-Spur"]

ID["SH 1980-Scenic"] = {shield = "ID-Scenic-%route%.svg",
						name = "Scenic " .. ID.SH.name,
						link = ID.SH.link,
						abbr = ID.SH.abbr .. " Scenic",
						width = "square"}

ID.CR.shield = ""

ID.WA = {alias = {module = "USA/WA", type = "SR"}}
ID.OR = {alias = {module = "USA/OR", type = "OR"}}
ID.NV = {alias = {module = "USA/NV", type = "NV"}}
ID.UT = {alias = {module = "USA/UT", type = "SR"}}
ID.WY = {alias = {module = "USA/WY", type = "WY"}}
ID.MT = {alias = {module = "USA/MT", type = "MT"}}
ID.BC = {alias = {module = "CAN/BC", type = "BC"}}

return ID