Module:Road data/strings/CAN/MB

MyWikiBiz, Author Your Legacy — Wednesday December 25, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/CAN/MB/doc

--[==[
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"
		}
	},
	name = {
		hook = "split",
		split = 200,
		above = "Provincial Route %route%",
		below = "Provincial Trunk Highway %route%"
	},
	link = {
		hook = "split",
		split = 200,
		above = "Manitoba Provincial Road %route% [dab||(%dab%)|]",
		below = "Manitoba Highway %route% [dab||(%dab%)|]"
	},
	abbr = {
		hook = "split",
		split = 200,
		above = "PR&nbsp;%route%",
		below = "PTH&nbsp;%route%"
	},
	orientation = "upright"
}

MB.PTH = {
	shield = {
		ifexists = true,
		default = "Manitoba Highway %route%.svg"
	},
	name = "Provincial Trunk Highway %route%",
	link = "Manitoba Highway %route% [dab||(%dab%)|]",
	abbr = "PTH&nbsp;%route%",
	orientation = "upright"
}

MB.MB = MB.Hwy

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

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
}

MB.TCH = {
	shield = "Manitoba Highway %route%.svg",
	shieldmain = {
		["16"] = {"Manitoba Highway %route%.svg", "Yellowhead Blank.svg" },	-- Manitoba Yellowhead Highway.svg
		default = "Manitoba Highway %route%.svg",
	},
	name = MB.PTH.name,
	link = "Manitoba Highway %route% [dab||(%dab%)|]",
	abbr = "PTH&nbsp;%route% (TCH)",
	orientation = "upright"
}

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

return MB