Difference between revisions of "Module:Jcon/data"
Jump to navigation
Jump to search
blackwiki>BrandonXLF |
blackwiki>Anne drew Andrew and Drew (update per [https://en.wikipedia.org/wiki/Template_talk:Jcon#Edit_Request_December_1,_2018 talk page request]) |
||
| Line 3: | Line 3: | ||
]]-- | ]]-- | ||
| − | local miscTable = { | + | local miscTable = { |
["hospital"] = "[[File:Ontario M401.svg|19px]]", | ["hospital"] = "[[File:Ontario M401.svg|19px]]", | ||
["airport"] = "[[File:Ontario M502.svg|19px]]", | ["airport"] = "[[File:Ontario M502.svg|19px]]", | ||
| Line 12: | Line 12: | ||
--[[ | --[[ | ||
| − | Turn division into type | + | Turn proper division into type |
]]-- | ]]-- | ||
| − | local typeTable = { | + | local typeTable = { |
| − | |||
["Highway"] = "Highway", | ["Highway"] = "Highway", | ||
["Sudbury"] = "Municipal", | ["Sudbury"] = "Municipal", | ||
| − | |||
| − | |||
| − | |||
["Brant"] = "County", | ["Brant"] = "County", | ||
["Bruce"] = "County", | ["Bruce"] = "County", | ||
| − | |||
["Chatham-Kent"] = "County", | ["Chatham-Kent"] = "County", | ||
["Dufferin"] = "County", | ["Dufferin"] = "County", | ||
| Line 32: | Line 27: | ||
["Haldimand"] = "County", | ["Haldimand"] = "County", | ||
["Grey"] = "County", | ["Grey"] = "County", | ||
| − | |||
["Haliburton"] = "County", | ["Haliburton"] = "County", | ||
["Hastings"] = "County", | ["Hastings"] = "County", | ||
["Huron"] = "County", | ["Huron"] = "County", | ||
| − | |||
["Leeds and Grenville"] = "County", | ["Leeds and Grenville"] = "County", | ||
| − | |||
["Lennox and Addington"] = "County", | ["Lennox and Addington"] = "County", | ||
["Lambton"] = "County", | ["Lambton"] = "County", | ||
| Line 46: | Line 38: | ||
["Oxford"] = "County", | ["Oxford"] = "County", | ||
["Perth"] = "County", | ["Perth"] = "County", | ||
| − | |||
["Lanark"] = "County", | ["Lanark"] = "County", | ||
["Peterborough"] = "County", | ["Peterborough"] = "County", | ||
["Prescott and Russell"] = "County", | ["Prescott and Russell"] = "County", | ||
| − | + | ["Prince Edward"] = "County", | |
| − | ["Prince Edward | ||
| − | |||
["Renfrew"] = "County", | ["Renfrew"] = "County", | ||
["Simcoe"] = "County", | ["Simcoe"] = "County", | ||
["Stormont, Dundas and Glengarry"] = "County", | ["Stormont, Dundas and Glengarry"] = "County", | ||
| − | |||
["Wellington"] = "County", | ["Wellington"] = "County", | ||
["Muskoka"] = "District", | ["Muskoka"] = "District", | ||
| Line 67: | Line 55: | ||
["Waterloo"] = "Regional", | ["Waterloo"] = "Regional", | ||
["York"] = "Regional", | ["York"] = "Regional", | ||
| − | [" | + | ["Kawartha Lakes"] = "Municipal", |
| − | + | -- Regional/Country Highways below | |
| − | |||
| − | |||
["Brant County Highway"] = "County Highway", | ["Brant County Highway"] = "County Highway", | ||
| − | |||
| − | |||
| − | |||
["Durham Regional Highway"] = "Regional Highway", | ["Durham Regional Highway"] = "Regional Highway", | ||
| − | |||
["Haldimand County Highway"] = "County Highway", | ["Haldimand County Highway"] = "County Highway", | ||
| − | [" | + | ["Norfolk County Highway"] = "County Highway", |
} | } | ||
--[[ | --[[ | ||
| − | Turn | + | Turn improper names for division into proper division |
]]-- | ]]-- | ||
| − | local | + | local divisionTable = { |
| − | [" | + | ["hwy"] = "Highway", |
| − | [" | + | ["highway"] = "Highway", |
| − | [" | + | ["sb"] = "Sudbury", |
| − | [" | + | ["gs"] = "Sudbury", |
| − | [" | + | ["greater sudbury"] = "Sudbury", |
| − | [" | + | ["sudbury"] = "Sudbury", |
| − | ["Chatham Kent"] = "Chatham-Kent", | + | ["brant"] = "Brant", |
| − | [" | + | ["bruce"] = "Bruce", |
| − | [" | + | ["chatham kent"] = "Chatham-Kent", |
| − | [" | + | ["ck"] = "Chatham-Kent", |
| − | [" | + | ["chatham-kent"] = "Chatham-Kent", |
| − | [" | + | ["dufferin"] = "Dufferin", |
| − | [" | + | ["durham"] = "Durham", |
| − | ["Norfolk | + | ["elgin"] = "Elgin", |
| − | [" | + | ["essex"] = "Essex", |
| − | [" | + | ["frontenac"] = "Frontenac", |
| − | [" | + | ["grey"] = "Grey", |
| − | [" | + | ["hamilton"] = "Hamilton", |
| − | [" | + | ["haldimand"] = "Haldimand", |
| − | [" | + | ["hh"] = "Haliburton", |
| − | ["Durham Regional Highway"] = "Durham", | + | ["haliburton"] = "Haliburton", |
| − | [" | + | ["hastings"] = "Hastings", |
| − | [" | + | ["huron"] = "Huron", |
| − | [" | + | ["kawartha lake"] = "Kawartha Lakes", |
| − | [" | + | ["kl"] = "Kawartha Lakes", |
| + | ["klinfo"] = "Kawartha Lakes", | ||
| + | ["kawartha lakes"] = "Kawartha Lakes", | ||
| + | ["lanark"] = "Lanark", | ||
| + | ["lambton"] = "Lambton", | ||
| + | ["lg"] = "Leeds and Grenville", | ||
| + | ["leeds and grenville"] = "Leeds and Grenville", | ||
| + | ["la"] = "Lennox and Addington", | ||
| + | ["lennox and addington"] = "Lennox and Addington", | ||
| + | ["muskoka"] = "Muskoka", | ||
| + | ["niagara"] = "Niagara", | ||
| + | ["norfolk"] = "Norfolk", | ||
| + | ["northumberland"] = "Northumberland", | ||
| + | ["ottawa"] = "Ottawa", | ||
| + | ["oxford"] = "Oxford", | ||
| + | ["middlesex"] = "Middlesex", | ||
| + | ["peel"] = "Peel", | ||
| + | ["perth"] = "Perth", | ||
| + | ["pb"] = "Peterborough", | ||
| + | ["peterborough"] = "Peterborough", | ||
| + | ["pr"] = "Prescott and Russell", | ||
| + | ["prescott and russell"] = "Prescott and Russell", | ||
| + | ["pec"] = "Prince Edward", | ||
| + | ["prince edward"] = "Prince Edward", | ||
| + | ["renfrew"] = "Renfrew", | ||
| + | ["simcoe"] = "Simcoe", | ||
| + | ["sdg"] = "Stormont, Dundas and Glengarry", | ||
| + | ["stormont, dundas and glengarry"] = "Stormont, Dundas and Glengarry", | ||
| + | ["stormont, dundas, glengarry"] = "Stormont, Dundas and Glengarry", | ||
| + | ["stormont dundas and glengarry"] = "Stormont, Dundas and Glengarry", | ||
| + | ["waterloo"] = "Waterloo", | ||
| + | ["wellington"] = "Wellington", | ||
| + | ["yr"] = "York", | ||
| + | ["york"] = "York", | ||
| + | -- Regional/Country Highways below | ||
| + | ["bch"] = "Brant", | ||
| + | ["brant county highway"] = "Brant County Highway", | ||
| + | ["drh"] = "Durham Regional Highway", | ||
| + | ["durham regional highway"] = "Durham Regional Highway", | ||
| + | ["hch"] = "Haldimand County Highway", | ||
| + | ["haldimand county highway"] = "Haldimand County Highway", | ||
| + | ["nch"] = "Norfolk County Highway", | ||
| + | ["norfolk county highway"] = "Norfolk County Highway", | ||
} | } | ||
| Line 117: | Line 141: | ||
]]-- | ]]-- | ||
| − | local pictureTable = { | + | local pictureTable = { |
| + | ["Durham"] = {"Durham Regional Road ",".svg"}, | ||
["Essex"] = {"Essex County Road ",".png"}, | ["Essex"] = {"Essex County Road ",".png"}, | ||
| − | [" | + | ["Halton"] = {"Halton Regional Road ",".svg"}, |
| + | ["Highway"] = {"Ontario ",".svg"}, | ||
["Kawartha Lakes"] = {"KawarthaLakesRoad",".png"}, | ["Kawartha Lakes"] = {"KawarthaLakesRoad",".png"}, | ||
| − | |||
["Niagara"] = {"Niagara Regional Road ",".svg"}, | ["Niagara"] = {"Niagara Regional Road ",".svg"}, | ||
["Peel"] = {"Peel Regional Road ",".svg"}, | ["Peel"] = {"Peel Regional Road ",".svg"}, | ||
| − | |||
["Simcoe"] = {"Simcoe Road "," sign.png"}, | ["Simcoe"] = {"Simcoe Road "," sign.png"}, | ||
| − | ["Highway"] = {" | + | ["York"] = {"York Regional Road ",".svg"}, |
| + | -- Regional/Country Highways below | ||
| + | ["Durham Regional Highway"] = {"Durham Regional Highway ",".svg"} | ||
} | } | ||
| − | return{ | + | return { |
| − | pictureTable=pictureTable, | + | pictureTable = pictureTable, |
| − | + | divisionTable = divisionTable, | |
| − | typeTable=typeTable, | + | typeTable = typeTable, |
| − | miscTable=miscTable | + | miscTable = miscTable |
} | } | ||
Revision as of 00:00, 14 December 2018
Documentation for this module may be created at Module:Jcon/data/doc
--[[
Other signs (not roads)
]]--
local miscTable = {
["hospital"] = "[[File:Ontario M401.svg|19px]]",
["airport"] = "[[File:Ontario M502.svg|19px]]",
["bus"] = "[[File:Ontario M506.svg|19px]]",
["ferry"] = "[[File:Ontario M508.svg|19px]]",
["train station"] = "[[File:Ontario M509.svg|19px]]",
}
--[[
Turn proper division into type
]]--
local typeTable = {
["Highway"] = "Highway",
["Sudbury"] = "Municipal",
["Brant"] = "County",
["Bruce"] = "County",
["Chatham-Kent"] = "County",
["Dufferin"] = "County",
["Elgin"] = "County",
["Essex"] = "County",
["Frontenac"] = "County",
["Haldimand"] = "County",
["Grey"] = "County",
["Haliburton"] = "County",
["Hastings"] = "County",
["Huron"] = "County",
["Leeds and Grenville"] = "County",
["Lennox and Addington"] = "County",
["Lambton"] = "County",
["Middlesex"] = "County",
["Norfolk"] = "County",
["Northumberland"] = "County",
["Oxford"] = "County",
["Perth"] = "County",
["Lanark"] = "County",
["Peterborough"] = "County",
["Prescott and Russell"] = "County",
["Prince Edward"] = "County",
["Renfrew"] = "County",
["Simcoe"] = "County",
["Stormont, Dundas and Glengarry"] = "County",
["Wellington"] = "County",
["Muskoka"] = "District",
["Durham"] = "Regional",
["Hamilton"] = "Regional",
["Halton"] = "Regional",
["Niagara"] = "Regional",
["Peel"] = "Regional",
["Ottawa"] = "Regional",
["Waterloo"] = "Regional",
["York"] = "Regional",
["Kawartha Lakes"] = "Municipal",
-- Regional/Country Highways below
["Brant County Highway"] = "County Highway",
["Durham Regional Highway"] = "Regional Highway",
["Haldimand County Highway"] = "County Highway",
["Norfolk County Highway"] = "County Highway",
}
--[[
Turn improper names for division into proper division
]]--
local divisionTable = {
["hwy"] = "Highway",
["highway"] = "Highway",
["sb"] = "Sudbury",
["gs"] = "Sudbury",
["greater sudbury"] = "Sudbury",
["sudbury"] = "Sudbury",
["brant"] = "Brant",
["bruce"] = "Bruce",
["chatham kent"] = "Chatham-Kent",
["ck"] = "Chatham-Kent",
["chatham-kent"] = "Chatham-Kent",
["dufferin"] = "Dufferin",
["durham"] = "Durham",
["elgin"] = "Elgin",
["essex"] = "Essex",
["frontenac"] = "Frontenac",
["grey"] = "Grey",
["hamilton"] = "Hamilton",
["haldimand"] = "Haldimand",
["hh"] = "Haliburton",
["haliburton"] = "Haliburton",
["hastings"] = "Hastings",
["huron"] = "Huron",
["kawartha lake"] = "Kawartha Lakes",
["kl"] = "Kawartha Lakes",
["klinfo"] = "Kawartha Lakes",
["kawartha lakes"] = "Kawartha Lakes",
["lanark"] = "Lanark",
["lambton"] = "Lambton",
["lg"] = "Leeds and Grenville",
["leeds and grenville"] = "Leeds and Grenville",
["la"] = "Lennox and Addington",
["lennox and addington"] = "Lennox and Addington",
["muskoka"] = "Muskoka",
["niagara"] = "Niagara",
["norfolk"] = "Norfolk",
["northumberland"] = "Northumberland",
["ottawa"] = "Ottawa",
["oxford"] = "Oxford",
["middlesex"] = "Middlesex",
["peel"] = "Peel",
["perth"] = "Perth",
["pb"] = "Peterborough",
["peterborough"] = "Peterborough",
["pr"] = "Prescott and Russell",
["prescott and russell"] = "Prescott and Russell",
["pec"] = "Prince Edward",
["prince edward"] = "Prince Edward",
["renfrew"] = "Renfrew",
["simcoe"] = "Simcoe",
["sdg"] = "Stormont, Dundas and Glengarry",
["stormont, dundas and glengarry"] = "Stormont, Dundas and Glengarry",
["stormont, dundas, glengarry"] = "Stormont, Dundas and Glengarry",
["stormont dundas and glengarry"] = "Stormont, Dundas and Glengarry",
["waterloo"] = "Waterloo",
["wellington"] = "Wellington",
["yr"] = "York",
["york"] = "York",
-- Regional/Country Highways below
["bch"] = "Brant",
["brant county highway"] = "Brant County Highway",
["drh"] = "Durham Regional Highway",
["durham regional highway"] = "Durham Regional Highway",
["hch"] = "Haldimand County Highway",
["haldimand county highway"] = "Haldimand County Highway",
["nch"] = "Norfolk County Highway",
["norfolk county highway"] = "Norfolk County Highway",
}
--[[
Give code needed to make most pictures
]]--
local pictureTable = {
["Durham"] = {"Durham Regional Road ",".svg"},
["Essex"] = {"Essex County Road ",".png"},
["Halton"] = {"Halton Regional Road ",".svg"},
["Highway"] = {"Ontario ",".svg"},
["Kawartha Lakes"] = {"KawarthaLakesRoad",".png"},
["Niagara"] = {"Niagara Regional Road ",".svg"},
["Peel"] = {"Peel Regional Road ",".svg"},
["Simcoe"] = {"Simcoe Road "," sign.png"},
["York"] = {"York Regional Road ",".svg"},
-- Regional/Country Highways below
["Durham Regional Highway"] = {"Durham Regional Highway ",".svg"}
}
return {
pictureTable = pictureTable,
divisionTable = divisionTable,
typeTable = typeTable,
miscTable = miscTable
}