Difference between revisions of "Module:Jcon/data"
Jump to navigation
Jump to search
blackwiki>Happy5214 (Reverted 1 edit by BrandonXLF (talk): Parent module reverted to old version that uses this data module. (TW)) |
blackwiki>BrandonXLF |
||
| Line 1: | Line 1: | ||
| − | + | -------------------------------------------------------------------------------- | |
| + | ---------- 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 division into type --------------------------------------------- | |
| − | + | -------------------------------------------------------------------------------- | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | return | + | local typeTable = { |
| + | ["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", | ||
| + | ["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", | ||
| + | } | ||
| + | |||
| + | -------------------------------------------------------------------------------- | ||
| + | ---------- 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"] = {"Peel Regional Road ",".JPG"}, | ||
| + | ["Highway"] = {"Ontario ",".svg"}, | ||
| + | } | ||
| + | |||
| + | return{ | ||
| + | pictureTable=pictureTable, | ||
| + | altDivTable=altDivTable, | ||
| + | typeTable=typeTable, | ||
| + | miscTable=miscTable | ||
| + | } | ||
Revision as of 12:31, 4 October 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 division into type ---------------------------------------------
--------------------------------------------------------------------------------
local typeTable = {
["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",
["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",
}
--------------------------------------------------------------------------------
---------- 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"] = {"Peel Regional Road ",".JPG"},
["Highway"] = {"Ontario ",".svg"},
}
return{
pictureTable=pictureTable,
altDivTable=altDivTable,
typeTable=typeTable,
miscTable=miscTable
}