Jump to content

Module:Road data/strings/USA/OR

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

-- Oregon
local OR = {}

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

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

OR[" common "] = {
	browse = {
		{link = "State highways in Oregon", name = "Oregon Highways", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Oregon", name = "Interstate"},
			{link = "List of U.S. Highways in Oregon", name = "U.S."},
			{link = "List of highway route numbers in Oregon", name = "State"},
			{link = "List of named state highways in Oregon", name = "Named"},
			{link = "Oregon State Scenic Byways", name = "Scenic"}
		}
	}
}

OR.I.maint = maint
OR.I.link = {["82"] = "Interstate 82",
             ["205"] = "Interstate 205 (Oregon–Washington)",
             default = {hook = "splitlen",
                        split = 3,
                        above = "Interstate %route% (Oregon)",
                        below = "Interstate %route% in Oregon"}}
                           
OR["I 1957"].link = OR.I.link
OR["I 1961"].link = OR.I.link           
OR["I 1961"].shield = {	["80N"] = "I-%route% (1957).svg",
						default = {	hook = "splitlen",
									split = 3,
									above = "I-%route% (1961).svg",
									below = "I-%route% (1957).svg"}}

OR.BL.link = "Interstate %route% Business ([dab||%dab%, |]Oregon)"
						
OR.US.maint = maint
OR.US.name = "U.S. Highway %route%"
OR.US.link = {["28"] = "U.S. Route 28",
			  ["126"] = "U.S. Route 126",
			  ["197"] = "U.S. Route 197",
			  ["199"] = "U.S. Route 199",
			  ["630"] = "U.S. Route 630",
        	  ["730"] = "U.S. Route 730",
              default = "U.S. Route %route% in Oregon"}

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

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


OR["US 1961-Alt"] = {shield = OR["US 1961"].shield,
	                 link = OR["US-Alt"].link,
	                 abbr = OR["US-Alt"].abbr,
                     banner = "Alternate plate.svg"}

OR.OR = {shield = "OR %route%.svg",
         link = "Oregon Route %route% [dab||(%dab%)|]",
         abbr = "OR&nbsp;%route%",
         width = "expand"}

OR["OR-Bus"] = {shield = OR.OR.shield,
                link = "Oregon Route %route% Business [dab||(%dab%)|]",
                abbr = OR.OR.abbr .. " Bus.",
                banner = "Business plate.svg",
                width = "expand"}
                
OR["OR-Spur"] = {shield = OR.OR.shield,
                link = "Oregon Route %route% Spur [dab||(%dab%)|]",
                abbr = OR.OR.abbr .. " Spur",
                banner = "Spur plate.svg",
                width = "expand"}
                
OR["OR 1932"] = {shield = "OR %route% 1932.svg",
         link = OR.OR.link,
         abbr = OR.OR.abbr}

OR["OR 1948"] = {shield = "OR %route% 1948.svg",
         link = OR.OR.link,
         abbr = OR.OR.abbr}
         
OR.FH = {shield = "Forest Route %route%.svg",
	     link = "",
	     abbr = "FH&nbsp;%route%"}

OR.CA = {alias = {module = "USA/CA", type = "SR"}}
OR.WA = {alias = {module = "USA/WA", type = "WA"}}
OR.ID = {alias = {module = "USA/ID", type = "SH"}}
OR.NV = {alias = {module = "USA/NV", type = "NV"}}

