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

Content deleted Content added
update module
Add green banner for Branson wayfinding routes
 
(17 intermediate revisions by one other user not shown)
Line 17:
 
local suffix = " ([dab||%dab%, |]Missouri)"
local maint = "[[Missouri Department of Transportation|MoDOT]]"
 
MO[" common "] = {
browse = {
{link = "Missouri State Highway System", bold = true},
{
noprint = true,
{link = "List of Interstate Highways in Missouri", name = "Interstate"},
{link = "List of U.S. Highways in Missouri", name = "U.S."},
{link = "List of state highways in Missouri", name = "State"},
{link = "Missouri supplemental route", name = "Supplemental"}
}
}
}
 
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.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 1926"].shieldmain = "US %route% Missouri 1926.svg"
MO["US 1926"] v.linkname = MO.US.linkname
v.link = MO.US.link
MO["US 1948"].shieldmain = "US %route% Missouri 1948.svg"
end
MO["US 1948"].link = MO.US.link
end
MO["US 1961"].link = MO.US.link
 
MO["US-Alt"].link = "U.S. Route %route% Alternate" .. suffix
MO["US-Alt"].maint = maint
 
MO["US-Bus"].link = "U.S. Route %route% Business" .. suffix
MO["US-Bus"].maint = maint
 
MO["US-Byp"].link = "U.S. Route %route% Bypass" .. suffix
MO["US-Byp"].maint = maint
 
MO["US-City"] = {
shield = "US %route% (1961).svg",
link = "U.S. Route %route% City" .. suffix,
abbr = MO.US.abbr .. " City",
banner = "City plate.svg"
}
 
MO["US-Spur"].link = "U.S. Route %route% Spur" .. suffix
MO["US-Spur"].maint = maint
 
MO["US-Truck"].link = "U.S. Route %route% Truck" .. suffix
 
MO["US-Hist"].shield = "US %route% (MO historic).svg"
MO["US-Hist"].link = MO.US.link
 
MO["US 1961-Bus"] = {
shield = "US %route% (1961).svg",
name = MO["US-Bus"].name,
link = MO["US-Bus"].link,
abbr = MO["US-Bus"].abbr,
banner = "Business plate.svg",
width = "square"
}
 
MO["US 1961-Spur"] = {
shield = "US %route% (1961).svg",
name = MO["US-Spur"].name,
link = MO["US-Spur"].link,
abbr = MO["US-Spur"].abbr,
banner = "Spur plate.svg"
}
 
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,
maintwidth = maint"square",
width = "square"
}
 
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 _,yeartype in ipairs({"1922Route", "1926", "1948", "1960MO"}) do
for _,year in ipairs({"1922", "1926", "1948", "1960"}) do
MO["Route " .. year] = {
MO[type .. " " .. year] = {
shield = format("MO-%%route%% (%s).svg", year),
name = MO.Route.name,
shieldmain = format("MO-%%route%% (%s).svg", year),
name link = MO.Route.namelink,
link abbr = MO.Route.linkabbr,
abbr width = MO.Route.abbr"square",
}
width = "square",
}end
end
 
MO["MO 1922"] = MO["Route 1922"]
MO["MO 1926"] = MO["Route 1926"]
MO["MO 1948"] = MO["Route 1948"]
MO["Route 1960"].shield = MO.Route.shield --until squares are made
MO["MO 1960"] = MO["Route 1960"]
 
MO[for _,type in ipairs({"Route-Bus"], ="MO"}) {do
for _,auxType in ipairs({"Alt", "Bus", "Spur", "Temp",}) do
shield = MO.Route.shield,
local spec = MO[" aux "][auxType]
name = MO.Route.name.." Business",
MO[type .. "-" .. auxType] = {
link = "Missouri Route %route% Business [dab||(%dab%)|]",
shield = MO[type].shield,
abbr = MO.Route.abbr.." Bus.",
name = MO[type].name .. " " .. spec.name,
banner = "Business plate.svg",
link = MO[type].base .. " " .. spec.name .. MO[" dab "],
width = "expand"
abbr = MO[type].abbr .. " " .. spec.abbrsuffix,
}
banner = spec.bannerprefix .. " plate.svg",
MO["MO-Bus"] = MO["Route-Bus"]
aux = spec.aux,
width = "expand"
}
end
end
MO.Bus = MO["Route-Bus"]
 
MO["Route-Spur"] = {
shield = MO.Route.shield,
name = MO.Route.name.." Spur",
link = "Missouri Route %route% 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["Route-Alt"] = {
shield = MO.Route.shield,
name = MO.Route.name.." Alternate",
link = "Missouri Route %route% Alternate [dab||(%dab%)|]",
abbr = MO.Route.abbr.." Alt.",
banner = "Alternate plate.svg",
width = "expand"
}
 
MO["MO-Alt"] = MO["Route-Alt"]
 
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
MO.LCT = {
for k, v in pairs(MO) do if k:find ("^%a") then
shield = "Lewis and Clark Trail.png",
v.maint = "[[Missouri Department of Transportation|MoDOT]]"
name = "Lewis and Clark Trail",
v.browse = "[[Missouri State Highway System]]"
link = "Lewis and Clark Trail",
v.browselinks = {
abbr = "Lewis and Clark Trail"
[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 238 ⟶ 223:
default = "County Road %route% (%county% County, Missouri)",
otherwise = ""
}
MO.CR.maint = ""
 
MO.SRCR = {
shield = MO.Route.shield,
shieldmain = {MO.Route.shield, MO.CR.shieldmain},
name = MO.Route.name,
link = MO.Route.link,
abbr = MO.Route.abbr,
maint = ""
}
 
Line 248 ⟶ 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