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

Content deleted Content added
Reverted to revision 995335951 by Fredddie (talk)
Tags: Twinkle Undo Reverted
Add green banner for Branson wayfinding routes
 
(25 intermediate revisions by one other user not shown)
Line 14:
 
local util = require("Module:Road data/util")
local format = mw.ustring.format
 
local suffix = "" ..([dab||%dab%, suffix|]Missouri)"
local maint = "[[Missouri Department of Transportation|MoDOT]]"
 
MO[" common "].I.link = {
["72"] = "Interstate 72",
browse = {
["155"] = "Interstate 155 (Missouri–Tennessee)",
{link = "Missouri State Highway System", bold = true},
["170"] = "Interstate 170",
{
["244"] = "Interstate 270 (Missouri–Illinois)",
noprint = true,
{link = ["List of Interstate Highways in Missouri255", name] = "Interstate 255"},
["270"] = "Interstate 270 (Missouri–Illinois)",
{link = "List of U.S. Highways in Missouri", name = "U.S."},
["435"] = "Interstate 435",
{link = "List of state highways in Missouri", name = "State"},
["635"] = "Interstate 635 (Kansas–Missouri)",
{link = "Missouri supplemental route", name = "Supplemental"}
["670"] = "Interstate 670 (Kansas–Missouri)",
}
default = {
hook = "split",
split = 100,
above = "Interstate %route% (Missouri)",
below = "Interstate %route% in Missouri"
}
}
 
for k, v in pairs(MO) do if k:find ("^I") then
MO.I.link = { ["72"] = "Interstate 72",
v.link = MO.I.link
["155"] = "Interstate 155 (Missouri–Tennessee)",
end
["170"] = "Interstate 170",
end
["244"] = "Interstate 270 (Missouri–Illinois)",
["255"] = "Interstate 255",
["270"] = "Interstate 270 (Missouri–Illinois)",
["435"] = "Interstate 435",
["635"] = "Interstate 635 (Kansas–Missouri)",
["670"] = "Interstate 670 (Kansas–Missouri)",
default = {hook = "split",
split = 100,
above = "Interstate %route% (Missouri)",
below = "Interstate %route% in Missouri"}}
MO.I.maint = maint
MO.BL.link = "Interstate %route% Business" .. suffix
 
MO.BS.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["I-Future"].link = MO.I.link
MO.Future = MO["I-Future"]
 
MO.US.link = "U.S. Route %route% in Missouri"
MO.US.maint = maint
 
for k, v in pairs(MO) do if k:find ("^US %d") then
MO["US-Alt"].link = "U.S. Route %route% Alternate" .. suffix
v.name = MO.US.name
MO["US-Alt"].maint = maint
v.link = MO.US.link
end
end
 
MO["US 1978"] = {
MO["US-Bus"].link = "U.S. Route %route% Business" .. suffix
shield = {
MO["US-Bus"].maint = maint
hook = "splitlen",
split = 3,
above = "US %route% square.svg",
below = "US %route%.svg"
},
base = MO.US.base,
name = MO.US.name,
link = MO.US.link,
abbr = MO.US.abbr,
width = "square",
}
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
MO["US-Byp"].link = "U.S. Route %route% Bypass" .. suffix
local spec = MO[" aux "][auxType]
MO["US-Byp"].maint = maint
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
MO["US-City"].link = "U.S. Route %route% City" .. suffix
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
MO["US-City"].maint = maint
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-Spur"].link = "U.S. Route %route% Spur" .. suffix
MO["US-Spur"].maint = maint
 
MO["US-Bus-Alt"] = {
MO["US-Truck"].link = "U.S. Route %route% Truck" .. suffix
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"].shield = "US %route% (MO historic).svg"
MO["US-Hist"].link = MO.US.link
 
MO.Route = {
MO["US 1961-Bus"] = {shield = "US %route% (1961).svg",
base = "Missouri Route %route%",
link = MO["US-Bus"].link,
shield = "MO-%route%.svg",
abbr = MO["US-Bus"].abbr,
name = "Route %route%",
banner = "Business plate.svg"}
link = "Missouri Route %route% [dab||(%dab%)|]",
 
MO["US 1961-Spur"] = {shield abbr = "US Route %route% (1961).svg",
width = "expand"
link = MO["US-Spur"].link,
}
abbr = MO["US-Spur"].abbr,
banner = "Spur plate.svg"}
 
MO.Route = {shield = "MO-%route%.svg",
base = "Missouri Route %route%",
link = "Missouri Route %route% [dab||(%dab%)|]",
abbr = "Route %route%",
width = "expand"}
 
MO.MO = MO.Route
 
for _,yeartype in ipairs({"1920Route", "1926", "1948MO"}) do
for _,year in ipairs({"1922", "1926", "1948", "1960"}) do
local oldMOmain = "Route " .. year
MO[oldMOmain]type ..shield =" "MO-%route% (".. year] ..").svg"= {
shield = format("MO-%%route%% (%s).svg", year),
MO[oldMOmain].link = MO.Route.link
MO[oldMOmain].abbr name = MO.Route.abbrname,
link = MO.Route.link,
abbr = MO.Route.abbr,
width = "square",
}
end
end
 
MO["Route 19221960"].shield = MO[".Route.shield 1920"]--until squares are made
MO["MO 1922"] = MO["Route 1920"]
MO["MO 1926"] = MO["Route 1926"]
MO["MO 1948"] = MO["Route 1948"]
 
MO["Route 1960"] = {shield = MO.Route.shield, --until squares are made
link = MO.Route.link,
abbr = MO.Route.abbr}
 
MO["MO 1960"] = MO["Route 1960"]
 
for _,type in ipairs({"Route", "MO"}) do
MO["Route-Bus"] = {shield = MO.Route.shield,
for _,auxType in ipairs({"Alt", "Bus", "Spur", "Temp",}) do
link = MO.Route.base .. " Business [dab||(%dab%)|]",
local spec = MO[" aux "][auxType]
abbr = MO.Route.abbr.." Bus.",
MO[type .. "-" .. auxType] = {
banner = "Business plate.svg",
shield = MO[type].shield,
width = "expand"}
name = MO[type].name .. " " .. spec.name,
 
link = MO[type].base .. " " .. spec.name .. MO[" dab "],
MO["MO-Bus"] = MO["Route-Bus"]
abbr = MO[type].abbr .. " " .. spec.abbrsuffix,
 
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand"
}
end
end
MO.Bus = MO["Route-Bus"]
 
MO["Route-Spur"] = {shield = MO.Route.shield,
link = MO.Route.base .. " Spur [dab||(%dab%)|]",
abbr = MO.Route.abbr.." Spur",
banner = "Spur plate.svg",
width = "expand"}
 
MO["MO-Spur"] = MO["Route-Spur"]
 
MO.Spur = MO["Route-Spur"]
 
MO.Supp = {
MO["Route-Alt"] = {shield = MO.Route.shield,
shield = "MO-supp-%route%.svg",
link = MO.Route.base .. " Alternate [dab||(%dab%)|]",
abbr name = MO.Route.abbr.." Alt."name,
link = {
banner = "Alternate plate.svg",
ifexists = true,
width = "expand"}
default = "Missouri Route %route% (%county% County)"
 
},
MO["MO-Alt"] = MO["Route-Alt"]
abbr = MO.Route.abbr,
 
width = "MOSupp"
MO.Supp = {shield = "MO-supp-%route%.svg",
}
link = {ifexists = true,
default = MO.Route.base .. " (%county% County)"},
abbr = MO.Route.abbr,
width = "MOSupp"}
 
MO.AOTS = {shield = {["27"] = "MO-27.svg",
["61"] = "US 61.svg"},
link = { ["27"] = "Avenue of the Saints",
["61"] = "U.S. Route 61 in Missouri"},
abbr = { ["27"] = "Route 27",
["61"] = "US 61"},
banner = "Avenue of the Saints banner.svg",
width = "square"}
 
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"
},
banner = "Avenue of the Saints banner.svg",
width = "square"
}
MO["US-AOTS"] = MO.AOTS
 
