Module:Road data/strings/CAN/ON

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

-- Ontario
local ON = {}

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

ON.ON = {
	shield = {
		["Allen"] = "", --"Allen Road Shield.svg",
		["DVP"] = "DVP Shield.svg",
		["Gardiner"] = "Gardiner Shield.svg",
		["Veterans"] = "",
		["Hanlon"] = "",
		["QEW"] = "Ontario QEW crown.svg",
		["451"] = "Ontario QEW crown.svg",
		default = {
			hook = "split",
			split = 500,
			above = "Ontario Highway %route%.svg",
			below = "Ontario %route% crown.svg"
		}
	},
	shieldmain = {
		["7"] = {"Ontario %route%.svg", "TCH-COR.svg"},
		["11"] = {"Ontario %route%.svg", "Trans-Canada Highway shield.svg"},
		["12"] = {"Ontario %route%.svg", "TCH-COR.svg"},
		["17"] = {"Ontario %route%.svg", "TCH-LSR.svg", "TCH-OVR.svg"},
		["21"] = {"Ontario %route%.svg", "BluewaterTrail_infobox.svg"},
		["66"] = {"Ontario %route%.svg", "TCH-NOR.svg"},
		["69"] = {"Ontario %route%.svg", "TCH-GBR.svg"},
		["71"] = {"Ontario %route%.svg", "TCH-NOR.svg"},
		["400"] = {"Ontario %route%.svg", "TCH-GBR.svg"},
		["401"] = {"Ontario %route%.svg", "MC-Freeway.svg"},
		["417"] = {"Ontario %route%.svg", "TCH-OVR.svg"},
		["QEW"] = "Ontario QEW.svg",
		["451"] = "Ontario QEW.svg",
		default = {
			hook = "split",
			split = 500,
			above = "Ontario Highway %route%.svg",
			below = "Ontario %route%.svg"
		}
	},
	shieldlist = {
		["QEW"] = "Ontario QEW.svg",
		["451"] = "Ontario QEW.svg",
		default = {
			hook = "split",
			split = 500,
			above = "Ontario Highway %route%.svg",
			below = "Ontario %route%.svg"
		}
	},
	shieldto = {
		["Allen"] = "", --"Allen Road Shield.svg",
		["DVP"] = "DVP Shield.svg",
		["Gardiner"] = "Gardiner Shield.svg",
		["Veterans"] = "",
		["Hanlon"] = "",
		["QEW"] = "Ontario To QEW crown.svg",
		["451"] = "Ontario To QEW crown.svg",
		default = {
			hook = "split",
			split = 500,
			above = "Ontario Highway %route%.svg",
			below = "Ontario To %route% crown.svg"
		}
	},
	name = {
		["Allen"] = "William R. Allen Road",
		["DVP"] = "Don Valley Parkway",
		["Gardiner"] = "Gardiner Expressway",
		["Hanlon"] = "Hanlon Expressway",
		["Veterans"] = "Veterans Memorial Parkway",
		["QEW"] = "Queen Elizabeth Way",
		["451"] = "Queen Elizabeth Way",
		default = "Highway %route%"
	},
	link = {
		["Allen"] = "Allen Road",
		["DVP"] = "Don Valley Parkway",
		["Gardiner"] = "Gardiner Expressway",
		["Hanlon"] = "Hanlon Expressway",
		["Veterans"] = "Veterans Memorial Parkway",
		["QEW"] = "Queen Elizabeth Way",
		["451"] = "Queen Elizabeth Way",
		default = "Ontario Highway %route%"
	},
	abbr = {
		["Allen"] = "Allen Road",
		["DVP"] = "Don Valley Parkway",
		["Gardiner"] = "Gardiner Expressway",
		["QEW"] = "QEW",
		["451"] = "QEW",
		default = "Highway %route%"
	},
	orientation = "upright"
	
}
ON.Hwy = ON.ON
ON.Highway = ON.ON

