Module:Road data/strings/CAN/ON and Module:Road data/strings/CAN/ON/sandbox: Difference between pages
(Difference between pages)
imported>Kingdom of Baustralia Tollways use blue. 407 will use white like 412 and 418 which had tolls removed |
imported>BrandonXLF Create sandbox version of Module:Road data/strings/CAN/ON with counties/regions |
||
| Line 28: | Line 28: | ||
["Hanlon"] = "", | ["Hanlon"] = "", | ||
["SWSE"] = "Ontario 17 crown.svg", | ["SWSE"] = "Ontario 17 crown.svg", | ||
["QEW"] = "Ontario QEW crown.svg", | ["QEW"] = "Ontario QEW crown.svg", | ||
["451"] = "Ontario QEW crown.svg", | ["451"] = "Ontario QEW crown.svg", | ||
default = { | default = { | ||
hook = "split", | hook = "split", | ||
| Line 55: | Line 52: | ||
["Hanlon"] = {"Ontario 6.svg", "Ontario 7.svg"}, | ["Hanlon"] = {"Ontario 6.svg", "Ontario 7.svg"}, | ||
["SWSE"] = {"Ontario 17.svg", "Trans-Canada Highway shield.svg"}, | ["SWSE"] = {"Ontario 17.svg", "Trans-Canada Highway shield.svg"}, | ||
["QEW"] = "Ontario QEW.svg", | ["QEW"] = "Ontario QEW.svg", | ||
["451"] = "Ontario QEW.svg", | ["451"] = "Ontario QEW.svg", | ||
default = { | default = { | ||
hook = "split", | hook = "split", | ||
| Line 67: | Line 61: | ||
} | } | ||
}, | }, | ||
shieldlist = { | shieldlist = { | ||
["Conestoga"] = {"Ontario 7.svg", "Ontario 8.svg", "Ontario 85.svg"}, | ["Conestoga"] = {"Ontario 7.svg", "Ontario 8.svg", "Ontario 85.svg"}, | ||
["Hanlon"] = {"Ontario 6.svg", "Ontario 7.svg"}, | ["Hanlon"] = {"Ontario 6.svg", "Ontario 7.svg"}, | ||
["SWSE | ["SWSE"] = {"Ontario 17.svg"}, | ||
["QEW"] = "Ontario QEW.svg", | ["QEW"] = "Ontario QEW.svg", | ||
["451"] = "Ontario QEW.svg", | ["451"] = "Ontario QEW.svg", | ||
default = { | default = { | ||
hook = "split", | hook = "split", | ||
| Line 96: | Line 79: | ||
["DVP"] = "DVP Shield.svg", | ["DVP"] = "DVP Shield.svg", | ||
["Gardiner"] = "Gardiner Shield.svg", | ["Gardiner"] = "Gardiner Shield.svg", | ||
["Veterans"] = "", | ["Veterans"] = "", | ||
["Conestoga"] = "", | |||
["Hanlon"] = "", | |||
["SWSE"] = "Ontario To 17 crown.svg", | ["SWSE"] = "Ontario To 17 crown.svg", | ||
["QEW"] = "Ontario To QEW crown.svg", | ["QEW"] = "Ontario To QEW crown.svg", | ||
["451"] = "Ontario To QEW crown.svg", | ["451"] = "Ontario To QEW crown.svg", | ||
default = { | default = { | ||
hook = "split", | hook = "split", | ||
| Line 109: | Line 90: | ||
above = "Ontario Highway %route%.svg", | above = "Ontario Highway %route%.svg", | ||
below = "Ontario To %route% crown.svg" | below = "Ontario To %route% crown.svg" | ||
} | } | ||
}, | }, | ||
| Line 136: | Line 97: | ||
["DVP"] = "Don Valley Parkway", | ["DVP"] = "Don Valley Parkway", | ||
["Gardiner"] = "Gardiner Expressway", | ["Gardiner"] = "Gardiner Expressway", | ||
["Veterans"] = "Veterans Memorial Parkway", | ["Veterans"] = "Veterans Memorial Parkway", | ||
["Conestoga"] = "Conestoga Parkway", | ["Conestoga"] = "Conestoga Parkway", | ||
["Hanlon"] = "Hanlon Expressway", | ["Hanlon"] = "Hanlon Expressway", | ||
["SWSE"] = "Southwest Bypass / Southeast Bypass", | ["SWSE"] = "Southwest Bypass / Southeast Bypass", | ||
["QEW"] = "Queen Elizabeth Way", | ["QEW"] = "Queen Elizabeth Way", | ||
["451"] = "Queen Elizabeth Way", | ["451"] = "Queen Elizabeth Way", | ||
default = "Highway %route%" | default = "Highway %route%" | ||
}, | }, | ||
| Line 154: | Line 110: | ||
["DVP"] = "Don Valley Parkway", | ["DVP"] = "Don Valley Parkway", | ||
["Gardiner"] = "Gardiner Expressway", | ["Gardiner"] = "Gardiner Expressway", | ||
["Veterans"] = "Veterans Memorial Parkway", | ["Veterans"] = "Veterans Memorial Parkway", | ||
["Conestoga"] = "Conestoga Parkway", | ["Conestoga"] = "Conestoga Parkway", | ||
["Hanlon"] = "Hanlon Expressway", | ["Hanlon"] = "Hanlon Expressway", | ||
["SWSE"] = "Southwest and Southeast Bypasses", | ["SWSE"] = "Southwest and Southeast Bypasses", | ||
["QEW"] = "Queen Elizabeth Way", | ["QEW"] = "Queen Elizabeth Way", | ||
["451"] = "Queen Elizabeth Way", | ["451"] = "Queen Elizabeth Way", | ||
default = "Ontario Highway %route%" | default = "Ontario Highway %route%" | ||
}, | }, | ||
| Line 171: | Line 122: | ||
["DVP"] = "Don Valley Parkway", | ["DVP"] = "Don Valley Parkway", | ||
["Gardiner"] = "Gardiner Expressway", | ["Gardiner"] = "Gardiner Expressway", | ||
["Veterans"] = "", | ["Veterans"] = "", | ||
["Conestoga"] = "", | ["Conestoga"] = "", | ||
| Line 179: | Line 128: | ||
["QEW"] = "Queen Elizabeth Way", | ["QEW"] = "Queen Elizabeth Way", | ||
["451"] = "Queen Elizabeth Way", | ["451"] = "Queen Elizabeth Way", | ||
default = "Highway %route%" | default = "Highway %route%" | ||
}, | }, | ||
| Line 193: | Line 140: | ||
shieldmain = ON.ON.shieldmain, | shieldmain = ON.ON.shieldmain, | ||
shieldlist = ON.ON.shieldlist, | shieldlist = ON.ON.shieldlist, | ||
name = ON.ON.name, | name = ON.ON.name, | ||
link = ON.ON.link, | link = ON.ON.link, | ||
| Line 212: | Line 157: | ||
ON.Shield = { | ON.Shield = { | ||
shield = | shield = { | ||
["Allen"] = "", --"Allen Road Shield.svg", | |||
["BCD"] = "", | |||
["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, | shieldmain = ON.ON.shieldmain, | ||
shieldlist = ON.ON.shieldlist, | shieldlist = ON.ON.shieldlist, | ||
shieldto = | shieldto = { | ||
["Allen"] = "", --"Allen Road Shield.svg", | |||
["DVP"] = "DVP Shield.svg", | |||
["BCD"] = "", | |||
["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, | name = ON.ON.name, | ||
link = ON.ON.link, | link = ON.ON.link, | ||
| Line 233: | Line 208: | ||
ON.Toll = { | ON.Toll = { | ||
shield | 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, | |||
shieldmain | abbr = ON.ON.abbr.default, | ||
shieldlist | |||
name = ON.ON.name, | |||
link = ON.ON.link, | |||
abbr = ON.ON.abbr, | |||
orientation = "upright" | orientation = "upright" | ||
} | } | ||
ON["Toll Shield"] = { | ON["Toll Shield"] = { | ||
shield = | shield = { | ||
shieldmain = ON.Toll. | default = "Ontario Highway %route% Toll.svg", | ||
["407"] = "Ontario Highway 407E.svg" | |||
}, | |||
shieldmain = ON.Toll.shieldmain, | |||
shieldlist = ON.Toll.shieldlist, | shieldlist = ON.Toll.shieldlist, | ||
name = ON.ON.name, | name = ON.ON.name, | ||
| Line 279: | Line 244: | ||
ON.Both = { | ON.Both = { | ||
shield = {["407"] = {"Highway407crest.svg", "Ontario 407 crown toll.svg"}, default = ''}, | shield = {["407"] = {"Highway407crest.svg", "Ontario 407 crown toll.svg"}, default = ''}, | ||
shieldmain = {["407"] = {"407 Express Toll Route Traffic Sign.svg", "Ontario 407.svg"}, default = ''}, | shieldmain = {["407"] = {"407 Express Toll Route Traffic Sign.svg", "Ontario 407 Toll.svg"}, default = ''}, | ||
shieldlist = {["407"] = {"407 Express Toll Route Traffic Sign.svg", "Ontario 407.svg"}, default = ''}, | shieldlist = {["407"] = {"407 Express Toll Route Traffic Sign.svg", "Ontario 407 Toll.svg"}, default = ''}, | ||
name = {["407"] = "407 ETR / Highway 407", default = ''}, | name = {["407"] = "407 ETR / Highway 407", default = ''}, | ||
link = ON.ON.link.default, | link = ON.ON.link.default, | ||
abbr = | abbr = ON.ON.abbr.default, | ||
orientation = "upright" | orientation = "upright" | ||
} | } | ||
| Line 333: | Line 298: | ||
["DVP"] = "DVP Shield.svg", | ["DVP"] = "DVP Shield.svg", | ||
["Gardiner"] = "Gardiner Shield.svg", | ["Gardiner"] = "Gardiner Shield.svg", | ||
default = "" | default = "" | ||
}, | }, | ||
| Line 344: | Line 307: | ||
["DVP"] = "Don Valley Parkway", | ["DVP"] = "Don Valley Parkway", | ||
["Gardiner"] = "Gardiner Expressway", | ["Gardiner"] = "Gardiner Expressway", | ||
default = "%route%" | default = "%route%" | ||
}, | }, | ||
| Line 355: | Line 316: | ||
["DVP"] = "Don Valley Parkway", | ["DVP"] = "Don Valley Parkway", | ||
["Gardiner"] = "Gardiner Expressway", | ["Gardiner"] = "Gardiner Expressway", | ||
default = "" | default = "" | ||
}, | }, | ||
| Line 366: | Line 325: | ||
["DVP"] = "Don Valley Parkway", | ["DVP"] = "Don Valley Parkway", | ||
["Gardiner"] = "Gardiner Expressway", | ["Gardiner"] = "Gardiner Expressway", | ||
default = "%route%" | default = "%route%" | ||
}, | }, | ||
| Line 385: | Line 342: | ||
maint = "[[Toronto Transportation Services]]" | maint = "[[Toronto Transportation Services]]" | ||
} | } | ||
-- National Capital Commission parkways | -- National Capital Commission parkways | ||
| Line 398: | Line 352: | ||
} | } | ||
local regions = { | |||
local | |||
['Brant'] = { | ['Brant'] = { | ||
['prefix'] = 'Brant', | ['prefix'] = 'Brant', | ||
| Line 464: | Line 417: | ||
['type'] = 'Township Road', | ['type'] = 'Township Road', | ||
['aliases'] = {'FI'} | ['aliases'] = {'FI'} | ||
}, | }, | ||
['Grey'] = { | ['Grey'] = { | ||
| Line 521: | Line 468: | ||
['type'] = 'Road', | ['type'] = 'Road', | ||
['shieldmain'] = 'KL Road %route%.svg', | ['shieldmain'] = 'KL Road %route%.svg', | ||
['aliases'] = {'CKL', 'Kawartha Lake', 'KL', 'klinfo | ['aliases'] = {'CKL', 'Kawartha Lake', 'KL', 'klinfo'} | ||
}, | }, | ||
['Kingston'] = { | ['Kingston'] = { | ||
| Line 538: | Line 485: | ||
['Leeds and Grenville'] = { | ['Leeds and Grenville'] = { | ||
['prefix'] = 'Leeds and Grenville', | ['prefix'] = 'Leeds and Grenville', | ||
['type'] = 'County Road' | ['type'] = 'County Road' | ||
}, | }, | ||
['Lennox and Addington'] = { | ['Lennox and Addington'] = { | ||
| Line 641: | Line 587: | ||
['type'] = 'County Road', | ['type'] = 'County Road', | ||
['aliases'] = {'SDG', 'Stormont Dundas and Glengarry', 'Stormont, Dundas, Glengarry'} | ['aliases'] = {'SDG', 'Stormont Dundas and Glengarry', 'Stormont, Dundas, Glengarry'} | ||
}, | |||
['Sudbury'] = { | |||
['prefix'] = 'Greater Sudbury', | |||
['type'] = 'Municipal Road', | |||
['shieldmain'] = 'Greater Sudbury %route%.svg', | |||
['aliases'] = {'Greater Sudbury', 'GS', 'SB'} | |||
}, | }, | ||
['Tyendinaga'] = { | ['Tyendinaga'] = { | ||
| Line 679: | Line 631: | ||
} | } | ||
for region, def in pairs(regions) do | |||
ON[region] = { | |||
for | |||
ON[ | |||
shield = def.shield or 'RR %route% jct.svg', | shield = def.shield or 'RR %route% jct.svg', | ||
shieldmain = def.shieldmain or def.shield or 'RR %route% jct.svg', | shieldmain = def.shieldmain or def.shield or 'RR %route% jct.svg', | ||
| Line 701: | Line 643: | ||
abbr = def.type .. ' %route%' | abbr = def.type .. ' %route%' | ||
} | } | ||
if def.aliases then | if def.aliases then | ||
for _, alias in ipairs(def.aliases) do | for _, alias in ipairs(def.aliases) do | ||
ON[alias] = ON[ | ON[alias] = ON[region] | ||
end | end | ||
end | end | ||
| Line 717: | Line 656: | ||
hook = "split", | hook = "split", | ||
split = 100, | split = 100, | ||
above = 'Perth County | above = 'Perth County Line %route%.svg', | ||
below = 'Perth County | below = 'Perth County Road %route%.svg' | ||
}, | }, | ||
name = { | name = { | ||
hook = "split", | hook = "split", | ||
split = 100, | split = 100, | ||
above = 'Perth County | above = 'Perth County Line %route%', | ||
below = 'Perth County | below = 'Perth County Road %route%' | ||
}, | }, | ||
link = { | link = { | ||
hook = "split", | hook = "split", | ||
split = 100, | split = 100, | ||
above = 'County | above = 'Perth County Line %route%', | ||
below = 'County | below = 'Perth County Road %route%' | ||
} | } | ||
} | } | ||
ON['Perth County Line'] = ON.Perth | ON['Perth County Line'] = ON.Perth | ||
ON.PCL = ON.Perth | ON.PCL = ON.Perth | ||
for _, type in ipairs({"County", "District", "Municipal", "Regional"}) do | for _, type in ipairs({"County", "District", "Municipal", "Regional"}) do | ||
ON[type] = { | ON[type] = { | ||
| Line 753: | Line 681: | ||
shield = regionalShields, | shield = regionalShields, | ||
shieldmain = regionalShieldmains, | shieldmain = regionalShieldmains, | ||
name = "%county% " .. type .. " Road %route%", | name = "%county% " .. type .. " Road %route%", | ||
link = { | link = { | ||