Aller au contenu

Module:Palmarès tennis/categorie

Une page de Wikipédia, l'encyclopédie libre.

 Documentation[créer] [purger]
local categorie = { 
    atp = {
		['grand chelem'] = {
			couleur = '#FFC87A',
			texte = '<abbr class="abbr" title="Grand Chelem" >G. Chelem</abbr>',
			date = { debut = 1877, fin = 10000 }, 
			tri = 100
		 },

		['jeux olympiques'] = {
			couleur = { [true] = 'gold', [false] = 'silver' },
			texte = '<abbr class="abbr" title="Jeux olympiques" >J. olympiques</abbr>',
			date = { debut = 1896, fin = 10000 }, 
			tri = 200
		 },

		['masters grand prix'] = {
			couleur = '#D3D3F3',
			texte = '<abbr class="abbr" title="Masters Grand Prix" >Masters</abbr>',
			date = { debut = 1970, fin = 1989 }, 
			tri = 300
		 },

		['atp tour world championships'] = {
			couleur = '#D3D3F3',
			texte = '<abbr class="abbr" title="ATP Tour World Championships" >Masters</abbr>',
			date = { debut = 1990, fin = 1999 }, 
			tri = 310
		 },

		['tennis masters cup'] = {
			couleur = '#D3D3F3',
			texte = '<abbr class="abbr" title="Tennis Masters Cup" >Masters</abbr>',
			date = { debut = 2000, fin = 2008 }, 
			tri = 320
		 },

		['atp world tour finals'] = {
			couleur = '#D3D3F3',
			texte = '<abbr class="abbr" title="ATP World Tour Finals" >Masters</abbr>',
			date = { debut = 2009, fin = 10000 }, 
			tri = 330
		 },

		['grand prix championship series'] = {
			couleur = '#FFECB2',
			texte = '<abbr class="abbr" title="Grand Prix Championship Series" >GP Championship Series</abbr>',
			date = { debut = 1970, fin = 1989 }, 
			tri = 400
		 },

		['atp championship series single week'] = {
			couleur = '#FFECB2',
			texte = '<abbr class="abbr" title="ATP Championship Series Single Week" >Championship Series SW</abbr>',
			date = { debut = 1990, fin = 1992 }, 
			tri = 410
		 },

		['atp super 9'] = {
			couleur = '#FFECB2',
			texte = '<abbr class="abbr" title="ATP Super 9" >Super 9</abbr>',
			date = { debut = 1993, fin = 1999 }, 
			tri = 415
		 },

		['atp tennis masters series'] = {
			couleur = '#FFECB2',
			texte = '<abbr class="abbr" title="ATP Tennis Masters Series" >Tennis Masters Series</abbr>',
			date = { debut = 2000, fin = 2003 }, 
			tri = 420
		 },

		['atp masters series'] = {
			couleur = '#FFECB2',
			texte = '<abbr class="abbr" title="ATP Masters Series" >Masters Series</abbr>',
			date = { debut = 2004, fin = 2008 }, 
			tri = 425
		 },

		['atp world tour masters 1000'] = {
			couleur = '#FFECB2',
			texte = '<abbr class="abbr" title="ATP World Tour Masters 1000" >Masters 1000</abbr>',
			date = { debut = 2009, fin = 10000 }, 
			tri = 430
		 },

		['grand prix world series'] = {
			couleur = '#E4FAE4',
			texte = '<abbr class="abbr" title="Grand Prix World Series" >GP World Series</abbr>',
			date = { debut = 1970, fin = 1989 }, 
			tri = 500
		 },

		['atp championship series'] = {
			couleur = '#FDD',
			texte = '<abbr class="abbr" title="ATP Championship Series" >Championship Series</abbr>',
			date = { debut = 1990, fin = 1997 }, 
			tri = 510
		 },

		['atp international series gold'] = {
			couleur = '#FDD',
			texte = '<abbr class="abbr" title="ATP International Series Gold" >Int\039 Series Gold</abbr>',
			date = { debut = 1998, fin = 2008 }, 
			tri = 520
		 },

		['atp world tour 500'] = {
			couleur = '#FDD',
			texte = '<abbr class="abbr" title="ATP World Tour 500" >500 Series</abbr>',
			date = { debut = 2009, fin = 10000 }, 
			tri = 530
		 },

		['atp world series'] = {
			couleur = '#E4FAE4',
			texte = '<abbr class="abbr" title="ATP World Series" >World Series</abbr>',
			date = { debut = 1990, fin = 1997 }, 
			tri = 610
		 },

		['atp international series'] = {
			couleur = '#E4FAE4',
			texte = '<abbr class="abbr" title="ATP International Series" >Int\039 Series</abbr>',
			date = { debut = 1998, fin = 2008 }, 
			tri = 620
		 },

		['atp world tour 250'] = {
			couleur = '#E4FAE4',
			texte = '<abbr class="abbr" title="ATP World Tour 250" >250 Series</abbr>',
			date = { debut = 2009, fin = 10000 }, 
			tri = 630
		 },

		['atp challenger tour'] = {
			couleur = 'transparent',
			texte = '<abbr class="abbr" title="ATP Challenger Tour" >Challenger</abbr>',
			date = { debut = 2009, fin = 10000 }, 
			tri = 720
		 },

		['itf mens circuit'] = {
			couleur = 'transparent',
			texte = '<abbr class="abbr" title="ITF Men\039s Circuit" >Future</abbr>',
			date = { debut = 2009, fin = 10000 }, 
			tri = 820
		 },

		['masters'] = {
			couleur = '#d3d3f3',
			texte = '<abbr class="abbr" title="catégorie imprécise à préciser parmi : Masters Grand Prix, ATP Tour World Championships, Tennis Masters Cup, ATP World Tour Finals" >Masters</abbr>',
			date = { debut = 1970, fin = 10000 }, 
			tri = 300
		 },

		['championship series'] = {
			couleur = 'transparent',
			texte = '<abbr class="abbr" title="catégorie imprécise à préciser parmi : Grand Prix Championship Series, ATP Championship Series" >Championship Series</abbr>',
			date = { debut = 1970, fin = 1997 }, 
			tri = 490
		 },

		['world series'] = {
			couleur = 'transparent',
			texte = '<abbr class="abbr" title="catégorie imprécise à préciser parmi : Grand Prix World Series, ATP World Series" >World Series</abbr>',
			date = { debut = 1970, fin = 1997 }, 
			tri = 590
		 },

		['non connue'] = {
			couleur = 'transparent',
			texte = '<abbr class="abbr" title="Catégorie non connue" >NC</abbr>',
			date = { debut = 0, fin = 10000 }, 
			tri = 900
		 },

		[''] = {
			couleur = 'transparent',
			texte = '',
			date = { debut = 0, fin = 10000 }, 
			tri = 999
		 },
	},

	wta = {
		['international'] = {
			couleur = '#DDFFAA',
			texte = '<abbr class="abbr" title="International" >Intern\039l</abbr>',
			date = { debut = 2009, fin = 2020 }, 
			tri = 620
		 },

		['fédération internationnale de tennis'] = {
			couleur = '#FFECB2',
			texte = '<abbr class="abbr" title="Fédération Internationnale de Tennis" >ITF</abbr>',
			date = { debut = 1970, fin = 10000 }, 
			tri = 820
		 },

		['wta championship'] = {
			couleur = '#FFAAAA',
			texte = '<abbr class="abbr" title="WTA Championship" >Masters</abbr>',
			date = { debut = 1970, fin = 10000 }, 
			tri = 300
		 },
		
		['wta 125'] = {
			couleur = '#F0F0CC',
			texte = 'WTA 125',
			date = { debut = 2012, fin = 10000 }, 
			tri = 720
		 },

		 ['wta 250'] = {
			couleur = '#DDFFAA',
			texte = '<abbr class="abbr" title="WTA 250" >WTA 250</abbr>',
			date = { debut = 2021, fin = 10000 }, 
			tri = 720
		 },

		 ['wta 500'] = {
			couleur = '#e6ccff',
			texte = '<abbr class="abbr" title="WTA 500" >WTA 500</abbr>',
			date = { debut = 2021, fin = 10000 }, 
			tri = 620
		 },

		 ['wta 1000'] = {
			couleur = '#DDCCDD',
			texte = '<abbr class="abbr" title="WTA 1000" >WTA 1000</abbr>',
			date = { debut = 2021, fin = 10000 }, 
			tri = 520
		 },

		['wta elite trophy'] = {
			couleur = '#FFCCCC',
			texte = '<abbr class="abbr" title="WTA Elite Trophy" >Elite Trophy</abbr>',
			date = { debut = 2015, fin = 10000 }, 
			tri = 310
		 },

		['premier'] = {
			couleur = '#DDCCDD',
			texte = '<abbr class="abbr" title="Premier" >Premier</abbr>',
			date = { debut = 2009, fin = 2020 }, 
			tri = 520
		 },

		['premier 5'] = {
			couleur = '#DDCCDD',
			texte = '<abbr class="abbr" title="Premier 5" >Premier 5</abbr>',
			date = { debut = 2009, fin = 2020 }, 
			tri = 425
		 },

		['premier mandatory'] = {
			couleur = '#DDCCDD',
			texte = '<abbr class="abbr" title="Premier Mandatory" >PREMIER*</abbr>',
			date = { debut = 2009, fin = 2020 }, 
			tri = 420
		 },

		['tier i'] = {
			couleur = '#FFCCCC',
			texte = 'Tier I',
			date = { debut = 1988, fin = 2008 }, 
			tri = 410
		 },

		['tier ii'] = {
			couleur = '#EEEEFF',
			texte = 'Tier II',
			date = { debut = 1988, fin = 2008 }, 
			tri = 510
		 },

		['tier iii'] = {
			couleur = '#FFFFCC',
			texte = 'Tier III',
			date = { debut = 1988, fin = 2008 }, 
			tri = 610
		 },

		['tier iv'] = {
			couleur = '#DDFFDD',
			texte = 'Tier IV',
			date = { debut = 1988, fin = 2008 }, 
			tri = 710
		 },

		['tier iva'] = {
			couleur = '#DDFFDD',
			texte = 'Tier IVa',
			date = { debut = 1988, fin = 2008 }, 
			tri = 711
		 },

		['tier ivb'] = {
			couleur = '#DDFFDD',
			texte = 'Tier IVb',
			date = { debut = 1988, fin = 2008 }, 
			tri = 712
		 },

		['tier v'] = {
			couleur = '#CCCC99',
			texte = 'Tier V',
			date = { debut = 1988, fin = 2005 }, 
			tri = 800
		 },

		['grand chelem'] = {
			couleur = '#CCCCFF',
			texte = '<abbr class="abbr" title="Grand Chelem" >G. Chelem</abbr>',
			date = { debut = 1877, fin = 10000 }, 
			tri = 100
		 },

		['jeux olympiques'] = {
			couleur = { [true] = 'gold', [false] = 'silver' },
			texte = '<abbr class="abbr" title="Jeux olympiques" >J. olympiques</abbr>',
			date = { debut = 1896, fin = 10000 }, 
			tri = 200
		 },

		['non connue'] = {
			couleur = 'transparent',
			texte = '<abbr class="abbr" title="Catégorie non connue" >NC</abbr>',
			date = { debut = 0, fin = 10000 }, 
			tri = 900
		 },

		[''] = {
			couleur = 'transparent',
			texte = '',
			date = { debut = 0, fin = 10000 }, 
			tri = 999
		 },
	}
}


