Difference between revisions of "Module:Jcon/data"

From blackwiki
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 = {                                                            --------------- ADD OTHER PICTURES HERE
+
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 = {                                                             --------------- ADD PROPER AND IMPROPER NAMES HERE
+
local typeTable = {                                                          
["Hwy"] = "Highway",
 
 
["Highway"] = "Highway",
 
["Highway"] = "Highway",
 
["Sudbury"] = "Municipal",
 
["Sudbury"] = "Municipal",
["SB"] = "Municipal",
 
["Greater Sudbury"] = "Municipal",
 
["GS"] = "Municipal",
 
 
["Brant"] = "County",
 
["Brant"] = "County",
 
["Bruce"] = "County",
 
["Bruce"] = "County",
["CK"] = "County",
 
 
["Chatham-Kent"] = "County",
 
["Chatham-Kent"] = "County",
 
["Dufferin"] = "County",
 
["Dufferin"] = "County",
Line 32: Line 27:
 
["Haldimand"] = "County",
 
["Haldimand"] = "County",
 
["Grey"] = "County",
 
["Grey"] = "County",
["HH"] = "County",
 
 
["Haliburton"] = "County",
 
["Haliburton"] = "County",
 
["Hastings"] = "County",
 
["Hastings"] = "County",
 
["Huron"] = "County",
 
["Huron"] = "County",
["LG"] = "County",
 
 
["Leeds and Grenville"] = "County",
 
["Leeds and Grenville"] = "County",
["LA"] = "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",
["PB"] = "County",
 
 
["Lanark"] = "County",
 
["Lanark"] = "County",
 
["Peterborough"] = "County",
 
["Peterborough"] = "County",
 
["Prescott and Russell"] = "County",
 
["Prescott and Russell"] = "County",
["PR"] = "County",
+
["Prince Edward"] = "County",
["Prince Edward County"] = "County",
 
["PEC"] = "County",
 
 
["Renfrew"] = "County",
 
["Renfrew"] = "County",
 
["Simcoe"] = "County",  
 
["Simcoe"] = "County",  
 
["Stormont, Dundas and Glengarry"] = "County",
 
["Stormont, Dundas and Glengarry"] = "County",
["SDG"] = "County",
 
 
["Wellington"] = "County",
 
["Wellington"] = "County",
 
["Muskoka"] = "District",
 
["Muskoka"] = "District",
Line 67: Line 55:
 
["Waterloo"] = "Regional",
 
["Waterloo"] = "Regional",
 
["York"] = "Regional",
 
["York"] = "Regional",
["YR"] = "Regional",
+
["Kawartha Lakes"] = "Municipal",
["KLinfo"] = "City",
+
-- Regional/Country Highways below
["KL"] = "City",
 
["Kawartha Lakes"] = "City",
 
 
["Brant County Highway"] = "County Highway",
 
["Brant County Highway"] = "County Highway",
["BCH"] = "County Highway",
 
["Norfolk County Highway"] = "County Highway",
 
["NCH"] = "County Highway",
 
 
["Durham Regional Highway"] = "Regional Highway",
 
["Durham Regional Highway"] = "Regional Highway",
["DRH"] = "Regional Highway",
 
 
["Haldimand County Highway"] = "County Highway",
 
["Haldimand County Highway"] = "County Highway",
["HCH"] = "County Highway",
+
["Norfolk County Highway"] = "County Highway",
 
}
 
}
  
 
--[[
 
--[[
           Turn alt names for division into division \
+
           Turn improper names for division into proper division
 
]]--
 
]]--
  
local altDivTable = {                                                           --------------- ADD IMPROPER NAMES HERE
+
local divisionTable = {                                                        
["Hwy"] = "Highway",
+
["hwy"] = "Highway",
["SB"] = "Sudbury",
+
["highway"] = "Highway",
["GS"] = "Sudbury",
+
["sb"] = "Sudbury",
["Greater Sudbury"] = "Sudbury",
+
["gs"] = "Sudbury",
["Brant County Highway"] = "Brant",
+
["greater sudbury"] = "Sudbury",
["BCH"] = "Brant",
+
["sudbury"] = "Sudbury",
["Chatham Kent"] = "Chatham-Kent",
+
["brant"] = "Brant",
["CK"] = "Chatham-Kent",
+
["bruce"] = "Bruce",
["Haldimand County Highway"] = "Haldimand",
+
["chatham kent"] = "Chatham-Kent",
["HCH"] = "Haldimand",
+
["ck"] = "Chatham-Kent",
["HH"] = "Haliburton",
+
["chatham-kent"] = "Chatham-Kent",
["LG"] = "Leeds and Grenville",
+
["dufferin"] = "Dufferin",
["LA"] = "Lennox and Addington",
+
["durham"] = "Durham",
["Norfolk County Highway"] = "Norfolk",
+
["elgin"] = "Elgin",
["NCH"] = "Norfolk",
+
["essex"] = "Essex",
["PB"] = "Peterborough",
+
["frontenac"] = "Frontenac",
["PR"] = "Prescott and Russell",
+
["grey"] = "Grey",
["PEC"] = "Prince Edward",
+
["hamilton"] = "Hamilton",
["SDG"] = "Stormont, Dundas and Glengarry",
+
["haldimand"] = "Haldimand",
["DRH"] = "Durham",
+
["hh"] = "Haliburton",
["Durham Regional Highway"] = "Durham",
+
["haliburton"] = "Haliburton",
["Prince Edward County"] = "Prince Edward",
+
["hastings"] = "Hastings",
["KL"] = "Kawartha Lakes",
+
["huron"] = "Huron",
["KLinfo"] = "Kawartha Lakes",
+
["kawartha lake"] = "Kawartha Lakes",
["YR"] = "York",
+
["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 = {                                                         --------------- ADD PICTURE RULES HERE (TRY TO USE SVG)
+
local pictureTable = {          
 +
["Durham"] = {"Durham Regional Road ",".svg"},
 
["Essex"] = {"Essex County Road ",".png"},
 
["Essex"] = {"Essex County Road ",".png"},
["York"] = {"York Regional Road ",".svg"},
+
["Halton"] = {"Halton Regional Road ",".svg"},
 +
["Highway"] = {"Ontario ",".svg"},
 
["Kawartha Lakes"] = {"KawarthaLakesRoad",".png"},
 
["Kawartha Lakes"] = {"KawarthaLakesRoad",".png"},
["Durham"] = {"Durham Regional Road ",".svg"},
 
 
["Niagara"] = {"Niagara Regional Road ",".svg"},
 
["Niagara"] = {"Niagara Regional Road ",".svg"},
 
["Peel"] = {"Peel Regional Road ",".svg"},
 
["Peel"] = {"Peel Regional Road ",".svg"},
["Halton"] = {"Halton Regional Road ",".svg"},
 
 
["Simcoe"] = {"Simcoe Road "," sign.png"},
 
["Simcoe"] = {"Simcoe Road "," sign.png"},
["Highway"] = {"Ontario ",".svg"},
+
["York"] = {"York Regional Road ",".svg"},
 +
-- Regional/Country Highways below
 +
["Durham Regional Highway"] = {"Durham Regional Highway ",".svg"}
 
}
 
}
  
return{
+
return {
pictureTable=pictureTable,
+
pictureTable = pictureTable,
altDivTable=altDivTable,
+
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
}