Difference between revisions of "Module:Jcon/data"

From blackwiki
Jump to navigation Jump to search
blackwiki>BrandonXLF
blackwiki>Happy5214
(Reverted 5 edits by BrandonXLF (talk): No consensus reached for these changes. (TW))
Line 1: Line 1:
−
--------------------------------------------------------------------------------
+
local p = {}
−
---------- Other signs (not roads) ---------------------------------------------
 
−
--------------------------------------------------------------------------------
 
  
−
local miscTable = {
+
p.types = {Hwy = "Hwy", Highway = "Hwy", Sudbury = "Municipal", SB = "Municipal",
−
["hospital"] = "[[File:Ontario M401.svg|19px]]",
+
          ["Greater Sudbury"] = "Municipal", GS = "Municipal", Muskoka = "District",
−
["airport"] = "[[File:Ontario M502.svg|19px]]",
+
          Durham = "Regional", Hamilton = "Regional", Halton = "Regional",
−
["bus"] = "[[File:Ontario M506.svg|19px]]",
+
          Niagara = "Regional", Peel = "Regional", Ottawa = "Regional",
−
["ferry"] = "[[File:Ontario M508.svg|19px]]",
+
          Waterloo = "Regional", York = "Regional", KL = "KLR", ["Kawartha Lakes"] = "KLR",
−
["train station"] = "[[File:Ontario M509.svg|19px]]",
+
          ["Durham Regional Highway"] = "RH", DRH = "RH", BCH = "CH",
−
}
+
          ["Brant County Highway"] = "CH", NCH = "CH", ["Norfolk County Highway"] = "CH"}
  
−
--------------------------------------------------------------------------------
+
p.regions = {Hwy = '', Highway = '', KL = "Kawartha Lakes", SB = "Sudbury",
−
---------- Turn division into type ---------------------------------------------
+
            ["Greater Sudbury"] = "Sudbury", GS = "Sudbury", BCH = "Brant",
−
--------------------------------------------------------------------------------
+
            ["Brant County Highway"] = "Brant", CK = "Chatham-Kent",
 +
            HH = "Haliburton", LG = "Leeds and Grenville", LA = "Lennox and Addington",
 +
            NCH = "Norfolk", ["Norfolk County Highway"] = "Norfolk",
 +
            PB = "Peterborough", PR = "Prescott and Russell",
 +
            PEC = "Prince Edward", ["Prince Edward County"] = "Prince Edward",
 +
            SDG = "Stormont, Dundas and Glengarry", ["Durham Regional Highway"] = "Durham",
 +
            DRH = "Durham"}
  
−
local typeTable = {
+
return p
−
["Hwy"] = "Highway",
 
−
["Highway"] = "Highway",
 
−
["Sudbury"] = "Municipal",
 
−
["SB"] = "Municipal",
 
−
["Greater Sudbury"] = "Municipal",
 
−
["GS"] = "Municipal",
 
−
["Brant"] = "County",
 
−
["Bruce"] = "County",
 
−
["CK"] = "County",
 
−
["Chatham-Kent"] = "County",
 
−
["Dufferin"] = "County",
 
−
["Elgin"] = "County",
 
−
["Essex"] = "County",
 
−
["Frontenac"] = "County",
 
−
["Haldimand"] = "County",
 
−
["Grey"] = "County",
 
−
["HH"] = "County",
 
−
["Haliburton"] = "County",
 
−
["Hastings"] = "County",
 
−
["Huron"] = "County",
 
−
["LG"] = "County",
 
−
["Leeds and Grenville"] = "County",
 
−
["LA"] = "County",
 
−
["Lennox and Addington"] = "County",
 
−
["Lambton"] = "County",
 
−
["Middlesex"] = "County",
 
−
["Norfolk"] = "County",
 
−
["Northumberland"] = "County",
 
−
["Oxford"] = "County",
 
−
["Perth"] = "County",
 
−
["PB"] = "County",
 
−
["Lanark"] = "County",
 
−
["Peterborough"] = "County",
 
−
["Prescott and Russell"] = "County",
 
−
["PR"] = "County",
 
−
["Prince Edward County"] = "County",
 
−
["PEC"] = "County",
 
−
["Renfrew"] = "County",
 
−
["Simcoe"] = "County",
 
−
["Stormont, Dundas and Glengarry"] = "County",
 
−
["SDG"] = "County",
 
−
["Wellington"] = "County",
 
−
["Muskoka"] = "District",
 
−
["Durham"] = "Regional",
 
−
["Hamilton"] = "Regional",
 
−
["Halton"] = "Regional",
 
−
["Niagara"] = "Regional",
 
−
["Peel"] = "Regional",
 
−
["Ottawa"] = "Regional",
 
−
["Waterloo"] = "Regional",
 
−
["York"] = "Regional",
 
−
["KLinfo"] = "City",
 
−
["KL"] = "City",
 
−
["Kawartha Lakes"] = "City",
 
−
["Brant County Highway"] = "County Highway",
 
−
["BCH"] = "County Highway",
 
−
["Norfolk County Highway"] = "County Highway",
 
−
["NCH"] = "County Highway",
 
−
["Durham Regional Highway"] = "Regional Highway",
 
−
["DRH"] = "Regional Highway",
 
−
["Haldimand County Highway"] = "County Highway",
 
−
["HCH"] = "County Highway",
 
−
}
 