--    -------------  ALIAS    ATP   -------------

--  world series
categorie.atp ["ws"] = categorie.atp ['world series']

--  masters
categorie.atp ["masters de tennis masculin"] = categorie.atp ['masters']

--  championship series

--  

--  atp championship series

--  atp championship series single week
categorie.atp ["atp championship series, single week"] = categorie.atp ['atp championship series single week']
categorie.atp ["atp championship series, sw"] = categorie.atp ['atp championship series single week']
categorie.atp ["atp championship series sw"] = categorie.atp ['atp championship series single week']
categorie.atp ["championship series, single week"] = categorie.atp ['atp championship series single week']
categorie.atp ["championship series single week"] = categorie.atp ['atp championship series single week']
categorie.atp ["championship series, sw"] = categorie.atp ['atp championship series single week']
categorie.atp ["championship series sw"] = categorie.atp ['atp championship series single week']

--  atp international series
categorie.atp ["atp int' series"] = categorie.atp ['atp international series']
categorie.atp ["atp int'series"] = categorie.atp ['atp international series']
categorie.atp ["international series"] = categorie.atp ['atp international series']
categorie.atp ["international"] = categorie.atp ['atp international series']

--  atp international series gold
categorie.atp ["atp int' series gold"] = categorie.atp ['atp international series gold']
categorie.atp ["atp int'series gold"] = categorie.atp ['atp international series gold']
categorie.atp ["international series gold"] = categorie.atp ['atp international series gold']
categorie.atp ["international gold"] = categorie.atp ['atp international series gold']

