--[==[ 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 followinginto 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"]`.]
-- Minnesotalocal MN =
local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(MN, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]Minnesota)"
MN.I.link = MN.I.law = "
MS ยง 161.%section%[subsection||(%subsection%)|]]"for k, v in pairs(MN) do if k:find ("^I") then v.link = MN.I.link endendMN["I-Alt"].link = "Interstate %route% Alternate (Minnesota)"
MN.BL.link = MN.I.base .. " Business" .. suffix
MN.US.name = "U.S. Highway %route%"MN.US.link = "U.S. Route %route% in Minnesota"MN.US.law = MN.I.law
for k, v in pairs(MN) do if k:find ("^US %d") then v.name = MN.US.name v.link = MN.US.link endend
for _,auxType in ipairs do local spec = MN[" aux "][auxType] for k, v in pairs(MN) do if k:find (auxType) then if k:find ("^US") then v.name = MN.US.name .. " " .. spec.name v.link = MN.US.base .. " " .. spec.name .. suffix end end endendMN["US 1961"].shield = "US %route% (MN 1961).svg"MN["US-Old"].shield = MN["US 1961"].shieldMN["US-Old"].link = "Old " .. MN.US.base .. suffixMN["US-Old"].abbr = "Old " .. MN.US.abbr
MN.MN = MN.TH = MN.MN
MN["MN-Bus"] =
for _,year in ipairs do MN["MN " .. year] = end
MN["MN 1920"].link = "Minnesota State Highway %route% [dab|| (%dab%)|(1920)]"MN["MN 1920"].abbr = "TH %route%"MN["MN 1934"].abbr = MN["MN 1920"].abbrMN["MN 1975"].shield = "MN-%route%.svg"MN["MN 1975"].shieldmain = "MN-%route%.svg"
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(MN) do if k:find ("^%a") then v.maint = "MnDOT" v.browse = "Minnesota Trunk Highways" v.browselinks = endend
local CSAHshield =
MN.CSAH =
local CRshield =
MN.CR =
MN.Inter =
MN.IL = MN.IA = MN.ND = MN.SD = MN.WI = MN.MB = MN.ON =
-- The below are for linking internally on 'List of Minnesota state highways serving state institutions'
MN.MN2 = MN.MN75 =
MN.MN48 = return MN