Module:Tennis performance timeline/data/internal

MyWikiBiz, Author Your Legacy — Sunday December 29, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Tennis performance timeline/data/internal/doc

local p = {}

function p.addInternalEntries(tennis)
	tennis.rounds["A"] = {color = "#666", tooltip = "Absent", absence = true}
	tennis.rounds["DNQ"] = {color = "#ccc", tooltip = "Did not qualify", absence = true, span = true, minSpellCols = 3}
	tennis.rounds["NH"] = {color = "#ccc", tooltip = "Not held", span = true, minSpellCols = 2}
	tennis.rounds["NMS"] = {color = "#ccc", tooltip = "Not a Masters Series", span = true, minSpellCols = 4}
	tennis.rounds["NGPS"] = {color = "#ccc", tooltip = "Not a Grand Prix Super Series", span = true, minSpellCols = 5}
	tennis.rounds["NT1"] = {color = "#ccc", tooltip = "Not a Tier I", span = true, minSpellCols = 3}
	tennis.rounds["NM"] = {color = "#ccc", tooltip = "Not a Major", span = true, minSpellCols = 3}
	tennis.rounds["X"] = {color = "#ccc", tooltip = "Discontinued", span = true, minSpellCols = 3}
	for _,round in ipairs({"A", "DNQ", "NH", "NM", "NMS", "NGPS", "NT1", "X"}) do
		table.insert(tennis.orders.rounds, round)
	end

	tennis.tournaments["250 Antalya"] = {annualLink = "$year$ Antalya Open"}
	tennis.tournaments["250 Antwerp"] = {annualLink = "$year$ European Open"}
	tennis.tournaments["250 Atlanta"] = {annualLink = "$year$ BB&T Atlanta Open"}
	tennis.tournaments["250 Auckland"] = {annualLink = "$year$ ASB Classic"}
	tennis.tournaments["250 Bastad"] = {annualLink = "$year$ Swedish Open"}
	tennis.tournaments["250 Brisbane"] = {annualLink = "$year$ Brisbane International"}
	tennis.tournaments["250 Budapest"] = {annualLink = "$year$ Gazprom Hungarian Open"}
	tennis.tournaments["250 Buenos Aires"] = {annualLink = "$year$ Memphis Open"}
	tennis.tournaments["250 Chengdu"] = {annualLink = "$year$ Chengdu Open"}
	tennis.tournaments["250 Chennai"] = {annualLink = "$year$ Aircel Chennai Open"}
	tennis.tournaments["250 Delray Beach"] = {annualLink = "$year$ Delray Beach International Tennis Championships"}
	tennis.tournaments["250 Doha"] = {annualLink = "$year$ Qatar ExxonMobil Open"}
	tennis.tournaments["250 Eastbourne"] = {annualLink = "$year$ Aegon International Eastbourne"}
	tennis.tournaments["250 Estoril"] = {annualLink = "$year$ Estoril Open"}
	tennis.tournaments["250 Geneva"] = {annualLink = "$year$ Geneva Open"}
	tennis.tournaments["250 Gstaad"] = {annualLink = "$year$ Swiss Open Gstaad"}
	tennis.tournaments["250 Houston"] = {annualLink = "$year$ U.S. Men's Clay Court Championships"}
	tennis.tournaments["250 Istanbul"] = {annualLink = "$year$ Istanbul Open"}
	tennis.tournaments["250 Kitzbuhel"] = {annualLink = "$year$ Generali Open Kitzbühel"}
	tennis.tournaments["250 Los Cabos"] = {annualLink = "$year$ Los Cabos Open"}
	tennis.tournaments["250 Lyon"] = {annualLink = "$year$ Lyon Open"}
	tennis.tournaments["250 Marrakech"] = {annualLink = "$year$ Grand Prix Hassan II"}
	tennis.tournaments["250 Marseille"] = {annualLink = "$year$ Open 13"}
	tennis.tournaments["250 Memphis"] = {annualLink = "$year$ Memphis Open"}
	tennis.tournaments["250 Metz"] = {annualLink = "$year$ Moselle Open"}
	tennis.tournaments["250 Montpellier"] = {annualLink = "$year$ Open Sud de France"}
	tennis.tournaments["250 Moscow"] = {annualLink = "$year$ Kremlin Cup"}
	tennis.tournaments["250 Munich"] = {annualLink = "$year$ BMW Open"}
	tennis.tournaments["250 Newport"] = {annualLink = "$year$ Hall of Fame Tennis Championships"}
	tennis.tournaments["250 Quito"] = {annualLink = "$year$ Ecuador Open Quito"}
	tennis.tournaments["250 Sao Paulo"] = {annualLink = "$year$ Brasil Open"}
	tennis.tournaments["250 Shenzhen"] = {annualLink = "$year$ ATP Shenzhen Open"}
	tennis.tournaments["250 s-Hertogenbosch"] = {annualLink = "$year$ Ricoh Open"}
	tennis.tournaments["250 Sofia"] = {annualLink = "$year$ Garanti Koza Sofia Open"}
	tennis.tournaments["250 St. Petersburg"] = {annualLink = "$year$ St. Petersburg Open"}
	tennis.tournaments["250 Stockholm"] = {annualLink = "$year$ Stockholm Open"}
	tennis.tournaments["250 Stuttgart"] = {annualLink = "$year$ MercedesCup"}
	tennis.tournaments["250 Sydney"] = {annualLink = "$year$ Apia International Sydney"}
	tennis.tournaments["250 Umag"] = {annualLink = "$year$ Croatia Open Umag"}
	tennis.tournaments["250 Winston-Salem"] = {annualLink = "$year$ Winston-Salem Open"}
	tennis.tournaments["500 Acapulco"] = {annualLink = "$year$ Abierto Mexicano Telcel"}
	tennis.tournaments["500 Barcelona"] = {annualLink = "$year$ Barcelona Open Banc Sabadell"}
	tennis.tournaments["500 Basel"] = {annualLink = "$year$ Swiss Indoors"}
	tennis.tournaments["500 Beijing"] = {
		annualLink = "$year$ China Open (tennis)",
		annualSubst = {{" %(tennis%)$", ""}}
	}
	tennis.tournaments["500 Dubai"] = {annualLink = "$year$ Dubai Tennis Championships"}
	tennis.tournaments["500 Halle"] = {annualLink = "$year$ Gerry Weber Open"}
	tennis.tournaments["500 Hamburg"] = {annualLink = "$year$ German Open"}
	tennis.tournaments["500 Queen's Club"] = {annualLink = "$year$ Aegon Championships"}
	tennis.tournaments["500 Rio de Janeiro"] = {annualLink = "$year$ Rio Open"}
	tennis.tournaments["500 Rotterdam"] = {annualLink = "$year$ ABN AMRO World Tennis Tournament"}
	tennis.tournaments["500 Tokyo"] = {annualLink = "$year$ Rakuten Japan Open Tennis Championships"}
	tennis.tournaments["500 Vienna"] = {annualLink = "$year$ Erste Bank Open"}
	tennis.tournaments["500 Washington"] = {annualLink = "$year$ Citi Open"}
	tennis.tournaments["Next Gen Finals"] = {annualLink = "$year$ Next Generation ATP Finals"}
	tennis.tournaments["Davis Cup 1R"] = {
		annualLink = "$year$ Davis Cup World Group#First round",
		annualSubst = {
			{" World Group", ""},
			{"#(.*)$", ", %1"}
		}
	}
	tennis.tournaments["Davis Cup QF"] = {
		annualLink = "$year$ Davis Cup World Group#Quarterfinals",
		annualSubst = {
			{" World Group", ""},
			{"#(.*)$", ", %1"}
		}
	}
	tennis.tournaments["Davis Cup SF"] = {
		annualLink = "$year$ Davis Cup World Group#Semifinals",
		annualSubst = {
			{" World Group", ""},
			{"#(.*)$", ", %1"}
		}
	}
	tennis.tournaments["Davis Cup F"] = {
		annualLink = "$year$ Davis Cup World Group#Final",
		annualSubst = {
			{" World Group", ""},
			{"#(.*)$", ", %1"}
		}
	}
	tennis.tournaments["125K Bol"] = {annualLink = "$year$ Bol Open"}
	tennis.tournaments["125K Dalian"] = {annualLink = "$year$ Dalian Women's Tennis Open"}
	tennis.tournaments["125K Honolulu"] = {annualLink = "$year$ Hawaii Tennis Open"}
	tennis.tournaments["125K Hua Hin"] = {annualLink = "$year$ Hua Hin Championships"}
	tennis.tournaments["125K Limoges"] = {annualLink = "$year$ Open de Limoges"}
	tennis.tournaments["125K Taipei"] = {annualLink = "$year$ OEC Taipei WTA Challenger"}
	tennis.tournaments["125K Zhengzhou"] = {annualLink = "$year$ Zhengzhou Women's Tennis Open"}
	tennis.tournaments["Intl Acapulco"] = tennis.tournaments["500 Acapulco"]
	tennis.tournaments["Intl Auckland"] = {annualLink = "$year$ ASB Classic"}
	tennis.tournaments["Intl Bastad"] = tennis.tournaments["250 Bastad"]
	tennis.tournaments["Intl Biel"] = {annualLink = "$year$ Ladies Open Biel Bienne"}
	tennis.tournaments["Intl Bogota"] = {annualLink = "$year$ Copa Colsanitas"}
	tennis.tournaments["Intl Bucharest"] = {annualLink = "$year$ Bucharest Open"}
	tennis.tournaments["Intl Budapest"] = {annualLink = "$year$ Hungarian Ladies Open"}
	tennis.tournaments["Intl Gstaad"] = {annualLink = "$year$ Ladies Championship Gstaad"}
	tennis.tournaments["Intl Guangzhou"] = {annualLink = "$year$ Guangzhou International Women's Open"}
	tennis.tournaments["Intl Hobart"] = {annualLink = "$year$ Hobart International"}
	tennis.tournaments["Intl Hong Kong"] = {annualLink = "$year$ Hong Kong Tennis Open"}
	tennis.tournaments["Intl Istanbul"] = {annualLink = "$year$ İstanbul Cup"}
	tennis.tournaments["Intl Kuala Lumpur"] = {annualLink = "$year$ Malaysian Open"}
	tennis.tournaments["Intl Linz"] = {annualLink = "$year$ Generali Ladies Linz"}
	tennis.tournaments["Intl Luxembourg"] = {annualLink = "$year$ BGL Luxembourg Open"}
	tennis.tournaments["Intl Mallorca"] = {annualLink = "$year$ Mallorca Open"}
	tennis.tournaments["Intl Monterrey"] = {annualLink = "$year$ Monterrey Open"}
	tennis.tournaments["Intl Nanchang"] = {annualLink = "$year$ Jiangxi International Women's Tennis Open"}
	tennis.tournaments["Intl Nottingham"] = {annualLink = "$year$ Aegon Open Nottingham"}
	tennis.tournaments["Intl Nurnberg"] = {annualLink = "$year$ Nürnberger Versicherungscup"}
	tennis.tournaments["Intl Prague"] = {annualLink = "$year$ J&T Banka Prague Open"}
	tennis.tournaments["Intl Quebec City"] = {annualLink = "$year$ Coupe Banque Nationale"}
	tennis.tournaments["Intl Rabat"] = {annualLink = "$year$ Grand Prix SAR La Princesse Lalla Meryem"}
	tennis.tournaments["Intl Seoul"] = {annualLink = "$year$ Korea Open"}
	tennis.tournaments["Intl Shenzhen"] = {annualLink = "$year$ Shenzhen Open"}
	tennis.tournaments["Intl s-Hertogenbosch"] = tennis.tournaments["250 s-Hertogenbosch"]
	tennis.tournaments["Intl Strasbourg"] = {annualLink = "$year$ Internationaux de Strasbourg"}
	tennis.tournaments["Intl Taipei City"] = {annualLink = "$year$ Taiwan Open"}
	tennis.tournaments["Intl Tashkent"] = {annualLink = "$year$ Tashkent Open"}
	tennis.tournaments["Intl Tianjin"] = {annualLink = "$year$ Tianjin Open"}
	tennis.tournaments["Intl Tokyo"] = {annualLink = "$year$ Japan Women's Open"}
	tennis.tournaments["Intl Washington"] = tennis.tournaments["500 Washington"]
	tennis.tournaments["P Birmingham"] = {annualLink = "$year$ Aegon Classic Birmingham"}
	tennis.tournaments["P Brisbane"] = {annualLink = "$year$ Brisbane International"}
	tennis.tournaments["P Charleston"] = {annualLink = "$year$ Volvo Car Open"}
	tennis.tournaments["P Doha"] = tennis.tournaments["P5 Doha"]
	tennis.tournaments["P Eastbourne"] = {annualLink = "$year$ Aegon International Eastbourne"}
	tennis.tournaments["P Moscow"] = tennis.tournaments["250 Moscow"]
	tennis.tournaments["P New Haven"] = {annualLink = "$year$ Connecticut Open"}
	tennis.tournaments["P St. Petersburg"] = {annualLink = "$year$ St. Petersburg Ladies' Trophy"}
	tennis.tournaments["P Stanford"] = {annualLink = "$year$ Bank of the West Classic"}
	tennis.tournaments["P Stuttgart"] = {annualLink = "$year$ Porsche Tennis Grand Prix"}
	tennis.tournaments["P Sydney"] = {annualLink = "$year$ Apia International Sydney"}
	tennis.tournaments["P Tokyo"] = tennis.tournaments["P5 Tokyo"]
	tennis.tournaments["Fed Cup QF"] = {
		annualLink = "$year$ Fed Cup World Group#Quarterfinals",
		annualSubst = {
			{" World Group", ""},
			{"#(.*)$", ", %1"}
		}
	}
	tennis.tournaments["Fed Cup SF"] = {
		annualLink = "$year$ Fed Cup World Group#Semifinals",
		annualSubst = {
			{" World Group", ""},
			{"#(.*)$", ", %1"}
		}
	}
	tennis.tournaments["Fed Cup F"] = {
		annualLink = "$year$ Fed Cup World Group#Final",
		annualSubst = {
			{" World Group", ""},
			{"#(.*)$", ", %1"}
		}
	}
end

return p