--  atp tennis masters series
categorie.atp ["tennis masters series"] = categorie.atp ['atp tennis masters series']

--  atp masters series
categorie.atp ["masters series"] = categorie.atp ['atp masters series']

--  atp super 9
categorie.atp ["super9"] = categorie.atp ['atp super 9']
categorie.atp ["super 9"] = categorie.atp ['atp super 9']

--  atp tour world championships
categorie.atp ["atp championships"] = categorie.atp ['atp tour world championships']
categorie.atp ["atp tour championships"] = categorie.atp ['atp tour world championships']
categorie.atp ["atp world championships"] = categorie.atp ['atp tour world championships']
categorie.atp ["atptwc"] = categorie.atp ['atp tour world championships']

--  atp world series

--  atp world tour finals
categorie.atp ["atpwtf"] = categorie.atp ['atp world tour finals']

--  atp world tour 250
categorie.atp ["atp 250 series"] = categorie.atp ['atp world tour 250']
categorie.atp ["250 series"] = categorie.atp ['atp world tour 250']
categorie.atp ["atp 250"] = categorie.atp ['atp world tour 250']
categorie.atp ["250"] = categorie.atp ['atp world tour 250']
categorie.atp ["250 s"] = categorie.atp ['atp world tour 250']
categorie.atp ["250s"] = categorie.atp ['atp world tour 250']

