Jump to content

Module:Road data/strings/USA/UT: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Added county routes
update module
Line 1: Line 1:
--Utah
--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
local UT = {}
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
UT.I = {shield = "I-%route%.svg",
into the Debug console:
link = {hook = "splitlen",
local util = require("Module:Road data/util")
split = 3,
print(util.arrayToString(p))
above = "Interstate %route% (Utah)",
To inspect a particular route type, change `p` above to include the route type,
below = "Interstate %route% in Utah"},
e.g., `p.I` and `p["US-Hist"]`.
abbr = "I-%route%",
]==]
width = "expand"}


-- Utah
UT.BL = {shield = "Business Loop %route%.svg",
local UT = {}
link = "Interstate %route% Business ([dab||%dab%, |]Utah)",
abbr = "I-%route% Bus.",
width = "expand"}


local util = require("Module:Road data/util")
UT.BS = {shield = "Business Spur %route%.svg",
util.addAll(UT, require("Module:Road data/strings/USA"))
link = "Interstate %route% Business ([dab||%dab%, |]Utah)",
abbr = "I-%route% Bus.",
width = "expand"}


local suffix = " ([dab||%dab%, |]Utah)"
UT.US = {shield = "US %route%.svg",
local suffix2 = " [dab||(%dab%)|]"
link = "U.S. Route %route% in Utah",
local maint = "[[Utah Department of Transportation|Utah DOT]]"
abbr = "US-%route%",
width = "expand"}


UT["US 1926"] = {shield = "US %route% Utah 1926.svg",
link = UT.US.link,
abbr = UT.US.abbr,
width = "US1926"}


UT.I.link = {
UT["US 1948"] = {shield = "US %route% Utah 1948.svg",
hook = "splitlen",
link = UT.US.link,
split = 3,
abbr = UT.US.abbr,
above = "Interstate %route% (Utah)",
width = "US1926"}
below = "Interstate %route% in Utah"
}


UT["US 1961"] = {shield = "US %route% (1961).svg",
UT.BL.link = "Interstate %route% Business ([dab||%dab%, |]Utah)"
UT.BS.link = "Interstate %route% Business ([dab||%dab%, |]Utah)"
link = UT.US.link,
abbr = UT.US.abbr}


UT.US.link = "U.S. Route %route% in Utah"
UT["US-Alt"] = {shield = UT.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Utah)",
abbr = "US-%route% Alt.",
banner = "Alt plate.svg",
width = "expand"}


UT["US-Bus"] = {shield = UT.US.shield,
UT["US 1926"].shieldmain = "US %route% Utah 1926.svg"
UT["US 1926"].link = UT.US.link
link = "U.S. Route %route% Business ([dab||%dab%, |]Utah)",
abbr = "US-%route% Bus.",
UT["US 1948"].shieldmain = "US %route% Utah 1948.svg"
UT["US 1948"].link = UT.US.link
banner = "Business plate.svg",
UT["US 1961"].link = UT.US.link
width = "expand"}


UT["US-Alt"].link = UT.US.base .. " Alternate" .. suffix
UT.USBR = {alias = {module = "USA", type = "USBR"}}
UT["US-Bus"].link = UT.US.base .. " Business" .. suffix


UT.UT = { shield = {default = "Utah %route%.svg",
UT.UT = {
shield = {
default = "Utah %route%.svg",
["281-320"] = ""},
["281-320"] = ""
},
link = {default = "Utah State Route %route% [dab||(%dab%)|]",
name = "State Route %route%",
link = {
default = "Utah State Route %route% [dab||(%dab%)|]",
["281-320"] = "List of state highways serving Utah state parks and institutions"},
["281-320"] = "List of state highways serving Utah state parks and institutions"},
abbr = {default = "SR-%route%",
abbr = {
default = "SR-%route%",
["281-320"] = "SR-281 to SR-320"}
["281-320"] = "SR-281 to SR-320"
}
}
}


UT.SR = UT.UT
UT.SR = UT.UT


UT["UT 1962"] = { shield = {default = "Utah SR %route%.svg",
UT["UT 1962"] = {
shield = {
default = "Utah SR %route%.svg",
["281-320"] = ""},
["281-320"] = ""
},
link = UT.UT.link,
name = UT.UT.name,
abbr = UT.UT.abbr}
link = UT.UT.link,
abbr = UT.UT.abbr
}