ON.Fwy = {
	shield = ON.ON.shield,
	shieldmain = ON.ON.shieldmain,
	shieldlist = ON.ON.shieldlist,
	name = ON.ON.name,
	link = ON.ON.link,
	abbr = ON.ON.abbr,
	color = "MUTCDblue",
	orientation = "upright"
	
}

ON.Secondary = {
	shield = "Ontario Highway %route%.svg",
	name = ON.ON.name.default,
	link = ON.ON.link.default,
	abbr = ON.ON.abbr.default,
	
}

ON.Sec = ON.Secondary

ON.Shield = {
	shield = {
		["Allen"] = "", --"Allen Road Shield.svg",
		["DVP"] = "DVP Shield.svg",
		["Gardiner"] = "Gardiner Shield.svg",
		["Veterans"] = "",
		["Hanlon"] = "",
		["QEW"] = "Ontario QEW.svg",
		["451"] = "Ontario QEW.svg",
		default = {
			hook = "split",
			split = 500,
			above = "Ontario Highway %route%.svg",
			below = "Ontario %route%.svg"
		}
	},
	shieldmain = ON.ON.shieldmain,
	shieldlist = ON.ON.shieldlist,
	shieldto = {
		["Allen"] = "", --"Allen Road Shield.svg",
		["DVP"] = "DVP Shield.svg",
		["Gardiner"] = "Gardiner Shield.svg",
		["Veterans"] = "",
		["Hanlon"] = "",
		["QEW"] = "Ontario QEW.svg",
		["451"] = "Ontario QEW.svg",
		default = {
			hook = "split",
			split = 500,
			above = "Ontario Highway %route%.svg",
			below = "Ontario %route%.svg"
			}
	},
	name = ON.ON.name,
	link = ON.ON.link,
	abbr = ON.ON.abbr,
	orientation = "upright"		
	
}

ON.Tertiary = {
	shield = "Ontario Highway %route%.svg",
	name = ON.ON.name.default,
	link = ON.ON.link.default,
	abbr = ON.ON.abbr.default,
	orientation = "upright"

}

ON.Ter = ON.Tertiary

ON.Toll = {
	shield = "Ontario %route% crown toll.svg",
	shieldmain = "Ontario %route% Toll.svg",
	shieldlist = "Ontario %route% Toll.svg",
	name = ON.ON.name.default,
	link = ON.ON.link.default,
	abbr = ON.ON.abbr.default,
	orientation = "upright"

}

ON["Toll Shield"] = {
	shield = {
		default = "Ontario Highway %route% Toll.svg",
		["407"] = "Ontario Highway 407E.svg"
	},
	shieldmain = ON.Toll.shieldmain,
	shieldlist = ON.Toll.shieldlist,
	name = ON.ON.name,
	link = ON.ON.link,
	abbr = ON.ON.abbr,
	orientation = "upright"
}

ON.TS = ON["Toll Shield"]

ON.ETR = {
	shield = {["407"] = "Highway407crest.svg", default = ''},
	shieldmain = {["407"] = "407 Express Toll Route Traffic Sign.svg", default = ''},
	name = ON.ON.name.default,
	link = ON.ON.link.default,
	abbr = ON.ON.abbr.default,
	orientation = "upright"
}

ON.Both = {
	shield = {["407"] = {"Highway407crest.svg", "Ontario 407 crown toll.svg"}, default = ''},
	shieldmain = {["407"] = {"407 Express Toll Route Traffic Sign.svg", "Ontario 407 Toll.svg"}, default = ''},
	shieldlist = {["407"] = {"Highway407crest.svg", "Ontario 407 Toll.svg"}, default = ''},
	name = ON.ON.name.default,
	link = ON.ON.link.default,
	abbr = ON.ON.abbr.default,
	orientation = "upright"
}

ON["ON 1960"] = {
	shield = "Ontario King's Highway %route%.svg",
	name = "King's Highway %route%",
	link = ON.ON.link.default,
	abbr = ON.ON.abbr.default,
	orientation = "upright"
}

for k, v in pairs(ON) do if k:find ("TCH") then 
	v.shield = "Trans-Canada Highway shield.svg"
	v.orientation = "upright"
	end
