Module:Road data/strings/USA/MI

--[==[ To inspect the content of this data module, use Special:ExpandTemplates and enter the following input text:

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)) To inspect a particular route type, change `p` above to include the route type, e.g., `p.I` and `p["US-Hist"]`. ]==]

-- Michigan local MI = {}

local util = require("Module:Road data/util") util.addAll(MI, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Michigan)" local special = " ([dab||%dab%, Michigan|Michigan highway])" local maint = "MDOT"

MI[" common "] = { browse = { {link = "Michigan State Trunkline Highway System", bold = true}, {			noprint = true, {link = "List of Interstate Highways in Michigan", name = "Interstate"}, {link = "List of U.S. Highways in Michigan", name = "U.S."}, {link = "List of state trunkline highways in Michigan", name = "State"}, {link = "Pure Michigan Byway", name = "Byways"} }	} }

MI.I.maint = maint MI.I.link = {	["96"] = "Interstate 96", ["196"] = "Interstate 196", ["296"] = "Interstate 296", ["496"] = "Interstate 496", ["696"] = "Interstate 696", ["94N"] = "Interstate 94N", default = {hook = "split", split = 100, above = "Interstate %route% (Michigan)", below = "Interstate %route% in Michigan"}} MI["I 1957"].shield = "I-%route% (MI 1957).svg" MI["I 1957"].link = MI.I.link MI["I 1961"].link = MI.I.link

MI.BL.link = MI.I.base .. " Business" .. suffix MI.BL.abbr = "BL " .. MI.I.abbr MI["BL 1957"].link = MI.BL.link MI["BL 1957"].abbr = MI.BL.abbr

MI.BS.link = MI.I.base .. " Business" .. suffix MI.BS.abbr = "BS " .. MI.I.abbr MI["BS 1957"].link = MI.BS.link MI["BS 1957"].abbr = MI.BS.abbr

MI.US.maint = maint MI.US.name = "US Highway %route%" MI.US.link = {	["8"] = "U.S. Route 8", ["102"] = "U.S. Route 102", ["112"] = "U.S. Route 112", ["131"] = "U.S. Route 131", ["141"] = "U.S. Route 141", ["223"] = "U.S. Route 223", default ="U.S. Route %route% in Michigan"}

for _,year in ipairs({"1926", "1948", "1961"}) do local oldUSmain = "US " .. year MI[oldUSmain].name = MI.US.name MI[oldUSmain].link = MI.US.link end

MI["US 1926"].shield = "US %route% Michigan 1926.svg" MI["US 1948"].shield = "US %route% Michigan 1948.svg"

MI["US 1961"] = MI["US 1948"] -- MI did not use the 1961 version and continued to use the 1948

MI.M = {shield =  {["185"] = "M-185 (MISPC).svg", ["331"] = "",                   ["554"] = "",                	default = {hook = "split", split = 100, above = "M-%route% rectangle.svg", below = "M-%route%.svg"}}, link = "M-%route% ([dab||%dab% |]Michigan highway)", abbr = "M-%route%", width = "expand"}

MI.MI = MI.M

MI["M 1919"] = {shield = "M-%route% 1919.svg", link = MI.M.link, abbr = MI.M.abbr}

MI["M 1926"] = {shield = "M-%route% 1926.svg", link = MI.M.link, abbr = MI.M.abbr}

MI["M 1948"] = {shield = "M-%route% 1948.svg", link = MI.M.link, abbr = MI.M.abbr}

MI["M 1973"] = {shield = {	["185"] = "M-185 (MISPC).svg", ["331"] = "",                   		["554"] = "",                			default ="M-%route%.svg"}, link = MI.M.link, abbr = MI.M.abbr}

MI.CDH = {shield ="County %route%.svg", link = "%route% (Michigan county highway)", abbr = "%route%", bannersuffix = "county"}

MI.CR = {shield = "Michigan %route% %county% County.svg", link = {ifexists = true, default = "County Road %route% (%county% County, Michigan)"}, abbr = "CR %route%", bannersuffix = {arg = "county", default   = "", Gogebic     = "county"} }

MI.FFH = {shield = "Forest Route %route%.svg", link = "Forest Highway %route%", abbr = "FFH %route%"}

