Module:Road data/strings/CAN/ON
MyWikiBiz, Author Your Legacy — Tuesday November 26, 2024
< Module:Road data | strings | CAN
Jump to navigationJump to searchDocumentation for this module may be created at Module:Road data/strings/CAN/ON/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"]`. ]==] -- Ontario local ON = {} local util = require("Module:Road data/util") util.addAll(ON, require("Module:Road data/strings/CAN")) ON.ON = { -- shield and shieldmain are reversed currently shield = { ["2A"] = "Ontario 2A.svg", --"Ontario 2A crown.svg", ["7A"] = "Ontario 7A.svg", --"Ontario 7A crown.svg", ["58A"] = "Ontario 58A.svg", --"Ontario 58A crown.svg", ["DVP"] = "DVP Shield.svg", ["Gardiner"] = "Gardiner Shield.svg", ["QEW"] = "Ontario QEW.svg", --"Ontario QEW crown.svg", ["451"] = "Ontario QEW.svg", --"Ontario QEW crown.svg", default = { hook = "splitlen", split = 4, above = { ifexists = true, default = "Ontario Highway %route%.svg", otherwise = "" }, below = { hook = "split", split = 500, above = "Ontario Highway %route%.svg", below = "Ontario %route%.svg" } } }, shieldmain = { default = "Ontario %route%.svg", ["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"}, }, name = { ["DVP"] = "Don Valley Parkway", ["Gardiner"] = "Gardiner Expressway", ["QEW"] = "Queen Elizabeth Way", ["451"] = "Queen Elizabeth Way", default = "Highway %route%" }, link = { ["DVP"] = "Don Valley Parkway", ["Gardiner"] = "Gardiner Expressway", ["QEW"] = "Queen Elizabeth Way", ["451"] = "Queen Elizabeth Way", default = "Ontario Highway %route%" }, abbr = { ["DVP"] = "Don Valley Parkway", ["Gardiner"] = "Gardiner Expressway", ["QEW"] = "QEW", ["451"] = "Queen Elizabeth Way", default = "Highway %route%" }, } ON.Hwy = ON.ON ON.Highway = ON.ON 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.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% Toll.svg", --"Ontario %route% crown toll.svg", shieldmain = "Ontario %route% Toll.svg", name = ON.ON.link, link = ON.ON.link, abbr = ON.ON.abbr, } ON.ETR = { shield = {["407"] = "407 Express Toll Route Traffic Sign.svg"}, name = ON.ON.link, link = ON.ON.link, abbr = ON.ON.abbr, width = { ["407"] = "12", default = "25" } } ON.Both = { shield = {["407"] = {"407 Express Toll Route Traffic Sign.svg", "Ontario 407 toll.svg"}}, name = ON.ON.link, link = ON.ON.link, abbr = ON.ON.abbr, } 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, } ON.TCH = { shield = "Trans-Canada Highway shield.svg", name = "Trans-Canada Highway", link = "Trans-Canada Highway", abbr = "TCH", } ON.QEW = { shield = "Ontario QEW.svg", shieldmain = "Ontario QEW crown.svg", name = "Queen Elizabeth Way", link = "Queen Elizabeth Way", abbr = "QEW", color = "MUTCDblue" } ON.KLR = { shield = "RR %route% jct.svg", shieldmain = "KL Road %route%.svg", name = "Kawartha Lakes Road %route%", link = {ifexists = true, default = "Kawartha Lakes Road %route%"}, abbr = "City Road %route%", } 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", ["Kawartha Lakes"] = "KL Road %route%.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 = "%county% " .. type .. " Road %route%", link = { ifexists = true, default = "%county% " .. type .. " Road %route%" }, abbr = type .. " Road %route%", width = "square", color = "default" } 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 = { ifexists = true, default = "%county% Regional Highway %route%" }, abbr = "Regional Highway %route%", color = "default" } ON.CH = { shield = regionalShields, shieldmain = regionalShieldmains, name = "%county% County Highway %route%", link = { ifexists = true, default = "%county% County Highway %route%" }, abbr = "County Highway %route%", color = "default" } ON.Toronto = ON.road ON.Toronto.color = "MUTCDBlue" ON.I = {alias = {module = "USA", type = "I"}} ON.NY = {alias = {module = "USA/NY", type = "NY"}} ON.Tour = {alias = {module = "USA/regional/Tour", type = "Tour"}} return ON