Jump to content

Module:Road data/strings/USA/MO

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 13:52, 20 December 2020 (modernize module). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
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
into the Debug console:
  local util = require("Module:Road data/util")
  print(util.arrayToString(p))
]==]

--Missouri
local MO = require("Module:Road data/strings/USA")

local util = require("Module:Road data/util")

local suffix = "" .. suffix
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 = {	["72"] = "Interstate 72",
                ["155"] = "Interstate 155 (Missouri–Tennessee)",
                ["170"] = "Interstate 170",
                ["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
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

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"].link = "U.S. Route %route% City" .. suffix
MO["US-City"].maint = maint

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",
                link = MO["US-Bus"].link,
                abbr = MO["US-Bus"].abbr,
                banner = "Business plate.svg"}

MO["US 1961-Spur"] = {shield = "US %route% (1961).svg",
                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&nbsp;%route%",
            width = "expand"}

MO.MO = MO.Route

for _,year in ipairs({"1920", "1926", "1948"}) do
	local oldMOmain = "Route " .. year
	MO[oldMOmain].shield = "MO-%route% (".. year ..").svg"
	MO[oldMOmain].link = MO.Route.link
	MO[oldMOmain].abbr = MO.Route.abbr
end

MO["Route 1922"] = MO["Route 1920"]
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"]

MO["Route-Bus"] = {shield = MO.Route.shield,
                   link = MO.Route.base .. " Business [dab||(%dab%)|]",
                   abbr = MO.Route.abbr.." Bus.",
                   banner = "Business plate.svg",
                   width = "expand"}

MO["MO-Bus"] = MO["Route-Bus"]

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["Route-Alt"] = {shield = MO.Route.shield,
                    link = MO.Route.base .. " Alternate [dab||(%dab%)|]",
                    abbr = MO.Route.abbr.." Alt.",
                    banner = "Alternate plate.svg",
                    width = "expand"}

MO["MO-Alt"] = MO["Route-Alt"]

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["US-AOTS"] = MO.AOTS

MO.CKC = {shield = "MO-110.svg",
          link = "Chicago–Kansas City Expressway",
          abbr = "Route&nbsp;110 (CKC)",
          banner = "Chicago-Kansas City Expressway plate.svg",
          width = "wide"}

MO.LCT = {shield = "Lewis and Clark Trail.png",
          link = "Lewis and Clark Trail",
          abbr = "Lewis and Clark Trail"}

MO.USBR = {alias = {module = "USA", type = "USBR"}}

MO.Branson = {shield = "Branson %route% Route.svg",
              link = "",
              abbr = "%route% Route"}

MO.CR = {shield = "CR %route% jct.svg",
         link = {ifexists = true,
                 default = "County Road %route% (%county% County, Missouri)",
                 otherwise = ""},
         abbr = "CR&nbsp;%route%"}

MO.AR = {alias = {module = "USA/AR", type = "AR"}}
MO.IL = {alias = {module = "USA/IL", type = "IL"}}
MO.IA = {alias = {module = "USA/IA", type = "IA"}}
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"}}

return MO