MI["Capitol Loop"] = {shield = "CapitolLoop.svg", link = "Capitol Loop", abbr = "Capitol Loop", bannersuffix = "green"}

MI["US-Alt"].shield = "US %route%A.svg" MI["US-Alt"].link = MI.US.base .. "A [dab||(%dab%, Michigan)|in Michigan]" MI["US-Alt"].abbr = MI.US.abbr .. "A"

MI["US-Bus"].link = MI.US.base .. " Business" .. suffix MI["US-Bus"].abbr = "Bus. " .. MI.US.abbr

MI["US-Byp"].link = MI.US.base .. " Bypass" .. suffix MI["US-Byp"].abbr = "Byp. " .. MI.US.abbr

MI["US-Conn"].link = MI.US.base .. " Connector" .. suffix MI["US-Conn"].abbr = "Conn. " .. MI.US.abbr

MI["US-Truck"].link = MI.US.base .. " Truck" .. suffix MI["US-Truck"].abbr = "Truck " .. MI.US.abbr

MI["US-Emerg"] = {shield = MI.US.shield, link = "U.S. Route %route% Emergency ([dab||%dab%, |]Michigan)", abbr = "Emergency US %route%", banner = "Emergency plate.svg", width = "expand"} MI["US 1926-Alt"] = {shield = "US %route%A Michigan 1926.svg", link = MI["US-Alt"].link, abbr = MI["US-Alt"].abbr, width = 'US1926'}

MI["US 1926-Bus"] = {shield = MI["US 1926"].shield, link = MI["US-Bus"].link, abbr = MI["US-Bus"].abbr, banner = "Business plate old.svg", width = 'US1926'}

MI["US 1926-Byp"] = {shield = MI["US 1926"].shield, link = MI["US-Byp"].link, abbr = MI["US-Byp"].abbr, banner = MI["US-Byp"].banner, width = 'US1926'}

MI["US 1926-Conn"] = {shield = MI["US 1926"].shield, link = MI["US-Conn"].link, abbr = MI["US-Conn"].abbr, banner = MI["US-Conn"].banner, width = 'US1926'}

MI["US 1926-Truck"] = {shield = MI["US 1926"].shield, link = MI["US-Truck"].link, abbr = MI["US-Truck"].abbr, banner = MI["US-Truck"].banner, width = 'US1926'}

MI["US 1948-Alt"] = {shield = "US %route%A Michigan 1948.svg", link = MI["US-Alt"].link, abbr = MI["US-Alt"].abbr, width = 'US1926'}

MI["US 1948-Bus"] = {shield = MI["US 1948"].shield, link = MI["US-Bus"].link, abbr = MI["US-Bus"].abbr, banner = MI["US-Bus"].banner, width = 'US1926'}

MI["US 1948-Byp"] = {shield = MI["US 1948"].shield, link = MI["US-Byp"].link, abbr = MI["US-Byp"].abbr, banner = MI["US-Byp"].banner, width = 'US1926'}

MI["US 1948-Conn"] = {shield = MI["US 1948"].shield, link = MI["US-Conn"].link, abbr = MI["US-Conn"].abbr, banner = MI["US-Conn"].banner, width = 'US1926'}

MI["US 1948-Truck"] = {shield = MI["US 1948"].shield, link = MI["US-Truck"].link, abbr = MI["US-Truck"].abbr, banner = MI["US-Truck"].banner, width = 'US1926'}

MI["US 1961-Alt"] = MI["US 1948-Alt"]

MI["US 1961-Bus"] = MI["US 1948-Bus"]

MI["US 1961-Byp"] = MI["US 1948-Byp"]

MI["US 1961-Conn"] = MI["US 1948-Conn"]

MI["US 1961-Truck"] = MI["US 1948-Truck"]

MI["M-Alt"] = {shield = MI.M.shield, link = "M-%route% Alternate ([dab||%dab%, Michigan|Michigan highway])", abbr = "Alt. M‑%route%", banner = "Alt plate.svg"}

MI["MI-Alt"] = MI["M-Alt"]

MI["M-Bus"] = {shield = MI.M.shield, link = "M-%route% Business" .. special, abbr = "Bus. M‑%route%", banner = "Business plate.svg"}

MI["MI-Bus"] = MI["M-Bus"]

