Jump to content

Module:Road data/strings/USA/MN

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 01:27, 1 October 2020 (period shield). 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))
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]

-- Minnesota
local MN = {}

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

local suffix = " ([dab||%dab%, |]Minnesota)"
local maint = "[[Minnesota Department of Transportation|MnDOT]]"

MN[" common "] = {
	browse = {
		{link = "Minnesota Highway System", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Minnesota", name = "Interstate"},
			{link = "List of U.S. Highways in Minnesota", name = "U.S."},
			{link = "List of state highways in Minnesota", name = "State"},
			{link = "Legislative route (Minnesota)", name = "Legislative routes"}
		}
	}
}

MN.I.maint = maint
MN.I.link = {	["35E"] = "Interstate 35E (Minnesota)",
        		["35W"] = "Interstate 35W (Minnesota)",
        		["335"] = "Interstate 335 (Minnesota)",
        		default = {hook = "splitlen",
        					split = 3,
        					above = "Interstate %route%",
        					below = "Interstate %route% in Minnesota"}}
                           
MN["I 1957"].link = MN.I.link
MN["I 1961"].link = MN.I.link           
MN.BL.link = MN.I.base .. " Business" .. suffix
MN["I-Alt"].link = "Interstate %route% Alternate (Minnesota)"

MN.US.maint = maint
MN.US.name = "U.S. Highway %route%"
MN.US.link = "U.S. Route %route% in Minnesota"
MN["US 1961"].shield = "US %route% (MN 1961).svg"

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

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

MN.MN = {shield = {hook = "split",
                   split = 100,
                   above = "MN-%route% wide.svg",
                   below = "MN-%route%.svg"},
		 name = "Trunk Highway %route%",
         link = "Minnesota State Highway %route% [dab|| (%dab%)|]",
         abbr = "MN&nbsp;%route%",
         width = "expand"}

MN.TH = MN.MN

MN["MN-Bus"] = {shield = "MN-%route% Business.svg",
				name = "Trunk Highway %route% Business",
                link = "Minnesota State Highway %route% Business",
                abbr = MN.MN.abbr .. " Bus.",
                bannersuffix = "green"}

MN.CSAH = {shield = {arg = "county",
                   default    = "County %route% square.svg",
                   Anoka      = "County %route% (MN).svg",
                   Benton     = "County %route% (MN).svg",
                   ["Blue Earth"] = "County %route% (MN).svg",
                   Brown      = "County %route% (MN).svg",
                   Chisago    = "County %route% (MN).svg",
                   Clearwater = "County %route% (MN).svg",
                   Cook       = "County %route% square.svg",
                   Cottonwood = "County %route% (MN).svg",
                   Dakota     = "County %route% (MN).svg",
                   Fillmore   = "County %route% (MN).svg",
                   Freeborn   = "County %route% (MN).svg",
                   Goodhue    = "County %route% (MN).svg",
                   Hennepin   = "County %route% (MN).svg",
                   Isanti     = "County %route% (MN).svg",
                   Kittson    = "County %route% (MN).svg",
                   Lincoln    = "County %route% (MN).svg",
                   Martin     = "County %route% (MN).svg",
                   Mower      = "County %route% (MN).svg",
                   Murray     = "County %route% (MN).svg",
                   Nicollet   = "County %route% (MN).svg",
                   Nobles     = "County %route% (MN).svg",
                   Pennington = "County %route% (MN).svg",
                   Pope       = "County %route% (MN).svg",
                   Ramsey     = "County %route% (MN).svg",
                   ["Red Lake"]   = "County %route% (MN).svg",
                   Redwood    = "County %route% (MN).svg",
                   ["St. Louis"]  = "County %route% (MN).svg",
                   Scott      = "County %route% (MN).svg",
                   Stearns    = "County %route% (MN).svg",
                   Washington = "County %route% (MN).svg",
                   Watonwan   = "County %route% (MN).svg",
                   Wright     = "County %route% (MN).svg",
                   ["Yellow Medicine"] = "County %route% (MN).svg"},
           name =  "County Road %route%",
           link =  {ifexists = true,
                   default = "County State-Aid Highway %route% ([county||%county% County, |]Minnesota)",
                   otherwise = ""},
           abbr =  "CSAH&nbsp;%route%",
   bannersuffix =  {
			hook = "match",
			entry = "shield",
			actions = {
				-- %S+ represents a nonempty sequence of characters containing no spaces.
				-- Also need to escape parentheses and dot with %.
				["County %S+ %(MN%)%.svg"] = "county"
			}
		}
	}

MN.CR = {shield = {arg = "county",
                   default    = "County %route% square.svg",
                   Anoka      = "County %route% (MN).svg",
                   ["Blue Earth"] = "County %route% (MN).svg",
                   Cook       = "County %route% square.svg",
                   Hennepin   = "County %route% (MN).svg",
                   Mower      = "County %route% (MN).svg",
                   Murray     = "County %route% (MN).svg",
                   Ramsey     = "County %route% (MN).svg",
                   ["Red Lake"]   = "County %route% (MN).svg",
                   Inter      = "Inter County Route %route% MN.svg"},
         name =    {arg = "county",
         	   default = MN.CSAH.name,
         	   Inter = "Inter-"..MN.CSAH.name},
	 link =    {ifexists = true,
                   default = "County Road %route% ([county||%county% County, |]Minnesota)",
                   otherwise = ""},
         abbr =    {arg = "county",
                   default    = "CR&nbsp;%route%",
                   Inter      = "Inter-County&nbsp;%route%"},
    bannersuffix = {arg = "county",
		   Inter = "county",
		   default = {
				hook = "match",
				entry = "shield",
				actions = {
					-- %S+ represents a nonempty sequence of characters containing no spaces.
					-- Also need to escape parentheses and dot with %.
					["County %S+ %(MN%)%.svg"] = "county"
				}
			}
		}
}

MN["MN 1920"] = {shield = "MN-%route% (1920).svg",
				 name = MN.MN.name,
                 link = "Minnesota State Highway %route% [dab|| (%dab%)|(1920)]",
                 abbr = "TH&nbsp;%route%"}

MN["MN 1975"] = {shield = "MN-%route%.svg",
				 name = MN.MN.name,
                 link = MN.MN.link,
                 abbr = MN.MN.abbr}

MN["MN 1968"] = {shield = "MN-%route% (1968).svg",
				 name = MN.MN.name,
                 link = MN.MN.link,
                 abbr = MN.MN.abbr}
                 
MN["MN 1948"] = {shield = "MN-%route% (1948).svg",
				 name = MN.MN.name,
                 link = MN.MN.link,
                 abbr = MN.MN.abbr}   
                 
MN["MN 1934"] = {shield = "MN-%route% (1934).svg",
				 name = MN.MN.name,
                 link = MN.MN.link,
                 abbr = MN["MN 1920"].abbr}
                 
MN.IL = {alias = {module = "USA/IL", type = "IL"}}
MN.IA = {alias = {module = "USA/IA", type = "IA"}}
MN.ND = {alias = {module = "USA/NE", type = "ND"}}
MN.SD = {alias = {module = "USA/SD", type = "SD"}}
MN.WI = {alias = {module = "USA/WI", type = "WI"}}                 
MN.MB = {alias = {module = "CAN/MB", type = "Hwy"}}                 
MN.ON = {alias = {module = "CAN/ON", type = "Hwy"}}                 

return MN