MO.CKC = {
shield = "MO-110.svg",
link name = "Chicago–Kansas City Expressway",
link = "Chicago–Kansas City Expressway",
abbr = "Route 110 (CKC)",
abbr = "Route 110 (CKC)",
banner = "Chicago-Kansas City Expressway plate.svg",
width = "wide"}
}
 
-- add new types above this line if you want it to have the state highway browse and maint
MO.LCT = {shield = "Lewis and Clark Trail.png",
for k, v in pairs(MO) do if k:find ("^%a") then
link = "Lewis and Clark Trail",
v.maint = "[[Missouri Department of Transportation|MoDOT]]"
abbr = "Lewis and Clark Trail"}
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 = {
MO.USBR = {alias = {module = "USA", type = "USBR"}}
shield = "Branson %route% Route.svg",
name = "%route% Route",
link = "",
abbr = "%route% Route",
maint = "",
bannersuffix = "green"
}
 
MO.CR.link = {
MO.Branson = {shield = "Branson %route% Route.svg",
ifexists = true,
link = "",
default = "County Road %route% (%county% County, Missouri)",
abbr = "%route% Route"}
otherwise = ""
}
MO.CR.maint = ""
 
MO.SRCR = {
MO.CR = {shield = "CR %route% jct.svg",
shield = MO.Route.shield,
link = {ifexists = true,
shieldmain = {MO.Route.shield, MO.CR.shieldmain},
default = "County Road %route% (%county% County, Missouri)",
name = MO.Route.name,
otherwise = ""},
link = MO.Route.link,
abbr = "CR %route%"}
abbr = MO.Route.abbr,
maint = ""
}
 
MO.AR = {alias = {module = "USA/AR", type = "AR"}}
Line 186 ⟶ 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