end

ON.QEW = {
	shield = "Ontario QEW crown.svg",
	shieldmain = "Ontario QEW.svg",
	shieldto = "Ontario To QEW crown.svg",
	name = "Queen Elizabeth Way",
	link = "Queen Elizabeth Way",
	abbr = "QEW",
	color = "MUTCDblue",
	orientation = "upright"
	
}

ON.Parkway = {
	shield = "",
	name = "%route% Parkway",
	link = "%route% Parkway",
	abbr = "%route% Parkway",
	color = "hist"
}

-- add new types above this line if you want it to have the provincial highway browse and maint
for k, v in pairs(ON) do if k:find ("^%a") then
	v.maint = "the [[Ministry of Transportation of Ontario]]"
	end
end

ON.KLR = {
	shield = "RR %route% jct.svg",
	shieldmain = "KL Road %route%.svg",
	name = "Kawartha Lakes Road %route%",
	link = "Kawartha Lakes Road %route%",
	abbr = "City Road %route%",
	
}
ON["Kawartha Lakes"] = ON.KLR
ON.CKL = ON.KLR
ON.KLinfo = ON.KLR
ON["Kawartha Lake"] = ON.KLR
ON.KL = ON.KLR

local regionalShields = {
	arg = "county",
	default = "RR %route% jct.svg",
	["Grey"] = "RR %route% jct blue.svg",
	["Hamilton"] = "RR %route% jct blue.svg",
	["Niagara"] = "RR %route% jct blue.svg",
	["Peel"] = "Peel RR %route% jct.svg",
	["Halton"] = "Halton RR %route% jct.svg"
}

local regionalShieldmains = {
	arg = "county",
	default = "RR %route% jct.svg",
	["Durham"] = "Durham Regional %route%.svg",
	["Essex"] = "Essex County Road %route%.png",
	["Halton"] = "Halton Regional Road %route%.svg",
	["Hamilton"] = "Hamilton Ontario Road %route% Shield.svg",
	["Niagara"] = "Niagara Regional Road %route%.svg",
	["Peel"] = "Peel Regional Road %route%.svg",
	["Perth"] = "Perth County Line %route%.svg",
	["Simcoe"] = "Simcoe County Road %route%.jpg",
	["Sudbury"] = "Greater Sudbury %route%.svg",
	["Waterloo"] = "Waterloo Regional Road %route%.svg",
	["York"] = "York Regional Road %route%.svg"
}
                         
for _,type in ipairs({"County", "District", "Municipal", "Regional"}) do
	ON[type] = {
		shield = regionalShields,
		shieldmain = regionalShieldmains,
		name = {
			arg = "%county%",
			default = "%county% " .. type .. " Road %route%",
			Bruce = "%county% Road %route%"
			},
		link = "%county% " .. type .. " Road %route%",
		abbr = type .. " Road %route%",
		width = "square",
		color = "default",
		maint = "%county% " .. type .. " Transportation Department",
	}
end

ON.CR = ON.County
ON.DR = ON.District
ON.MR = ON.Municipal
ON.RR = ON.Regional

ON.RH = {
	shield = regionalShields,
	shieldmain = regionalShieldmains,
	name = "%county% Regional Highway %route%",
	link = "%county% Regional Highway %route%",
	abbr = "Regional Highway %route%",
	color = "default",
	maint = ON.Regional.maint
	
}

ON.CH = {
	shield = regionalShields,
	shieldmain = regionalShieldmains,
	name = "%county% County Highway %route%",
	link = "%county% County Highway %route%",
	abbr = "County Highway %route%",
	color = "default",
	maint = ON.County.maint
}

