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

Content deleted Content added
dab for US 66
Add green banner for Branson wayfinding routes
 
(59 intermediate revisions by 5 users not shown)
Line 1:
--[==[
--Missouri
To inspect the content of this data module, use [[Special:ExpandTemplates]]
local MO = {}
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
MO.I = {shield = "I-%route%.svg",
into the Debug console:
link = "Interstate %route% (Missouri)",
local util = require("Module:Road data/util")
abbr = "I-%route%",
print(util.arrayToString(p))
width = "expand"}
]==]
 
--Missouri
MO["I-Future"] = {shield = "I-%route%.svg",
local MO = require("Module:Road data/strings/USA")
link = "Interstate %route% (Missouri)",
abbr = "Future I-%route%",
width = "expand"}
 
local util = require("Module:Road data/util")
MO.Future = MO["I-Future"]
local format = mw.ustring.format
 
local suffix = " ([dab||%dab%, |]Missouri)"
MO.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Missouri)",
abbr = "I-%route% Bus.",
width = "expand"}
 
MO.I.link = {
MO.US = {shield = "US %route%.svg",
["72"] = "Interstate 72",
link = "U.S. Route %route% in Missouri",
["155"] = "Interstate 155 (Missouri–Tennessee)",
abbr = "US&nbsp;%route%",
["170"] = "Interstate 170",
width = "expand"}
["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"
}
}
 
for k, v in pairs(MO) do if k:find ("^I") then
MO["US-Alt"] = {shield = MO.US.shield,
v.link = MO.I.link
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Missouri)",
end
abbr = "US&nbsp;%route% Alt.",
end
banner = "Alternate plate.svg",
width = "expand"}
MO.BL.link = "Interstate %route% Business" .. suffix
 
for k, v in pairs(MO) do if k:find ("^B%a") then
MO["US-Bus"] = {shield = MO.US.shield,
v.link = MO.BL.link
link = "U.S. Route %route% Business ([dab||%dab%, |]Missouri)",
end
abbr = "US&nbsp;%route% Bus.",
end
banner = "Business plate.svg",
MO["I-Bus"] = MO.BL
width = "expand"}
 
MO.US.link = "U.S. Route %route% in Missouri"
MO["US-Byp"] = {shield = MO.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Missouri)",
abbr = "US&nbsp;%route% Byp.",
banner = "By-pass plate.svg",
width = "expand"}
 
for k, v in pairs(MO) do if k:find ("^US %d") then
MO["US-Spur"] = {shield = MO.US.shield,
v.name = MO.US.name
link = "U.S. Route %route% Spur ([dab||%dab%, |]Missouri)",
v.link = MO.US.link
abbr = "US&nbsp;%route% Spur",
end
banner = "Spur plate.svg",
end
width = "expand"}
 
MO["US-Truck 1978"] = {shield = MO.US.shield,
shield = {
link = "U.S. Route %route% Truck ([dab||%dab%, |]Missouri)",
hook = "splitlen",
abbr = "US&nbsp;%route% Truck",
split = 3,
banner = "Truck plate.svg",
above = "US %route% square.svg",
width = "expand"}
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-AOTS"] = {shield = MO.US.shield,
local spec = MO[" aux "][auxType]
link = "U.S. Route %route% in Missouri",
for k, v in pairs(MO) do if k:find (auxType) then if k:find ("^US") then
abbr = "US&nbsp;%route%",
v.link = MO.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Missouri)"
banner = "Avenue of the Saints banner.png",
end
width = "expand"}
end
end
end
 
for _,year in ipairs({'1926', '1948', '1961'}) do
MO["US 1926"] = {shield = "US %route% Missouri 1926.svg",
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
link = MO.US.link,
local type = "US " .. year
abbr = MO.US.abbr,
local spec = MO[" aux "][auxType]
width = "US1926"}
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.Route = {shield = "MO-%route%.svg",
link = "Missouri Route %route%[dab|| (%dab%)|]",
abbr = "Route&nbsp;%route%",
width = "expand"}
 