MI["M-Byp"] = {shield = MI.M.shield, link = "M-%route% Bypass" .. special, abbr = "Byp. M‑%route%", banner = "By-pass plate.svg"}

MI["MI-Byp"] = MI["M-Byp"]

MI["M-Conn"] = {shield = MI.M.shield, link = "M-%route% Connector (Michigan highway)", abbr = "Conn. M‑%route%", banner = "Connector plate.svg"}

MI["MI-Conn"] = MI["M-Conn"]

MI["M-Spur"] = {shield = MI.M.shield, link = "M-%route% Spur (Michigan highway)", abbr = "Spur M‑%route%", banner = "Spur plate.svg"}

MI["MI-Spur"] = MI["M-Spur"]

MI["M-Truck"] = {shield = MI.M.shield, link = "M-%route% Truck" .. special, abbr = "Truck M‑%route%", banner = "Truck plate.svg"}

MI["MI-Truck"] = MI["M-Truck"]

MI["M 1926-Alt"] = {shield = MI["M 1926"].shield, link = MI["M-Alt"].link, abbr = MI["M-Alt"].abbr, banner = "Alt plate.svg"}

MI["M 1926-Bus"] = {shield = MI["M 1926"].shield, link = MI["M-Bus"].link, abbr = MI["M-Bus"].abbr, banner = "Business plate.svg"}

MI["M 1926-Byp"] = {shield = MI["M 1926"].shield, link = MI["M-Byp"].link, abbr = MI["M-Byp"].abbr, banner = "By-pass plate.svg"}

MI["M 1926-Conn"] = {shield = MI["M 1926"].shield, link = MI["M-Byp"].link, abbr = MI["M-Byp"].abbr, banner = "Connector plate.svg"}

MI["M 1926-Truck"] = {shield = MI["M 1926"].shield, link = MI["M-Truck"].link, abbr = MI["M-Truck"].abbr, banner = "Truck plate.svg"}

MI["M 1948-Alt"] = {shield = MI["M 1948"].shield, link = MI["M-Alt"].link, abbr = MI["M-Alt"].abbr, banner = "Alt plate.svg"}

MI["M 1948-Bus"] = {shield = MI["M 1948"].shield, link = MI["M-Bus"].link, abbr = MI["M-Bus"].abbr, banner = "Business plate.svg"}

MI["M 1948-Byp"] = {shield = MI["M 1948"].shield, link = MI["M-Byp"].link, abbr = MI["M-Byp"].abbr, banner = "By-pass plate.svg"}

MI["M 1948-Conn"] = {shield = MI["M 1948"].shield, link = MI["M-Conn"].link, abbr = MI["M-Conn"].abbr, banner = "Connector plate.svg"}

MI["M 1948-Spur"] = {shield = MI["M 1948"].shield, link = MI["M-Spur"].link, abbr = MI["M-Spur"].abbr, banner = "Spur plate.svg"}

MI["M 1948-Truck"] = {shield = MI["M 1948"].shield, link = MI["M-Truck"].link, abbr = MI["M-Truck"].abbr, banner = "Truck plate.svg"}

MI.WI = {alias = {module = "USA/WI", type = "WI"}} MI["US-WI"] = {alias = {module = "USA/WI", type = "US"}} MI.IN = {alias = {module = "USA/IN", type = "IN"}} MI["US-IN"] = {alias = {module = "USA/IN", type = "US"}} MI.OH = {alias = {module = "USA/OH", type = "OH"}} MI["US-OH"] = {alias = {module = "USA/OH", type = "US"}} MI.ON = {alias = {module = "CAN/ON", type = "ON"}}

MI.Connector = {shield = "No image.svg", link = "Connector %route% (Michigan highway)", abbr = "Connector %route%"}

MI.BlankM = {shield = "No image.svg", link = MI.M.link, abbr = MI.M.abbr}

MI["BlankM-Conn"] = {shield = MI.BlankM.shield, link = MI["M-Conn"].link, abbr = MI["M-Conn"].abbr}

MI["BlankUS-Bus"] = {shield = MI.BlankM.shield, link = MI["US-Bus"].link, abbr = MI["US-Bus"].abbr, width = "expand"}

MI["BlankUS-Conn"] = {shield = MI.BlankM.shield, link = MI["US-Conn"].link, abbr = MI["US-Conn"].abbr, width = "expand"}

return MI