ON.Toronto = {
	shield = {
		["Allen"] = "Allen Road Shield.svg",
		["DVP"] = "DVP Shield.svg",
		["Gardiner"] = "Gardiner Shield.svg",
		default = ""
	},
	name = {
		["Allen"] = "William R. Allen Road",
		["DVP"] = "Don Valley Parkway",
		["Gardiner"] = "Gardiner Expressway",
		default = "%route%"
	},
	link = {
		["Allen"] = "Allen Road",
		["DVP"] = "Don Valley Parkway",
		["Gardiner"] = "Gardiner Expressway",
		default = ""
	},
	abbr = {
		["Allen"] = "Allen Road",
		["DVP"] = "DVP",
		["Gardiner"] = "Gardiner Expressway",
		default = "%route%"
	},
	color = "MUTCDblue",
	orientation = "upright",
	maint = ""
}
         
ON.I = {alias = {module = "USA", type = "I"}}
ON.NY = {alias = {module = "USA/NY", type = "NY"}}
ON.Tour = {alias = {module = "USA/regional/Tour", type = "Tour"}}

-- Types down here are for compatability with jcon

for _,type in ipairs({"Brant", "Bruce", "Carleton", "Dufferin", "Elgin", "Essex", "Frontenac", "Grey", "Haldimand", "Haliburton", "HH", "Hastings", "Huron", "Lambton", "Lanark", "Leeds and Grenville",
					"Lennox and Addington", "Middlesex", "Norfolk", "Northumberland", "Oxford", "Perth", "Peterborough", "Prescott and Russell", "Prince Edward", "Renfrew", "Simcoe",
						"Stormont, Dundas and Glengarry", "Wellington"}) do
	ON[type] = {
		shield = "RR %route% jct.svg",
		shieldmain = "RR %route% jct.svg",
		name = "County Road %route%",
		link = type .. " County Road %route%",
		abbr = "County Road %route%",
		width = "square",
		color = "default",
		maint = type .. " County Transportation Department",
	}
end
ON.Grey.shield = "RR %route% jct blue.svg"
ON.Essex.shieldmain = "Essex County Road %route%.png"
ON.Perth.shieldmain = "Perth County Line %route%.svg"
ON.Simcoe.shieldmain = "Simcoe County Road %route%.jpg"

ON.LA = ON["Lennox and Addington"]
ON.LG = ON["Leeds and Grenville"]
ON.PB = ON.Peterborough
ON.PR = ON["Prescott and Russell"]
ON.PEC = ON["Prince Edward"]
ON["Stormont Dundas and Glengarry"] = ON["Stormont, Dundas and Glengarry"]
ON.SDG = ON["Stormont, Dundas and Glengarry"]


for _,type in ipairs({"Brant County Highway", "Haldimand County Highway", "Norfolk County Highway"}) do
	ON[type] = {
		shield = "RR %route% jct.svg",
		shieldmain = "RR %route% jct.svg",
		name = "County Highway %route%",
		link = type .. " %route%",
		abbr = "County Highway %route%",
		width = "square",
		color = "default",
		maint = ""
	}
end
ON["Brant County Highway"].maint = "Brant County Transportation Department"
ON["Haldimand County Highway"].maint = "Haldimand County Transportation Department"
ON["Norfolk County Highway"].maint = "Norfolk County Transportation Department"

ON.BCH = ON["Brant County Highway"]
ON.HCH = ON["Haldimand County Highway"]
ON.NCH = ON["Norfolk County Highway"]

for _,type in ipairs({"Chatham-Kent", "Cornwall", "Quinte West", "Greater Sudbury"}) do
	ON[type] = {
		shield = "RR %route% jct.svg",
		shieldmain = "RR %route% jct.svg",
		name = "Municipal Road %route%",
		link = type .. " Municipal Road %route%",
		abbr = "Municipal Road %route%",
		width = "square",
		color = "default",
		maint = type .. " Municipal Transportation Department",
	}
end
ON["Greater Sudbury"].shieldmain = "Greater Sudbury %route%.svg"

ON["Chatham Kent"] = "Chatham-Kent Municipal Transportation Department"
ON.CK = ON["Chatham-Kent"]
ON.QW = ON["Quinte West"]
ON.CQW = ON["Quinte West"]
ON.QWinfo = ON["Quinte West"]
ON.Sudbury = ON["Greater Sudbury"]
ON.GS = ON["Greater Sudbury"]
ON.SB = ON["Greater Sudbury"]