MO["US-Bus-Alt"] = {
MO.MO = MO.Route
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["RouteUS-BusHist"] = {shield.link = MO.RouteUS.shield,link
link = "Missouri Route %route% Business [dab||(%dab%)|]",
abbr = "Route&nbsp;%route% Bus.",
banner = "Business plate.svg",
width = "expand"}
 
MO.Route = {
MO["MO-Bus"] = MO["Route-Bus"]
base = "Missouri Route %route%",
shield = "MO-%route%.svg",
name = "Route %route%",
link = "Missouri Route %route% [dab||(%dab%)|]",
abbr = "Route&nbsp;%route%",
width = "expand"
}
 
MO.BusMO = MO[".Route-Bus"]
 
for _,type in ipairs({"Route", "MO"}) do
MO["Route-Spur"] = {shield = MO.Route.shield,
for _,year in ipairs({"1922", "1926", "1948", "1960"}) do
link = "Missouri Route %route% Spur [dab||(%dab%)|]",
MO[type .. " " .. year] = {
abbr = "Route&nbsp;%route% Spur",
shield = format("MO-%%route%% (%s).svg", year),
banner = "Spur plate.svg",
name = MO.Route.name,
width = "expand"}
link = MO.Route.link,
abbr = MO.Route.abbr,
width = "square",
}
end
end
 
MO["MO-SpurRoute 1960"].shield = MO[".Route.shield -Spur"]-until squares are made
MO["MO 1960"] = MO["Route 1960"]
 
for _,type in ipairs({"Route", "MO"}) do
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 = {
shield = "MO-supp-%route%.svg",
name = MO.Route.name,
link = {ifexists = true,
link = {
default = "Missouri Route %route% (%county% County)"},
ifexists = true,
abbr = "Route&nbsp;%route%",
default = "Missouri Route %route% (%county% County)"
width = "MOSupp"}
},
abbr = MO.Route.abbr,
width = "MOSupp"
}
 
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.AOTSCKC = {
shield = "MO-27110.svg",
name = "Chicago–Kansas City Expressway",
link = "Avenue of the Saints",
link = "Chicago–Kansas City Expressway",
abbr = "Route 27",
abbr = "Route&nbsp;110 (CKC)",
banner = "Avenue of the Saints banner.png",
banner = "Chicago-Kansas City Expressway plate.svg",
width = "square"}
width = "wide"
}
 
-- add new types above this line if you want it to have the state highway browse and maint
MO.CKC = {shield = "MO-110.svg",
for k, v in pairs(MO) do if k:find ("^%a") then
link = "Chicago–Kansas City Expressway",
v.maint = "[[Missouri Department of Transportation|MoDOT]]"
abbr = "Route&nbsp;110 (CKC)",
v.browse = "[[Missouri State Highway System]]"
banner = "CKC plate.svg",
v.browselinks = {
width = "wide"}
[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.GRR = {shield = "GreatRiverRoad.svg",
shield = "Branson %route% Route.svg",
link = "Great River Road",
name = "%route% Route",
abbr = "Great River Road"}
link = "",
abbr = "%route% Route",
maint = "",
bannersuffix = "green"
}
 
MO.CR.link = {
MO.LCT = {shield = "Lewis and Clark Trail.png",
ifexists = true,
link = "Lewis and Clark Trail",
default = "County Road %route% (%county% County, Missouri)",
abbr = "Lewis and Clark Trail"}
otherwise = ""
}
MO.CR.maint = ""
 
MO.SRCR = {
MO["US-Hist"] = {shield = {["66"] = "US 66 (historic).svg",
shield = MO.Route.shield,
default = ""},
shieldmain = {MO.Route.shield, MO.CR.shieldmain},
link = "U.S. Route %route% in Missouri",
name = MO.Route.name,
abbr = "Historic US&nbsp;%route%[dab|| (%dab%)|]",
link = MO.Route.link,
width = 16}
abbr = MO.Route.abbr,
maint = ""
}
 
MO.BransonAR = {shieldalias = {module = "USA/AR", type = "AR"}}
MO.IL = {alias = {module = "USA/IL", linktype = "IL",}}
MO.IA = {alias = {module = "USA/IA", type = "IA"}}
abbr = "%route% Route"}
MO.KS = {alias = {module = "USA/KS", type = "K"}}
MO.KY = {alias = {module = "USA/KY", type = "KY"}}
MO.OK = {alias = {module = "USA/OK", type = "OK"}}
MO.TN = {alias = {module = "USA/TN", type = "SR"}}
MO["TN-Sec"] = {alias = {module = "USA/TN", type = "Sec"}}
 
MO.list = {
MO.CR = {shield = "CR %route% jct.svg",
link shield = "",
link = {
abbr = "CR&nbsp;%route%"}
hook = "padroute",
paddedLength = 4,
default = "#MO%paddedRoute%"
},
abbr = MO.Route.abbr
}
 
return MO