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

Content deleted Content added
Restored revision 1037975692 by Fredddie (talk)
Add green banner for Branson wayfinding routes
 
(10 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,year v in ipairspairs({"1926",MO) "1948",do if k:find ("1961",^US %d"1978"}) dothen
v.name = MO.US.name
MO["US " .. year] = {
v.link = MO.US.link
shield = format("US %%route%% (%s).svg", year),
end
shieldmain = format("US %%route%% Missouri %s.svg", year),
base = MO.US.base,
name = MO.US.name,
link = MO.US.link,
abbr = MO.US.abbr,
width = "square",
}
end
 
MO["US 19611978"].shieldmain = "US %route% (1961).svg"{
MO["US 1978"]. shield = {
hook = "splitlen",
split = 3,
above = "US %route% square.svg",
below = "US %route%.svg"
},
base = MO.US.base,
MO["US 1978"].shieldmain = {
name = MO.US.name,
hook = "splitlen",
link = MO.US.link,
split = 3,
abbr = MO.US.abbr,
above = "US %route% square.svg",
width = "square",
below = "US %route%.svg"
}
 
MO["US 1978"].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 _,typeyear in ipairs({'US', 'US 1926', 'US 1948', 'US 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] = {
Line 94 ⟶ 88:
shieldmain = MO[type].shieldmain,
name = MO[type].name .. " " .. spec.name,
link = MO[type].linkbase .. " " .. spec.name .. suffix,
abbr = MO[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate " .. year .. ".svg",
aux = spec.aux,
width = MO[type].width
Line 102 ⟶ 96:
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-AltBus"].name .. " BusinessAlternate",
link = "U.S. Route %route% Alternate Business Alternate ([dab||%dab%, |]Missouri)",
abbr = MO["US %route%-Bus"].abbr Alt.. Bus" 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
 
Line 126 ⟶ 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 217 ⟶ 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 228 ⟶ 214:
name = "%route% Route",
link = "",
abbr = "%route% Route",
maint = "",
bannersuffix = "green"
}
 
Line 236 ⟶ 224:
otherwise = ""
}
MO.CR.maint = ""
 
MO.SRCR = {
Line 242 ⟶ 231:
name = MO.Route.name,
link = MO.Route.link,
abbr = MO.Route.abbr,
maint = ""
}
 
Line 253 ⟶ 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