--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]]and enter the following input text:
To inspect the content of this data module when editing, enter the followinginto 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"]`.]
-- Oregonlocal OR =
local util = require("Module:Road data/util")util.addAll(OR, require("Module:Road data/strings/USA"))local format = mw.ustring.format
local suffix = " ([dab||%dab%, |]Oregon)"
OR.I.link =
for k, v in pairs(OR) do if k:find ("^I") then v.link = OR.I.link endend OR["I 1961"].shield =
OR.BL.link = "Interstate %route% Business ([dab||%dab%, |]Oregon)"
for k, v in pairs(OR) do if k:find ("^BL") then v.link = OR.BL.link endend
OR.US.name = "U.S. Highway %route%"OR.US.link =
for k, v in pairs(OR) do if k:find ("^US %d") then v.name = OR.US.name v.link = OR.US.link endend
for _,auxType in ipairs do local spec = OR[" aux "][auxType] for k, v in pairs(OR) do if k:find (auxType) then if k:find ("^US") then v.name = OR.US.name .. " " .. spec.name v.link = OR.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Oregon)" end end endend
OR["US 1961-Alt"] =
OR.OR =
OR["OR-Bus"] = OR["OR-Spur"] =
for _,type in ipairs do for _,year in ipairs do OR["OR " .. year] = endend
OR.FH.link = ""
local highwayNames =
OR.Hwy =
OR.Hwy2 =
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(OR) do if k:find ("^%a") then v.maint = "ODOT" v.browse = "Oregon Highways" v.browselinks = endend
for k, v in pairs(OR) do if k:find ("^%a+ %d") then v.maint = "Oregon State Highway Department" endend
OR.CA = OR.WA = OR.ID = OR.NV =
return OR