UT["SR 1962"] = UT["UT 1962"]
UT["SR 1962"] = UT["UT 1962"]
Line 72: Line 75:
UT["SR 1966"] = UT["UT 1962"]
UT["SR 1966"] = UT["UT 1962"]


UT["UT 1954"] = { shield = "Utah %route% (1954).svg",
UT["UT 1954"] = {
shield = "Utah %route% (1954).svg",
link = UT.UT.link,
name = UT.UT.name,
link = UT.UT.link,
abbr = "SR-%route%"}
abbr = "SR-%route%"
}


UT["SR 1954"] = UT["UT 1954"]
UT["SR 1954"] = UT["UT 1954"]


UT["UT 1926"] = { shield = "Utah %route% (1926).svg",
UT["UT 1926"] = {
shield = "Utah %route% (1926).svg",
link = UT.UT.link,
name = UT.UT.name,
link = UT.UT.link,
abbr = UT["UT 1954"].abbr}
abbr = UT["UT 1954"].abbr
}


UT["SR 1926"] = UT["UT 1926"]
UT["SR 1926"] = UT["UT 1926"]


UT.BIA = {
UT.CR = {shield = "CR %route% jct.svg",
shield = "Indian Route&nbsp;%route%.svg",
link = "",
abbr = "CR %route%"}
name = "BIA Route&nbsp;%route%",
link = "BIA Route&nbsp;%route%",
UT.BIA = {shield = "Indian Route&nbsp;%route%.svg",
abbr = "BIA Route&nbsp;%route%"
}
link = "BIA Route&nbsp;%route%",
abbr = "BIA Route&nbsp;%route%"}


UT.AZ = {alias = {module = "USA/AZ", type = "AZ"}}
UT.AZ = {alias = {module = "USA/AZ", type = "AZ"}}

UT.road = {alias = {module = "USA", type = "road"}}
return UT
return UT

Revision as of 21:42, 12 February 2021

--[==[
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"]`.
]==]

-- Utah
local UT = {}

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

local suffix = " ([dab||%dab%, |]Utah)"
local suffix2 = " [dab||(%dab%)|]"
local maint = "[[Utah Department of Transportation|Utah DOT]]"


UT.I.link = {
	hook = "splitlen",
	split = 3,
	above = "Interstate %route% (Utah)",
	below = "Interstate %route% in Utah"
}

UT.BL.link = "Interstate %route% Business ([dab||%dab%, |]Utah)"
UT.BS.link = "Interstate %route% Business ([dab||%dab%, |]Utah)"

UT.US.link = "U.S. Route %route% in Utah"

UT["US 1926"].shieldmain = "US %route% Utah 1926.svg"
UT["US 1926"].link = UT.US.link
UT["US 1948"].shieldmain = "US %route% Utah 1948.svg"
UT["US 1948"].link = UT.US.link
UT["US 1961"].link = UT.US.link

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

UT.UT = {
	shield = {
		default = "Utah %route%.svg",
        ["281-320"] = ""
	},
	name = "State Route %route%",
	link = {
		default = "Utah State Route %route% [dab||(%dab%)|]",
		["281-320"] = "List of state highways serving Utah state parks and institutions"},
	abbr = {
		default = "SR-%route%",
		["281-320"] = "SR-281 to SR-320"
	}
}

UT.SR = UT.UT 

UT["UT 1962"] = {
	shield = {
		default = "Utah SR %route%.svg",
        ["281-320"] = ""
	},
	name = UT.UT.name,
	link = UT.UT.link,
	abbr = UT.UT.abbr
}

UT["SR 1962"] = UT["UT 1962"]
UT["UT 1966"] = UT["UT 1962"]
UT["SR 1966"] = UT["UT 1962"]

UT["UT 1954"] = {
	shield = "Utah %route% (1954).svg",
	name = UT.UT.name,
	link = UT.UT.link,
	abbr = "SR-%route%"
}

UT["SR 1954"] = UT["UT 1954"]

UT["UT 1926"] = {
	shield = "Utah %route% (1926).svg",
	name = UT.UT.name,
	link = UT.UT.link,
	abbr = UT["UT 1954"].abbr
}

UT["SR 1926"] = UT["UT 1926"]

UT.BIA = {
	shield = "Indian Route&nbsp;%route%.svg",
	name = "BIA Route&nbsp;%route%",
	link = "BIA Route&nbsp;%route%",
	abbr = "BIA Route&nbsp;%route%"
}

UT.AZ = {alias = {module = "USA/AZ", type = "AZ"}}
          
return UT