Module:Team appearances list/data: Difference between revisions

Content deleted Content added
add 2020 Summer Paralympics
update from sandbox - more dynamic ability to handle competition renames
Line 15:
East
South
Southeast (TBD)
Southeast Peninsular (TBD)
West
Commonwealth Games
British Empire Games
British Empire and Commonwealth Games
British Commonwealth Games
Europe
European Athletics Championships
Line 40 ⟶ 36:
Winter Universiade (TBD)
World Aquatics Championships
World Athletics Championships in Athletics
World Indoor Championships in Athletics
]]--
local old_names = {
 
-- Games that changed their name at some point
["British Empire Games"] = "Commonwealth Games",
["British Empire and Commonwealth Games"] = "Commonwealth Games",
["British Commonwealth Games"] = "Commonwealth Games",
["Southeast Asian Peninsular Games"] = "Southeast Asian Games",
["World Championships in Athletics"] = "World Athletics Championships",
}
local all_competitions = {
-----Africa-----
Line 168 ⟶ 171:
},
["Southeast Asian Games"] = {
1959, 1961, 1963, 1965, 1967, 1969, 1971, 1973, 1975,
1977, 1979, 1981, 1983, 1985, 1987, 1989, 1991, 1993, 1995, 1997, 1999,
2001, 2003, 2005, 2007, 2009, 2011, 2013, 2015, 2017, 2019,
["Brunei"] = {begin_year=1977},
},
["Burma"] = {begin_year=1959, end_year=1987},
["Southeast Asian Peninsular Games"] = {
1959,["Cambodia"] = {begin_year=1961, 1963, 1965, 1967, 1969, 1971, 1973, 1975, 1977, 1979, 1981, 1989, 1991, 1993},
["East Timor"] = {begin_year=2003},
["Indonesia"] = {begin_year=1977},
["Khmer Republic"] = {begin_year=1971, end_year=1973},
["Laos"] = {begin_year=1959, 1975, 1977, 1979, 1981, 1983, 1985, 1987},
["Malaya"] = {begin_year=1959, end_year=1961},
["Malaysia"] = {begin_year=1965},
["Myanmar"] = {begin_year=1989},
["Philippines"] = {begin_year=1977},
["South Vietnam"] = {begin_year=1959, end_year=1973},
["Thailand"] = {begin_year=1961},
["Vietnam"] = {begin_year=1989},
},
["West Asian Games"] = {
Line 188 ⟶ 203:
 
-----Commonwealth Games-----
["British Empire Games"] = {
1930, 1934, 1938, 1950,
["Bermuda"] = {1950},
["British Guiana"] = {1950},
["Fiji"] = {begin_year=1938},
["Guyana"] = {1950},
["Hong Kong"] = {1938, 1950, begin_year=1934},
["India"] = {1950, begin_year=1934},
["Jamaica"] = {1938, 1950, begin_year=1934},
["Malaya"] = {begin_year=1950},
["Nigeria"] = {begin_year=1950},
["Northern Ireland"] = {1950, begin_year=1934},
["Sri Lanka"] = {begin_year=1938},
["Trinidad and Tobago"] = {1950, begin_year=1934},
},
["British Empire and Commonwealth Games"] = {
1954, 1958, 1962, 1966,
["Aden"] = {begin_year=1962, end_year=1962},
["Antigua and Barbuda"] = {begin_year=1966},
["Belize"] = {begin_year=1962},
["Bermuda"] = {1958, 1962},
["British Honduras"] = {begin_year=1962, end_year=1966},
["British North Borneo"] = {begin_year=1958, end_year=1962},
["Dominica"] = {1966, begin_year=1958},
["Gibraltar"] = {begin_year=1958},
["Hong Kong"] = {1966},
["India"] = {1962},
["Isle of Man"] = {begin_year=1958},
["Jersey"] = {begin_year=1958},
["Malaya"] = {1954, end_year=1962},
["Malaysia"] = {begin_year=1966},
["Malta"] = {1966, begin_year=1958},
["Mauritius"] = {begin_year=1958},
["Nigeria"] = {1962},
["Papua New Guinea"] = {begin_year=1962},
["Rhodesia and Nyasaland"] = {begin_year=1962, end_year=1962},
["Saint Lucia"] = {1966, begin_year=1962},
["Saint Vincent and the Grenadines"] = {1962, begin_year=1958},
["Sarawak"] = {begin_year=1958, end_year=1962},
["Sierra Leone"] = {1962, begin_year=1958},
["Singapore"] = {begin_year=1958},
["South Africa"] = {1962, 1966},
["Sri Lanka"] = {1954},
["Tanganyika"] = {begin_year=1962, end_year=1962},
["Tanzania"] = {begin_year=1962},
["Zambia"] = {1962, 1966},
["Zimbabwe"] = {1962, 1966},
},
["British Commonwealth Games"] = {
1970, 1974,
["Antigua and Barbuda"] = {1974},
["Bahamas"] = {1974},
["Belize"] = {1970, 1974},
["Botswana"] = {begin_year=1974},
["Cook Islands"] = {begin_year=1974},
["Dominica"] = {1974},
["Guyana"] = {1974},
["Lesotho"] = {begin_year=1974},
["Malta"] = {1974},
["Pakistan"] = {1974},
["Saint Lucia"] = {1974},
["Samoa"] = {begin_year=1974},
["Sierra Leone"] = {1974},
["South Africa"] = {1970, 1974},
["Tonga"] = {begin_year=1974},
["Western Samoa"] = {begin_year=1974},
["Zimbabwe"] = {1970, 1974},
},
["Commonwealth Games"] = {
19781930, 19821934, 19861938, 19901950, 19941954, 19981958, 20021962, 20061966, 20101970, 20141974, 20181978, 1982,
1986, 1990, 1994, 1998, 2002, 2006, 2010, 2014, 2018,
["Anguilla"] = {begin_year=1998},
["Aden"] = {begin_year=1962, end_year=1962},
["Antigua and Barbuda"] = {1982, 1986, 1990},
["BahamasAnguilla"] = {1986begin_year=1998},
["BangladeshAntigua and Barbuda"] = {begin_year=1966, 1974, 1982, 1986, 1990},
["BarbadosBahamas"] = {1974, 1986},
["BelizeBangladesh"] = {1982, 1986, 1990},
["BotswanaBarbados"] = {19781986},
["British Virgin Islands ["Belize"] = {begin_year=1962, 1970, 1974, 1982, 1986, 1990},
["BruneiBermuda"] = {begin_year=19901950, 1958, 1962},
["CameroonBotswana"] = {begin_year=19981974, 1978},
["CookBritish IslandsGuiana"] = {19821950},
["British Honduras"] = {begin_year=1962, end_year=1966},
["Cyprus"] = {1986},
["British North Borneo"] = {begin_year=1958, end_year=1962},
["Dominica"] = {1978, 1982, 1986, 1990},
["FalklandBritish Virgin Islands"] = {begin_year=19821990},
["FijiBrunei"] = {begin_year=1990, 1994, 2010},
["The GambiaCameroon"] = {begin_year=1970, 1986, end_year=20101998},
["Cook Islands"] = {begin_year=1974, 1982},
["Ghana"] = {1986},
["GrenadaCyprus"] = {1986, 1990, 1994},
["Dominica"] = {1966, begin_year=1958, 1974, 1978, 1982, 1986, 1990},
["Guyana"] = {1986},
["HongFalkland KongIslands"] = {end_yearbegin_year=19941982},
["Fiji"] = {begin_year=1938, 1990, 1994, 2010},
["India"] = {1986},
["JamaicaGhana"] = {1986},
["KenyaGibraltar"] = {1986begin_year=1958},
["KiribatiGrenada"] = {begin_year=19981970, 1986, 1990, 1994},
["LesothoGuyana"] = {19821950, 1974, 1986},
["Hong Kong"] = {1938, 1950, begin_year=1934, 1966, end_year=1994},
["Malaysia"] = {1986},
["MaldivesIndia"] = {1950, begin_year=19861934, end_year=20141962, 1986},
["MaltaIsle of Man"] = {1978begin_year=1958},
["MauritiusJamaica"] = {1938, 1950, begin_year=1934, 1986},
["MontserratJersey"] = {begin_year=19941958},
["MozambiqueKenya"] = {begin_year=19981986},
["NamibiaKiribati"] = {begin_year=19941998},
["NauruLesotho"] = {1982, begin_year=19901974},
["NigeriaMalaya"] = {1978begin_year=1950, 19861954, 1998end_year=1962},
["NiueMalaysia"] = {begin_year=20021966, 1986},
["Norfolk IslandMaldives"] = {begin_year=1986, end_year=2014},
["PakistanMalta"] = {19781966, 1982begin_year=1958, 19861974},
["Papua New Guinea ["Malta"] = {19861978},
["RwandaMauritius"] = {1986, begin_year=20101958},
["Saint HelenaMontserrat"] = {1986, 1990, 1994, begin_year=19821994},
["Mozambique"] = {begin_year=1998},
["Saint Kitts and Nevis"] = {1982, 1986},
["Saint LuciaNamibia"] = {1982, 1986, 1990begin_year=1994},
["Saint Vincent and the Grenadines ["Nauru"] = {1982, 1986, begin_year=1990},
["SeychellesNigeria"] = {1962, 1978, 1986, 1998, begin_year=19901950},
["Sierra LeoneNiue"] = {1982, 1986begin_year=2002},
["SolomonNorfolk IslandsIsland"] = {1986, begin_year=19821986},
["SouthNorthern AfricaIreland"] = {19781950, 1982, 1986, 1990begin_year=1934},
["Sri LankaPakistan"] = {1974, 1978, 1982, 1986},
["TongaPapua New Guinea"] = {19781986, 1986begin_year=1962},
["TrinidadRhodesia and TobagoNyasaland"] = {1986begin_year=1962, end_year=1962},
["Rwanda"] = {begin_year=2010},
["Turks and Caicos Islands"] = {1982, 1986, 1990, 1994},
["TuvaluSaint Helena"] = {1986, 1990, 1994, begin_year=19981982},
["UgandaSaint Kitts and Nevis"] = {1982, 1986},
["VanuatuSaint Lucia"] = {1966, begin_year=1962, 1974, 1982, 1986, 1990},
["Saint Vincent and the Grenadines"] = {1962, begin_year=1958, 1982, 1986, 1990},
["Zambia"] = {1986},
["ZimbabweSamoa"] = {1978, 1986, end_yearbegin_year=20021974},
["Sarawak"] = {begin_year=1958, end_year=1962},
["Seychelles"] = {begin_year=1990},
["Sierra Leone"] = {1962, begin_year=1958, 1974, 1982, 1986},
["Singapore"] = {begin_year=1958},
["Solomon Islands"] = {1986, begin_year=1982},
["South Africa"] = {1962, 1966, 1970, 1974, 1978, 1982, 1986, 1990},
["Sri Lanka"] = {1954, 1986, begin_year=1938},
["Tanganyika"] = {begin_year=1962, end_year=1962},
["Tanzania"] = {begin_year=1962},
["The Gambia"] = {begin_year=1970, 1986, end_year=2010},
["Tonga"] = {1978, 1986, begin_year=1974},
["Trinidad and Tobago"] = {1950, begin_year=1934, 1986},
["Turks and Caicos Islands"] = {1982, 1986, 1990, 1994},
["Tuvalu"] = {begin_year=1998},
["Uganda"] = {1986},
["Vanuatu"] = {begin_year=1982},
["Western Samoa"] = {begin_year=1974},
["Zambia"] = {1962, 1966, 1986},
["Zimbabwe"] = {1962, 1966, 1970, 1974, 1978, 1986, end_year=2002},
},
["Commonwealth Youth Games"] = {
Line 938 ⟶ 904:
["Yemen"] = {2011, begin_year=2005},
},
["World Athletics Championships in Athletics"] = {
1976, 1980, 1983, 1987, 1991, 1993, 1995, 1997, 1999, 2001, 2003, 2005, 2007, 2009,
2011, 2013, 2015, 2017, 2019,
Line 1,152 ⟶ 1,118:
return {
competitions = all_competitions,
old_names = old_names,
}