Module:Road data/strings/CAN/MB

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

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.