Content deleted Content added
+SRCR |
Add green banner for Branson wayfinding routes |
||
(16 intermediate revisions by one other user not shown) | |||
Line 17:
local suffix = " ([dab||%dab%, |]Missouri)"
MO.I.link = {
Line 49 ⟶ 35:
}
}
for k, v in pairs(MO) do if k:find ("^I") then
v.link = MO.I.link
end
end
MO.BL.link = "Interstate %route% Business" .. suffix
for k, v in pairs(MO) do if k:find ("^B%a") then
v.link = MO.BL.link
end
end
MO["I-Bus"] = MO.BL
MO.US.link = "U.S. Route %route% in Missouri"
for k, v in pairs(MO) do if k:find ("^US %d") then
v.link = MO.US.link
end
end
MO["US 1978"] = {
Line 114 ⟶ 64:
below = "US %route%.svg"
},
base = MO.US.base,
name = MO.US.name,
link = MO.US.link,
abbr = MO.US.abbr,
}
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
local spec = MO[" aux "][auxType]
for k, v in pairs(MO) do if k:find (auxType) then if k:find ("^US") then
v.link = MO.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Missouri)"
end
end
end
end
for _,year in ipairs({'1926', '1948', '1961'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
local type = "US " .. year
local spec = MO[" aux "][auxType]
MO[type .. "-" .. auxType] = {
shield = MO[type].shield,
shieldmain = MO[type].shieldmain,
name = MO[type].name .. " " .. spec.name,
link = MO[type].base .. " " .. spec.name .. suffix,
abbr = MO[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate " .. year .. ".svg",
aux = spec.aux,
width = MO[type].width
}
end
end
MO["US 1926-City"].shield = "US %route% City 1926.svg"
MO["US 1926-City"].shieldmain = "US %route% City 1926.svg"
MO["US 1926-City"].banner = ""
MO["US-Bus-Alt"] = {
shield = MO.US.shield,
name = MO["US-Bus"].name .. " Alternate",
link = "U.S. Route %route% Business Alternate ([dab||%dab%, |]Missouri)",
abbr = MO["US-Bus"].abbr .. " Alt.",
banner = "Alternate business plate.svg",
aux = MO[" aux "].Alt,
width = "expand"
}
MO["US-Hist"].link = MO.US.link
MO.Route = {
Line 132 ⟶ 124:
MO.MO = MO.Route
for _,
for _,year in ipairs({"1922", "1926", "1948", "1960"}) do
MO[type .. " " .. year] = {
shield = format("MO-%%route%% (%s).svg", year), name = MO.Route.name,
}
end
MO["Route 1960"].shield = MO.Route.shield --until squares are made
MO["MO 1960"] = MO["Route 1960"]
for _,auxType in ipairs({"Alt", "Bus", "Spur", "Temp",}) do
local spec = MO[" aux "][auxType]
MO[type .. "-" .. auxType] = {
shield = MO[type].shield,
name = MO[type].name .. " " .. spec.name,
link = MO[type].base .. " " .. spec.name .. MO[" dab "],
abbr = MO[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand"
}
end
end
MO.Bus = MO["Route-Bus"]
MO.Spur = MO["Route-Spur"]
MO.Supp = {
Line 195 ⟶ 169:
MO.AOTS = {
shield = {
arg = "route",
["27"] = "MO-27.svg",
["61"] = "US 61.svg"
},
link = {
arg = "route",
["27"] = "Avenue of the Saints",
["61"] = "U.S. Route 61 in Missouri"
},
abbr = {
arg = "route",
["27"] = "Route 27",
["61"] = "US 61"
Line 220 ⟶ 197:
}
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(MO) do if k:find ("^%a") then
v.maint = "[[Missouri Department of Transportation|MoDOT]]"
v.browse = "[[Missouri State Highway System]]"
v.browselinks = {
[1] = "[[List of Interstate Highways in Missouri|Interstate]]",
[2] = "[[List of U.S. Routes in Missouri|US]]",
[3] = "[[List of state highways in Missouri|State]]",
[4] = "[[Missouri supplemental route|Supplemental]]"
}
end
end
MO.Branson = {
Line 231 ⟶ 214:
name = "%route% Route",
link = "",
abbr = "%route% Route",
maint = "",
bannersuffix = "green"
}
Line 239 ⟶ 224:
otherwise = ""
}
MO.CR.maint = ""
MO.SRCR = {
Line 245 ⟶ 231:
name = MO.Route.name,
link = MO.Route.link,
abbr = MO.Route.abbr,
maint = ""
}
Line 256 ⟶ 243:
MO.TN = {alias = {module = "USA/TN", type = "SR"}}
MO["TN-Sec"] = {alias = {module = "USA/TN", type = "Sec"}}
MO.list = {
shield = "",
link = {
hook = "padroute",
paddedLength = 4,
default = "#MO%paddedRoute%"
},
abbr = MO.Route.abbr
}
return MO
|