Jump to content

Module:Road data/strings/CAN/MB

Permanently protected module
From Wikipedia, the free encyclopedia

--[==[
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"]`.
]==]

-- Manitoba
local MB = {}

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


MB.Hwy = {
	shield = {
		hook = "split",
		split = 200,
		above = "Manitoba secondary %route%.svg",
		below = {
			ifexists = true,
			default = "Manitoba Highway %route%.svg",
			["Perimeter"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"}
			}
	},
	shieldmain = {
		hook = "split",
		split = 200,
		above = "Manitoba secondary %route%.svg",
		below = {
			ifexists = true,
			default = "Manitoba Highway %route%.svg",
			["16"] = {"Manitoba Highway %route%.svg","Manitoba Yellowhead Highway.svg"}, -- non-free logo for main shield
			["Perimeter"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"}
		}
	},
	name = {
		hook = "split",
		split = 200,
		above = "Provincial Route %route%",
		below = {
			default = "Provincial Trunk Highway %route%",
			["100"] = "Perimeter Highway",
			["101"] = "Perimeter Highway",
			["Perimeter"] = "Perimeter Highway"
			}
	},
	link = {
		hook = "split",
		split = 200,
		above = "Manitoba Provincial Road %route% [dab||(%dab%)|]",
		below = {
			default = "Manitoba Highway %route% [dab||(%dab%)|]",
			["100"] = "Perimeter Highway (Winnipeg)",
			["101"] = "Perimeter Highway (Winnipeg)",
			["Perimeter"] = "Perimeter Highway (Winnipeg)"
			}
	},
	abbr = {
		hook = "split",
		split = 200,
		above = "PR&nbsp;%route%",
		below = "PTH&nbsp;%route%",
		["Perimeter"] = "Perimeter Highway"
	},
	orientation = "upright"
}

MB.PTH = {
	shield = {
		ifexists = true,
		default = "Manitoba Highway %route%.svg",
		["Perimeter"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"}
		},
	shieldmain = {
		ifexists = true,
		default = "Manitoba Highway %route%.svg",
		["16"] = {"Manitoba Highway %route%.svg","Manitoba Yellowhead Highway.svg"}, -- non-free logo for main shield
		["Perimeter"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"}
		},
	name = {
		default = "Provincial Trunk Highway %route%",
		["100"] = "Perimeter Highway",
		["101"] = "Perimeter Highway",
		["Perimeter"] = "Perimeter Highway"
		},
	link = {
		default = "Manitoba Highway %route% [dab||(%dab%)|]",
		["100"] = "Perimeter Highway (Winnipeg)",
		["101"] = "Perimeter Highway (Winnipeg)",
		["Perimeter"] = "Perimeter Highway (Winnipeg)"
		},
	abbr = "PTH&nbsp;%route%",
	orientation = "upright"
}

MB.MB = MB.Hwy

MB.PR = {
	shield = "Manitoba secondary %route%.svg",
	name = "Provincial Road %route%",
	link = "Manitoba Provincial Road %route% [dab||(%dab%)|]",
	abbr = "PR&nbsp;%route%"
}

MB.Both = {
	shield = {
		["100"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"},
		["101"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"},
		default = ''
		},
	shieldmain = {
		["100"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"},
		["101"] = {"Manitoba Highway 100.svg","Manitoba Highway 101.svg"},
		default = ''
		},
	name = MB.Hwy.name,
	link = MB.Hwy.link,
	abbr = {
		["100"] = "Perimeter Highway",
		["101"] = "Perimeter Highway",
		default = ''
		},
	orientation = "upright"
}

MB["MB 1972"] = {
	shield = "Manitoba %route% (1972).svg",
	name = MB.PTH.name,
	link = MB.PTH.link,
	abbr = MB.PTH.abbr,
	orientation = "upright"
}

MB["PR 1972"] = {
	shield = "Manitoba secondary %route% (1972).svg",
	name = MB.PR.name,
	link = MB.PR.link,
	abbr = MB.PR.abbr
}

for k, v in pairs(MB) do if k:find ("TCH") then 
	v.shield = MB.PTH.shield
	v.shieldmain = MB.PTH.shieldmain
	v.name = MB.PTH.name
	v.link = MB.PTH.link
	v.abbr = MB.PTH.abbr .. " (TCH)"
	v.orientation = "upright"
	end
end

MB.Winnipeg = {
	shield = "Winnipeg city route %route%.svg",
	shieldmain = {
		["85"] = {"Winnipeg city route %route%.svg", "Manitoba Yellowhead Highway.svg" },	-- non-free logo for main shield
		default = "Winnipeg city route %route%.svg",
	},
	name = "Route&nbsp;%route%",
	link = "Winnipeg Route %route%",
	abbr = "Route&nbsp;%route%",
	orientation = ""
}

MB.YH = {
	shield = "Yellowhead Blank.svg",
	name = "Yellowhead Highway",
	link = "Yellowhead Highway",
	abbr = "YH",
	orientation = "upright"
}

-- add new types above this line if you want it to have the provincial highway browse and maint
for k, v in pairs(MB) do if k:find ("^%a") then
	v.maint = "[[Department of Infrastructure (Manitoba)|Department of Infrastructure]]"
	v.browse = "[[List of Manitoba provincial highways|Manitoba provincial highways]]"
	v.browselinks = {
		[1] = "[[List of Winnipeg City Routes|Winnipeg City Routes]]"
	}
	end
end

MB.Winnipeg.maint = "[[Winnipeg|City of Winnipeg]]"

return MB