--  atp world tour 500
categorie.atp ["atpwt 500 series"] = categorie.atp ['atp world tour 500']
categorie.atp ["atp 500 series"] = categorie.atp ['atp world tour 500']
categorie.atp ["500 series"] = categorie.atp ['atp world tour 500']
categorie.atp ["atpwt 500"] = categorie.atp ['atp world tour 500']
categorie.atp ["atp 500"] = categorie.atp ['atp world tour 500']
categorie.atp ["500"] = categorie.atp ['atp world tour 500']
categorie.atp ["500 s"] = categorie.atp ['atp world tour 500']
categorie.atp ["500s"] = categorie.atp ['atp world tour 500']

--  atp world tour masters 1000
categorie.atp ["atp master 1000"] = categorie.atp ['atp world tour masters 1000']
categorie.atp ["masters 1000"] = categorie.atp ['atp world tour masters 1000']
categorie.atp ["atp 1000"] = categorie.atp ['atp world tour masters 1000']
categorie.atp ["1000"] = categorie.atp ['atp world tour masters 1000']
categorie.atp ["m1000"] = categorie.atp ['atp world tour masters 1000']

--  grand chelem
categorie.atp ["g. chelem"] = categorie.atp ['grand chelem']
categorie.atp ["grands chelems"] = categorie.atp ['grand chelem']
categorie.atp ["gc"] = categorie.atp ['grand chelem']

--  grand prix world series
categorie.atp ["gp world series"] = categorie.atp ['grand prix world series']

--  grand prix championship series
categorie.atp ["grand prix championship series"] = categorie.atp ['grand prix championship series']
categorie.atp ["gp championship series"] = categorie.atp ['grand prix championship series']

--  jeux olympiques
categorie.atp ["j. olympiques"] = categorie.atp ['jeux olympiques']
categorie.atp ["jo"] = categorie.atp ['jeux olympiques']

--  masters grand prix
categorie.atp ["gp masters"] = categorie.atp ['masters grand prix']
categorie.atp ["grand prix masters"] = categorie.atp ['masters grand prix']
categorie.atp ["masters gp"] = categorie.atp ['masters grand prix']
categorie.atp ["masters grand prix"] = categorie.atp ['masters grand prix']

