Content deleted Content added
update module |
rm |
||
(3 intermediate revisions by the same user not shown) | |||
Line 17:
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 = {
["82"] = "Interstate 82",
Line 46 ⟶ 31:
}
}
for k, v in pairs(OR) do if k:find ("^I") then
end
end
OR["I 1961"].shield = {
["80N"] = "I-%route% (1957).svg",
Line 60 ⟶ 47:
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
end
end
OR.US.name = "U.S. Highway %route%"
OR.US.link = {
Line 73 ⟶ 64:
}
for k, v in pairs(OR) do if k:find ("^US %d") then
end
end
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
local spec = OR[" aux "][auxType]
for k, v in pairs(OR) do if k:find (auxType) then if k:find ("^US") then
end
end
end
end
OR["US 1961-Alt"] = {
Line 96 ⟶ 85:
link = OR["US-Alt"].link,
abbr = OR["US-Alt"].abbr,
banner = "Alternate plate.svg",
aux = OR[" aux "].Alt
}
Line 113 ⟶ 103:
abbr = OR.OR.abbr .. " Bus.",
banner = "Business plate.svg",
width = "expand",
aux = OR[" aux "].Bus
}
Line 122 ⟶ 113:
abbr = OR.OR.abbr .. " Spur",
banner = "Spur plate.svg",
width = "expand",
aux = OR[" aux "].Spur
}
for _,type in ipairs({"OR"}) do
for _,year in ipairs({"1932", "1948"}) do
OR["OR " .. year] = {
shield = format("OR %%route%% %s.svg", year),
link = OR.OR.link,
abbr = OR.OR.abbr,
width = "square"
}
end
end
OR.FH.link = ""
local highwayNames = {
Line 221 ⟶ 206:
}
}
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(OR) do if k:find ("^%a") then
v.maint = "[[Oregon Department of Transportation|ODOT]]"
v.browse = "[[State highways in Oregon|Oregon Highways]]"
v.browselinks = {
[1] = "[[List of Interstate Highways in Oregon|Interstate]]",
[2] = "[[List of U.S. Highways in Oregon|US]]",
[3] = "[[List of numbered state routes in Oregon|State]]",
[4] = "[[List of named state highways in Oregon|Named]]",
[5] = "[[Oregon State Scenic Byways|Scenic]]"
}
end
end
for k, v in pairs(OR) do if k:find ("^%a+ %d") then
v.maint = "[[Oregon State Highway Department]]"
end
end
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"}}
return OR
|