−
 
 
−
--------------------------------------------------------------------------------
 
−
---------- Turn alt names for division into division ---------------------------
 
−
--------------------------------------------------------------------------------
 
−
 
 
−
local altDivTable = {
 
−
["Hwy"] = "Highway",
 
−
["SB"] = "Sudbury",
 
−
["GS"] = "Sudbury",
 
−
["Greater Sudbury"] = "Sudbury",
 
−
["Brant County Highway"] = "Brant",
 
−
["BCH"] = "Brant",
 
−
["Chatham Kent"] = "Chatham-Kent",
 
−
["CK"] = "Chatham-Kent",
 
−
["Haldimand County Highway"] = "Haldimand",
 
−
["HCH"] = "Haldimand",
 
−
["HH"] = "Haliburton",
 
−
["LG"] = "Leeds and Grenville",
 
−
["LA"] = "Lennox and Addington",
 
−
["Norfolk County Highway"] = "Norfolk",
 
−
["NCH"] = "Norfolk",
 
−
["PB"] = "Peterborough",
 
−
["PR"] = "Prescott and Russell",
 
−
["PEC"] = "Prince Edward",
 
−
["SDG"] = "Stormont, Dundas and Glengarry",
 
−
["DRH"] = "Durham",
 
−
["Durham Regional Highway"] = "Durham",
 
−
["Prince Edward County"] = "Prince Edward",
 
−
["KL"] = "Kawartha Lakes",
 
−
["KLinfo"] = "Kawartha Lakes",
 
−
}
 
−
 
 
−
--------------------------------------------------------------------------------
 
−
---------- Give code needed to make most pictures ------------------------------
 
−
--------------------------------------------------------------------------------
 
−
 
 
−
local pictureTable = {
 
−
["Essex"] = {"Essex County Road ",".png"},
 
−
["York"] = {"York Regional Road ",".svg"},
 
−
["Kawartha Lakes"] = {"KawarthaLakesRoad",".png"},
 
−
["Durham"] = {"Durham Regional Road ",".svg"},
 
−
["Niagara"] = {"Niagara Regional Road ",".svg"},
 
−
["Peel"] = {"Peel Regional Road ",".svg"},
 
−
["Halton"] = {"Halton Regional Road ",".svg"},
 
−
["Simcoe"] = {"Simcoe Road "," sign.png"},
 
−
["Highway"] = {"Ontario ",".svg"},
 
−
}
 
−
 
 
−
return{
 
−
pictureTable=pictureTable,
 
−
altDivTable=altDivTable,
 
−
typeTable=typeTable,
 
−
miscTable=miscTable
 
−
}
 

Revision as of 20:07, 4 October 2018

Documentation for this module may be created at Module:Jcon/data/doc

local p = {}

p.types = {Hwy = "Hwy", Highway = "Hwy", Sudbury = "Municipal", SB = "Municipal",
           ["Greater Sudbury"] = "Municipal", GS = "Municipal", Muskoka = "District",
           Durham = "Regional", Hamilton = "Regional", Halton = "Regional",
           Niagara = "Regional", Peel = "Regional", Ottawa = "Regional",
           Waterloo = "Regional", York = "Regional", KL = "KLR", ["Kawartha Lakes"] = "KLR",
           ["Durham Regional Highway"] = "RH", DRH = "RH", BCH = "CH",
           ["Brant County Highway"] = "CH", NCH = "CH", ["Norfolk County Highway"] = "CH"}

p.regions = {Hwy = '', Highway = '', KL = "Kawartha Lakes", SB = "Sudbury",
             ["Greater Sudbury"] = "Sudbury", GS = "Sudbury", BCH = "Brant",
             ["Brant County Highway"] = "Brant", CK = "Chatham-Kent",
             HH = "Haliburton", LG = "Leeds and Grenville", LA = "Lennox and Addington",
             NCH = "Norfolk", ["Norfolk County Highway"] = "Norfolk",
             PB = "Peterborough", PR = "Prescott and Russell",
             PEC = "Prince Edward", ["Prince Edward County"] = "Prince Edward",
             SDG = "Stormont, Dundas and Glengarry", ["Durham Regional Highway"] = "Durham",
             DRH = "Durham"}

return p