local highwayNames  =  {["1"] = "Pacific Highway",
						["2"] = "Columbia River",
						["3"] = "Oswego",
						["4"] = "The Dalles–California",
						["5"] = "John Day",
						["6"] = "Old Oregon Trail",
						["7"] = "Central Oregon",
						["8"] = "Oregon–Washington",
						["9"] = "Oregon Coast",
						["10"] = "Wallowa Lake",
						["11"] = "Enterprise–Lewiston",
						["12"] = "Baker–Copperfield",
						["14"] = "Crooked River",
						["15"] = "McKenzie",
						["16"] = "Santiam",
						["17"] = "McKenzie–Bend",
						["18"] = "Willamette",
						["19"] = "Fremont",
						["20"] = "Klamath Falls–Lakeview",
						["21"] = "Green Springs",
						["22"] = "Crater Lake",
						["23"] = "Dairy–Bonanza",
						["25"] = "Redwood",
						["26"] = "Mt. Hood",
						["27"] = "Alsea",
						["28"] = "Pendleton–John Day",
						["29"] = "Tualatin Valley",
						["30"] = "Willamina–Salem",
						["31"] = "Albany–Corvallis",
						["32"] = "Three Rivers",
						["33"] = "Corvallis–Newport",
						["35"] = "Coos Bay–Roseburg",
						["36"] = "Pendleton–Cold Springs",
						["37"] = "Wilson River",
						["38"] = "Oregon Caves",
						["39"] = "Salmon River",
						["40"] = "Beaverton–Hillsdale",
						["41"] = "Ochoco",
						["42"] = "Sherman",
						["43"] = "Monmouth–Independence",
						["44"] = "Wapinitia",
						["45"] = "Umpqua",
						["46"] = "Necanicum",
						["47"] = "Sunset",
						["48"] = "John Day–Burns",
						["49"] = "Lakeview–Burns",
						["50"] = "Klamath Falls–Malin",
						["51"] = "Wilsonville–Hubbard",
						["52"] = "Heppner",
						["53"] = "Warm Springs",
						["54"] = "Umatilla–Stanfield",
						["58"] = "Albany–Junction City",
						["60"] = "Rogue River",
						["61"] = "Stadium Freeway",
						["62"] = "Florence–Eugene",
						["63"] = "Rogue Valley",
						["64"] = "East Portland Freeway",
						["66"] = "La Grande–Baker",
						["67"] = "Pendleton",
						["68"] = "Cascade",
						["69"] = "Beltline",
						["70"] = "McNary",
						["71"] = "Whitney",
						["72"] = "Salem",
						["75"] = "Sunrise Expressway",
						["81"] = "Pacific",
						["91"] = "Pacific",
						["92"] = "Lower Columbia River",
						["100"] = "Historic Columbia River",
						["102"] = "Nehalem",
						["103"] = "Fishhawk Falls",
						["104"] = "Fort Stevens",
						["105"] = "Warrenton–Astoria",
						["110"] = "Mist–Clatskanie",
						["120"] = "Swift",
						["123"] = "Northeast Portland",
						["130"] = "Little Nestucca",
						["131"] = "Netarts",
						["132"] = "Delta",
						["138"] = "North Umpqua",
						["140"] = "Hillsboro–Silverton",
						["141"] = "Beaverton–Tualatin",
						["142"] = "Farmington",
						["143"] = "Scholls",
						["144"] = "Beaverton–Tigard",
						["150"] = "Salem–Dayton",
						["151"] = "Yamhill–Newberg",
						["153"] = "Bellevue–Hopewell",
						["154"] = "Lafayette",
						["155"] = "Amity–Dayton",
						["157"] = "Willamina–Sheridan",
						["160"] = "Cascade",
						["161"] = "Woodburn–Estacada",
						["162"] = "North Santam",
						["163"] = "Silver Creek Falls",
						["164"] = "Jefferson",
						["171"] = "Clackamas",
						["172"] = "Eagle Creek–Sandy",
						["173"] = "Timberline",
						["174"] = "Clackamas–Boring",
						["180"] = "Eddyville–Blodgett",
						["181"] = "Siletz",
						["189"] = "Dallas–Rickreall",
						["191"] = "Kings Valley",
						["193"] = "Independence",
						["194"] = "Monmouth",
						["200"] = "Territorial",
						["201"] = "Alsea–Deadwood",
						["210"] = "Corvallis–Lebanon",
						["211"] = "Albany–Lyons",
						["212"] = "Halsey–Sweet Home",
						["215"] = "Clear Lake–Belknap Springs",
						["225"] = "McVay",
						["226"] = "Goshen–Divide",
						["227"] = "Eugene–Springfield",
						["228"] = "Springfield",
						["229"] = "Mapleton–Junction City",
						["231"] = "Elkton–Sutherlin",
						["233"] = "West Diamond Lake",
						["240"] = "Cape Arago",
						["241"] = "Coos River",
						["242"] = "Powers",
						["244"] = "Coquille–Bandon",
						["250"] = "Cape Blanco",
						["251"] = "Port Orford",
						["255"] = "Carpenterville",
						["260"] = "Rogue River Loop",
						["270"] = "Lake of the Woods",
						["271"] = "Sams Valley",
						["272"] = "Jacksonville",
						["273"] = "Siskiyou",
						["281"] = "Hood River",
						["282"] = "Odell",
						["290"] = "Sherars Bridge",
						["291"] = "Shaniko–Fossil",
						["292"] = "Mosier–The Dalles",
						["293"] = "Antelope",
						["300"] = "Wasco–Heppner",
						["301"] = "Celilo–Wasco",
						["320"] = "Lexington–Echo",
						["321"] = "Heppner–Spray",
						["330"] = "Weston–Elgin",
						["331"] = "Umatilla Mission",
						["332"] = "Sunnyside–Umapine",
						["333"] = "Hermiston",
						["334"] = "Athena–Holdman",
						["335"] = "Havana–Helix",
						["339"] = "Freewater",
						["340"] = "Medical Springs",
						["341"] = "Ukiah–Hilgard",
						["342"] = "Cove",
						["350"] = "Little Sheep Creek",
						["351"] = "Joseph–Wallowa Lake",
						["360"] = "Madras–Prineville",
						["361"] = "Culver",
						["370"] = "O'Neil",
						["372"] = "Century Drive",
						["380"] = "Paulina",
						["390"] = "Service Creek–Mitchell",
						["402"] = "Kimberly–Long Creek",
						["410"] = "Sumpter",
						["413"] = "Halfway–Cornucopia",
						["414"] = "Pine Creek",
						["415"] = "Dooley Mountain",
						["420"] = "Midland",
						["422"] = "Chiloquin",
						["424"] = "South Klamath Falls",
						["426"] = "Hatfield",
						["429"] = "Crescent Lake",
						["431"] = "Warner",
						["440"] = "Frenchglen",
						["442"] = "Steens",
						["449"] = "Huntington",
						["450"] = "Succor Creek",
						["451"] = "Vale–West",
						["453"] = "Adrian–Arena Valley",
						["454"] = "Adrian–Caldwell",
						["455"] = "Olds Ferry–Ontario",
						["456"] = "I.O.N.",
						["457"] = "Snake River Correctional Institution",
						["481"] = "Baker–Copperfield",
						["482"] = "Redwood",
						["483"] = "McMinnville",
						["484"] = "Esplanade",
						["485"] = "Fort Stevens",
						["486"] = "Gold Hill",
						["488"] = "Chiloquin",
						["487"] = "Celilo–Wasco",
						["489"] = "Parma",
						["490"] = "Homedale",
						["491"] = "Weiser",
						["492"] = "Payette",
						["493"] = "Ontario" }

local highwaySuffix = { default = " No. %route%",
						["68"] = " North No. %route%",
						["81"] = " East No. %route%",
						["91"] = " West No. %route%",
						["138"] = " East No. %route%",
						["160"] = " South No. %route%"}

return OR