--  tennis masters cup
categorie.atp ["masters cup"] = categorie.atp ['tennis masters cup']
categorie.atp ["atp masters cup"] = categorie.atp ['tennis masters cup']
categorie.atp ["atp tennis masters cup"] = categorie.atp ['tennis masters cup']
categorie.atp ["tennis masters cup"] = categorie.atp ['tennis masters cup']

--  atp challenger series
categorie.atp ["challenger series"] = categorie.atp ['atp challenger series']

--  atp challenger tour
categorie.atp ["challenger tour"] = categorie.atp ['atp challenger tour']
categorie.atp ["challenger"] = categorie.atp ['atp challenger tour']

--  itf mens circuit
categorie.atp ["itf"] = categorie.atp ['itf mens circuit']
categorie.atp ["itf men's circuit"] = categorie.atp ['itf mens circuit']
categorie.atp ["future"] = categorie.atp ['itf mens circuit']


--    -------------  ALIAS    WTA   -------------

--  grand chelem
categorie.wta ["g. chelem"] = categorie.wta ['grand chelem']
categorie.wta ["grands chelems"] = categorie.wta ['grand chelem']
categorie.wta ["gc"] = categorie.wta ['grand chelem']

--  jeux olympiques
categorie.wta ["j. olympiques"] = categorie.wta ['jeux olympiques']
categorie.wta ["jo"] = categorie.wta ['jeux olympiques']

--  wta championship
categorie.wta ["avon championship"] = categorie.wta ['wta championship']
categorie.wta ["vs championship"] = categorie.wta ['wta championship']
categorie.wta ["masters"] = categorie.wta ['wta championship']

--  tier i
categorie.wta ["tier 1"] = categorie.wta ['tier i']

--  premier mandatory
categorie.wta ["wta premier mandatory"] = categorie.wta ['premier mandatory']
categorie.wta ["premier*"] = categorie.wta ['premier mandatory']

--  premier 5
categorie.wta ["wta premier 5"] = categorie.wta ['premier 5']
categorie.wta ["premier5"] = categorie.wta ['premier 5']

--  tier ii
categorie.wta ["tier 2"] = categorie.wta ['tier ii']

--  premier
categorie.wta ["wta premier"] = categorie.wta ['premier']

--  tier iii
categorie.wta ["tier 3"] = categorie.wta ['tier iii']

--  international
categorie.wta ["wta intern'l"] = categorie.wta ['international']
categorie.wta ["wta international"] = categorie.wta ['international']
categorie.wta ["intern'l"] = categorie.wta ['international']

--  tier iv
categorie.wta ["tier 4"] = categorie.wta ['tier iv']

--  tier iva
categorie.wta ["tier 4a"] = categorie.wta ['tier iva']

--  tier ivb
categorie.wta ["tier 4b"] = categorie.wta ['tier ivb']

--  wta 125
categorie.wta ["125"] = categorie.wta ['wta 125']
categorie.wta ["wta125"] = categorie.wta ['wta 125']

--  tier v
categorie.wta ["tier 5"] = categorie.wta ['tier v']

--  fédération internationnale de tennis
categorie.wta ["itf"] = categorie.wta ['fédération internationnale de tennis']

--  wta elite trophy
categorie.wta ["elite trophy"] = categorie.wta ['wta elite trophy']

--  wta 125
categorie.wta ["wta 125"] = categorie.wta ['wta 125']

--  wta 250
categorie.wta ["wta 250"] = categorie.wta ['wta 250']

--  wta 500
categorie.wta ["wta 500"] = categorie.wta ['wta 500']

--  wta 1000
categorie.wta ["wta 1000"] = categorie.wta ['wta 1000']

-- ------------------------------- --
--   paramètres date pour la page  -- 
-- ------------------------------- --
 
local page = mw.title.getCurrentTitle():getContent() or ""
categorie.contexte = string.match( page, "{{[Pp]almarès [AW]T[AP]/[^}]*| *contexte *= *(.-)[|}]" ) or ""
 
return categorie