for _,type in ipairs({"Durham", "Halton", "Hamilton", "Niagara", "Ottawa-Carleton", "Peel", "Waterloo", "York"}) do
	ON[type] = {
		shield = "RR %route% jct.svg",
		shieldmain = "RR %route% jct.svg",
		name = "Regional Road %route%",
		link = type .. " Regional Road %route%",
		abbr = "Regional Road %route%",
		width = "square",
		color = "default",
		maint = type .. " Regional Transportation Department",
	}
end
ON.Durham.shieldmain = "Durham Regional %route%.svg"
ON.Halton.shield = "RR %route% jct blue.svg"
ON.Halton.shieldmain = "Halton Regional Road %route%.svg"
ON.Hamilton.shield = "RR %route% jct blue.svg"
ON.Hamilton.shieldmain = "Hamilton Ontario Road %route% Shield.svg"
ON.Niagara.shield = "Halton RR %route% jct.svg"
ON.Niagara.shieldmain = "Niagara Regional Road %route%.svg"
ON.Peel.shield = "Peel RR %route% jct.svg"
ON.Peel.shieldmain = "Peel Regional Road %route%.svg"
ON.Waterloo.shieldmain = "Waterloo Regional Road %route%.svg"
ON.York.shieldmain = "York Regional Road %route%.svg"

ON.OC = ON["Ottawa-Carleton"]
ON.YR = ON.York

ON["Durham Regional Highway"] = {
		shield = "RR %route% jct.svg",
		shieldmain = "Durham Regional Highway %route%.svg",
		shieldlist = "Durham Regional Highway %route%.svg",
		name = "Durham Regional Highway %route%",
		link = "Durham Regional Highway %route%",
		abbr = "Regional Highway %route%",
		width = "square",
		color = "default",
		maint = "Durham Regional Transportation Department",
}
ON.DRH = ON["Durham Regional Highway"]

ON.Muskoka = {
	shield = "RR %route% jct.svg",
	shieldmain = "RR %route% jct.svg",
	name = "Muskoka District Road %route%",
	link = "Muskoka District Road %route%",
	abbr = "District Road %route%",
	width = "square",
	color = "default",
	maint = "Muskoka District Transportation Department",
}

ON.Ottawa = {
	shield = "RR %route% jct.svg",
	shieldmain = "Ottawa Road %route% Shield.png",
	name = "Ottawa Road %route%",
	link = "Ottawa Road %route%",
	abbr = "Ottawa Road %route%",
	width = "square",
	color = "default",
	maint = "Ottawa Transportation Department",
	
}

for _,type in ipairs({"Central Frontenac", "Frontenac Islands", "North Dumfries", "North Frontenac", "South Frontenac", "Tyendinaga", "Wellesley", "Wilmot", "Wollaston", "Wollwich"}) do
	ON[type] = {
		shield = "",
		name = "Township Road %route%",
		link = type .. " Township Road %route%",
		abbr = "Township Road %route%",
		color = "default"
	}
end
ON["Central Frontenac"].shield = "RR %route% jct.svg"
ON["Central Frontenac"].shieldmain = "Central Frontenac Township Road %route%.svg"
ON["C Frontenac"] = ON["Central Frontenac"]
ON.FI = ON["Frontenac Islands"]
ON["N Dumfries"] = ON["North Dumfries"]
ON["N Frontenac"] = ON["North Frontenac"]
ON["S Frontenac"] = ON["South Frontenac"]

ON["Perth County Line"] = {
		shield = "",
		name = "Perth County Line %route%",
		link = "Perth County Line %route%",
		abbr = "Perth County Line %route%",
		color = "default"
}
ON.PCL = ON["Perth County Line"]

ON.Kingston = {
	shield = "",
	name = "Kingston Road %route%",
	link = "Kingston Road %route%",
	abbr = "Kingston Road %route%",
	color = "default"
}

return ON