Module:Road data/strings/CAN/MB

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

--[==[
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 Road %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
}

for k, v in pairs(MB) do if k:find ("TCH") then 
	v.shield = "Manitoba Highway %route%.svg"
	v.shieldmain = {
		["16"] = {"Manitoba Highway %route%.svg", "Yellowhead Blank.svg" },	-- Manitoba Yellowhead Highway.svg
		default = "Manitoba Highway %route%.svg",
	}
	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", "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 = ""
	},
}

-- 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