Tennis at the 2008 Summer Olympics

Tennis at the 2008 Summer Olympics

Tennis competitions at the 2008 Summer Olympics in Beijing were held from August 10 to August 17 at the Olympic Green Tennis Centre. The DecoTurf surface rendered the event a hardcourt tournament.

The women's singles event proved notable for being one of only two Olympiads — and the first since 1908 — in which all tennis medalists were from the same country.[1] Despite their singles victories, however, the Russian women failed to advance past the quarterfinals of the women's doubles. Instead, Beijing brought the return of the gold medal to the United States, following their only failure to capture the gold since the event's re-introduction at the Seoul games.

The men's singles featured the first time an Olympic tennis player had medaled in consecutive Olympiads since the 1920 games,[2] while the men's doubles gave Switzerland its first medal in the event. The doubles also returned Switzerland and the United States to the medals stand for the first time since the 1988 re-introduction of the sport.

Contents

  • Qualification 1
    • ITF places 1.1
  • Preview 2
    • Men's Singles 2.1
    • Women's Singles 2.2
  • Venue 3
  • Competition 4
    • Format 4.1
    • Calendar 4.2
    • Day 1 4.3
    • Day 2 4.4
    • Day 3 4.5
  • Medal summary 5
    • Medal table 5.1
    • Events 5.2
  • Ranking points 6
  • References 7
  • External links 8

Qualification

The majority of players in the singles competitions (56 of 64 players in the draw) gained entry through their position in either the ATP (men) or WTA (women) rankings. The remaining eight places were given to six players who gained ITF places (wild cards) and two who received invitations from the Tripartite Commission, which were intended to go to National Olympic Committees (NOCs) with small teams.[3][4] For the doubles competitions, 10 players qualified directly. The remaining 86 places were allocated by the International Tennis Federation (ITF) based on world singles rankings.[5] This method of allocating doubles places angered some players, such as Leander Paes, and led to some perceived discrepancies: Martin Damm and Pavel Vízner of the Czech Republic, ranked eighth in the ATP Race, were not seeded, whereas Nicolás Almagro and David Ferrer of Spain, who were highly ranked in singles but had not played doubles together before, were seeded fifth.[6]

In the doubles, as in every team event at the Olympics, athletes had to compete on the side of athletes from the same NOC. This method of forming teams meant that Canadian world number one Daniel Nestor[7] had to find a new partner (his partner at the time was Serb Nenad Zimonjić)[8] and led one South African player, Liezel Huber, to seek U.S. citizenship so that she had the opportunity to play.[9] Each NOC could submit a maximum of 6 players; this sextet could be composed of a maximum of four singles players and four doubles players (two teams).[5]

The rankings of July 9 were used to determine the direct entrants.[3] A number of tournaments, including the prestigious Wimbledon Championships took place between this date and the time of the Games beginning, and some players re-entered the qualification places during this time. Rainer Schüttler, who was propelled up the rankings by his semi-final appearance at Wimbledon,[10][11] went to the Court of Arbitration for Sport and won his right to play at the Olympics, provoking a hostile response from the ITF, as it was a deviation from their original regulations.[12]

ITF places

Nicolás Massú from Chile, who was the defending champion.

ITF places, ostensibly a form of wild card,[13] were awarded to six players in both the men and women's singles, with one further place dispensed in the women's competition after Stephanie Vogt, entering via the Tripartite Commission, withdrew.[14][15] The four official criteria for ITF place consideration were world ranking (no numeric specification), whether the country was represented in the tennis event, the number of players on site, and geographical location.[13] However, there was some flexibility to these regulations: ITF president Ricci Bitti stated that it was his intention for the ITF places to grant opportunities to young players and players from under-represented countries, and to reward players who had competed diligently for their nation in the Davis or Fed Cup, or whom were former medalists.[16]

The ITF places were announced on July 30. Sun Peng was originally the only Chinese man to enter the men's singles, and did so through the ITF places. Accompanying Sun were multiple Grand Slam doubles titlists Max Mirnyi and Jonas Björkman (who was retiring at the end of the year),[16] nascent stars such as Kei Nishikori and Kevin Anderson, and defending champion Nicolás Massú. In the women's singles, the ITF places went to Alicia Molik, a bronze medalist in 2004, and Chan Yung-jan, a young player, with the remaining spots going to Mariya Koryttseva, Nuria Llagostera Vives, Ayumi Morita, Selima Sfar (a veteran Fed Cup player), and Tamarine Tanasugarn, who gained the retrospective place.[16]

Preview

Despite debate being re-ignited about tennis's place at the Olympics,[17][18] and the attestations of some players (such as Andy Roddick, who chose to play an American tournament in order to prepare for the U.S. Open), that the Grand Slams remained the pre-eminent tennis tournaments,[17][19] the 2008 Games saw the strongest field of competition since tennis's re-introduction to the Olympics in 1988. The singles competitions featured 17 of the top 20 men, and 18 of the top 20 women, with all of the top five men in attendance.[20] This was a huge improvement on only 12 years ago in Atlanta, when only 3 men from the world's top 10 entered.[21] Players had been further incentivized to compete at the Olympics after the ATP and WTA began awarding ranking points as of the 2000 Games.[22]

Apathy towards the Games was still present, as Roddick and 2004 Men's Singles silver-medalist Mardy Fish opted not to play in Beijing to better prepare themselves for the U.S. Open,[23] and Tom Tebbutt, commenting for the Globe and Mail (Canada), said "tennis appears headed for a downer at the Olympic Games".[6] However, many players expressed their enthusiasm for the Games, including Roger Federer, Rafael Nadal,[24] Jonas Björkman, Nicolás Massú,[16] Andy Murray,[25] Jelena Janković,[26] Elena Dementieva,[27] Alicia Molik,[16] and Venus and Serena Williams.[24] Novak Djoković and Svetlana Kuznetsova said that they felt the Olympics were of equal or even greater prestige than the Grand Slams, and Federer maintained that the Olympics were one of his priorities for the season.[28]

Men's Singles

By winning the Gold Medal in this Beijing Olympics, Rafael Nadal cemented his place in tennis history of winning gold in his first try. In the calendar year preceding the 2008 Olympics, there was a shift at the hierarchy of men's tennis as Rafael Nadal displaced Roger Federer as the world number one, after his record consecutive 237-week stay at the top of the rankings. From the second round of the 2008 Hamburg Masters to the semi-finals of the 2008 Cincinnati Masters (the last tournament before the Games), winning the French Open and Wimbledon in between, Nadal had won 32 consecutive matches.[29][30] Due to the way the rankings are accrued, Nadal became number one on August 18, the day after the Olympic tournament, although this had been confirmed earlier.[29] Nadal was therefore considered a strong favorite, as was Federer, who, despite reaching two Grand Slam finals, had had a poor year by his standards.[31] Other top-ten players considered to be favorites included the reigning Australian Open champion, Novak Djokovic, Spanish world No. 4 and 2007 Tennis Masters Cup finalist David Ferrer, James Blake, David Nalbandian, Nikolay Davydenko, and British player Andy Murray, who was lauded in the British press after winning the Cincinnati tournament and reaching the semi-finals of the previous week's Toronto Masters.[31][32][33][34]

Three Chinese nationals appeared in the men's draw, but none qualified automatically, with Sun Peng relying on the places issued by the International Tennis Federation (ITF), and Yu Xinyuan and Zeng Shao-Xuan replacing withdrawn players as alternates.[35]

By losing the final, Fernando González became the sixth tennis player, and fourth male player, in history to have won all Gold, Silver and Bronze medals in Olympic Tennis.

Women's Singles

Women's Singles champion, Elena Dementieva. Dementieva had reached two Grand Slam singles finals and lost before her triumph here.[36]

The women's game also underwent a period of transition in 2008. Justine Henin, the incumbent world number one and reigning Olympic champion, retired on May 14, citing a lack of motivation for the game.[37] Since then, three women had held the number one spot, and two, Maria Sharapova and Ana Ivanovic, had grappled with injury and poor form after successful first halves of the year. The pair were subsequently forced to withdraw from the Olympics.[38][39] The favorites included Jelena Janković, who assumed the world number one ranking on August 11, the second day of the tennis tournament; Russians Svetlana Kuznetsova, the world number three, Elena Dementieva, who was a silver medalist at the 2000 Summer Olympics, and Dinara Safina, the French Open finalist who had won back-to-back tournaments in the weeks before the Olympics; and the Williams sisters Venus and Serena, who had strong Olympic pedigree having won the singles (Venus) and doubles in 2000, and who had recently played each other in the Wimbledon final.[31][32]

A trio of players also represented China in the women's draw, although all three qualified automatically, unlike in the men's. They were Li Na, who was a semi-finalist at the Tier I Doha before succumbing to injury for most of the Summer;[40] Zheng Jie, who raised hopes by becoming the first Chinese player to reach the semi-finals of a Grand Slam singles tournament at Wimbledon;[41] and Peng Shuai.

Venue

Capacity
  • Centre Court – 10000 seats.
  • Show Court 1 – 4000 seats.
  • Show Court 2 – 2000 seats.
  • Remaining Courts – 7 courts seating for 200 seats each.

SurfaceDecoTurf II

Competition

Format

The tennis competition at the Olympic Games consisted of a single elimination tournament. The size of the singles draw, 64, meant that there were six rounds of competition in total,[42] with five in the doubles owing to its smaller draw size of 32.[43] Players reaching the semi-final were assured of an opportunity to compete for a medal, as the two losers in the semi-finals contested a bronze medal match.

Matches were best-of-3 sets, except for the Men's singles and doubles finals which were best-of-5 sets. The decisive final set had no tiebreak.[5] With athletes needing a two-game advantage to win the match, this led to one match's final set, the men's doubles semi-final between Arnaud Clément & Michaël Llodra and Simon Aspelin & Thomas Johansson, extending to 19–17 in Aspelin & Johansson's favour.[44]

Calendar

August 10 11 12 13 14 15 16 17
Morning 10.30 10.30 10.30
Afternoon 17.00 17.00 17.00 16.00 16.00 16.00 16.00 16.00
Men's Singles Round of 64 Round of 64 Round of 32 Round of 16 Quarterfinals Semifinals Bronze Final
Women's Singles Round of 64 Round of 64 Round of 32 Round of 16 Quarterfinals Quarterfinals Semifinals Bronze
Final
Men's Doubles Round of 32 Round of 32 Round of 16 Round of 16 Quarterfinals Semifinals Bronze
Final
Women's Doubles Round of 32 Round of 32 Round of 32 Round of 16 Round of 16 Round of 16
Quarterfinals
Semifinals Bronze
Final

Note: due to rain delays the Women's Singles schedule was pushed back a day.

Day 1

French player Arnaud Clément

On Day 1, the conditions were at a humidity level of 89%, and ITF commentators felt that this, along with the heat and smog, would result in fatigue for some players, especially in longer matches. Play did not begin at the scheduled time of 10 a.m., and was delayed until 12.53 p.m., when number eight seed James Blake began his match against Chris Guccione on the Centre Court. The Women's Singles competition also commenced. However, play was suspended again at 4.26 a.m., and eventually cancelled for the rest of the day.[45]

Only nine matches of the 20 scheduled matches were completed as a consequence of the rain-disrupted sessions.[46] Blake progressed, as did fourth seeded Russian Nikolay Davydenko, Chilean Fernando González, Czech Tomáš Berdych, and Argentine Guillermo Cañas, who benefited from a retirement from his opponent Frédéric Niemeyer, who was a set up, and said that he withdrew from the match in order to save himself for his doubles match with Sydney champion Daniel Nestor (their match eventually took place the following day).[45] Blake said that he had been inspired to victory by fellow American Michael Phelps, who won his first of eight gold medals in swimming, in the 400 metre individual medley, on the same day. In the women's draw, Dane Caroline Wozniacki, Australian Samantha Stosur, Italian Francesca Schiavone, and Bulgarian Tsvetana Pironkova all progressed.[47]

Day 2

On Day 2, humidity levels again proved to be unfavourable for players, with some saying that it was the worst they had ever played in. Play was only mildly interrupted by rain, with three scheduled matches failing to reach their conclusion. Defending champion Nicolás Massú defeated Steve Darcis (Belgium), and world number one Rafael Nadal came through against Potito Starace (Italy) in three sets, in what the BBC described as a "tough" match. Roger Federer, still the top seed, progressed, as did other seeds such as Serb Novak Djoković, Argentine David Nalbandian, Frenchman Gilles Simon, and Swiss Stanislas Wawrinka. Former world number one Lleyton Hewitt came through a testing match against Jonas Björkman, 7–5, 7–6(2), and Rafael Arevalo, one of the three players to be invited by the Tripartite Commission, won against Lee Hyung-taik, in what was his first match against a top 100 player. The highest seed to exit was Spain's David Ferrer (number five). The number six seed, Britain's Andy Murray, also lost, playing against Chinese Taipei representative Lu Yen-hsun. Along with Ferrer, number fourteen seed Nicolás Almagro and the unseeded Tommy Robredo also exited, meaning that three of the four Spanish representatives in the men's singles went out.[48][49]

In the women's singles, María José Martínez Sánchez became the first player to progress on the day, knocking out Alicia Molik. Second seed Jelena Janković won, as did American Serena Williams, Russian Elena Dementieva, Slovakian Daniela Hantuchová, and Frenchwoman Alizé Cornet amongst others, in their first round matches. Two seeds fell, both to Chinese opponents: Li Na defeated number three seed Svetlana Kuznetsova (Russia), and number 11 Ágnes Szávay (Hungary) lost to Zheng Jie. Afterwards, Zheng, a native of Sichuan, said the courage shown by the victims of the earthquake in May 2008 had helped inspire her to victory.[48][49]

The men's doubles competition also began, having originally been scheduled to start on Day 1. Chris Guccione and Lleyton Hewitt (Australia) defeated Agustín Calleri and Juan Mónaco (Argentina) 4–6, 7–6(4), 18–16. The match, which lasted three hours and 17 minutes, was the longest (in games, in a three set match) in Olympic history at 61. The previous record was held by Todd Woodbridge and Mark Woodforde (Australia) and Jacco Eltingh and Paul Haarhuis (Netherlands), who competed a 54-game match (6–2, 5–7, 18–16) at the 1996 event. Elsewhere, defending champions Massu and Gonzalez exited, Steve Darcis and Olivier Rochus (Belgium) defeated Guillermo Cañas and David Nalbandian (Argentina) in a match that exceeded two and a half hours, and Canada's only doubles team of Nestor and Niemeyer lost to the Murray brothers of Andy and Jamie (Great Britain). Federer and Nadal both came through, with their partners Wawrinka and Robredo, respectively.[48][49]

Day 3

Federer, Nadal, and Djoković, the top three seeds respectively, all saw safe passage into the second round on Day 3. However, Federer's countryman Wawrinka exited after losing to Austrian Jürgen Melzer, in what the ITF commentary team called a "bad loss". Notable losers included Massu, who went out to number seven seed Nalbandian; and Davydenko, the third seed, who lost to Paul-Henri Mathieu (France). Gilles Simon and Gaël Monfils were two other French players to progress to the third round. The match between Nicolas Kiefer (Germany) and Kevin Anderson became the longest singles match of the tournament up to that point, lasting three hours and twenty minutes, with Kiefer prevailing.[9][50]

Seeds who progressed in the women's singles included Janković (Serbia), the Williams sisters (United States), Liu Qui, courtside for her match against Alizé Cornet, but she was beaten in two sets. Her compatriot, Zheng, came through another long match.[9][50]

In the doubles, Bahamian Mark Knowles, a Grand Slam champion and the world number seven coming into the event, was knocked out, partnering Devin Mullings, by the Bryan brothers (United States). Mullings came into the Olympic tournament without a doubles ranking, and with a singles ranking of 1017. Other teams progressing including Martin Damm and Pavel Vízner (Czech Republic), who defeated Djoković and Nenad Zimonjić (Serbia). In the women's doubles, Liezel Huber and Lindsay Davenport (United States), both former Grand Slam doubles champions, came through. The other American team in the draw, the Williams sisters, came through a tough match against the Czech team of Iveta Benešová and Nicole Vaidišová, as did Zheng and Yan against the Slovak team of Hantuchová and Janette Husárová. The Russian team of Dinara Safina and Svetlana Kuznetsova, which combined two top ten singles players, progressed too.[9][50]

Medal summary

Medal table

Rafael Nadal- the 2008 Olympics tennis Men's Champion.

Russia, the country that finished atop the medal table, won all three of its medals in the women's singles. This made them the first nation to win all three medals in an Olympic tennis competition since Great Britain in 1908.[1] Rafael Nadal's gold for Spain made him the first Spanish tennis player to win a gold medal at the Olympics, and Nadal was also the first player from within the men's top 5 ranking to win in Olympic competition.[51] Serbia, competing at an independent NOC for the second time, won its first tennis medal; and the United States continued to be prolific in women's doubles, having won every competition (including this one) since 1988, except in 2004.[52]

Fernando González, who won the silver medal in men's singles, became the first tennis player since Charles Winslow (at Stockholm 1912 and Antwerp 1920) to win consecutive Olympic medals, having won gold (doubles) and bronze (singles) in 2004.[2] In the men's doubles, Switzerland won its first medal in the event, and Sweden and the US returned to the podium for the first time since 1988.

Retrieved from Beijing Olympics 2008 official website.[53]
 Rank  Nation Gold Silver Bronze Total
1  Russia (RUS) 1 1 1 3
2  Spain (ESP) 1 1 0 2
3

border|alt=|link=|United States]] United States (USA) 1 0 1 2
4  Switzerland (SUI) 1 0 0 1
5  Chile (CHI) 0 1 0 1
 Sweden (SWE) 0 1 0 1
7  China (CHN) 0 0 1 1
0 0 1 1
Total 4 4 4 12

Events

Event Gold Silver Bronze
Men's Singles  Rafael Nadal
Spain (ESP)
 Fernando González
Chile (CHI)
 Novak Djoković
Serbia (SRB)
Men's Doubles  Roger Federer
and Stanislas Wawrinka
Switzerland (SUI)
 Simon Aspelin
and Thomas Johansson
Sweden (SWE)

border|alt=|link=]] Bob Bryan
and Mike Bryan
United States (USA)
Women's Singles  Elena Dementieva
Russia (RUS)
 Dinara Safina
Russia (RUS)
 Vera Zvonareva
Russia (RUS)
Women's Doubles

border|alt=|link=]] Serena Williams
and Venus Williams
United States (USA)
 Anabel Medina Garrigues
and Virginia Ruano Pascual
Spain (ESP)
 Yan Zi
and Zheng Jie
China (CHN)

Ranking points

Rankings points determine the position of a player in the ATP (men's) and WTA (women's) rankings, which are based on players' performances in the previous 52-weeks. For the Olympics, the men's player who won received 400 ranking points[54]—put in perspective, this was 100 more than a win at the most prestigious International Series Gold tournaments, 100 less than a Masters Series win, and 600 less than a triumph at one of the four Grand Slam tournaments.[55]
Men's ATP ranking points Women's WTA ranking points
Gold Medal 400 353
Silver Medal 280 245
Bronze Medal 205 175
Loser 3rd/4th 155 135
Quarterfinals 100 90
Round of 16 50 48
Round of 32 25 28
1st Round 5 1

References


-- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local mArguments -- lazily initialise Module:Arguments local yesno -- lazily initialise Module:Yesno

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


-- Hatnote -- -- Produces standard hatnote text. Implements the template.


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p-------------------------------------------------------------------------------- -- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local mArguments -- lazily initialise Module:Arguments local yesno -- lazily initialise Module:Yesno

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


-- Hatnote -- -- Produces standard hatnote text. Implements the template.


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p
  1. ^ a b
  2. ^ a b
  3. ^ a b
  4. ^
  5. ^ a b c
  6. ^ a b
  7. ^
  8. ^
  9. ^ a b c d
  10. ^
  11. ^
  12. ^
  13. ^ a b
  14. ^
  15. ^ Highlights that Tanasugarn entered as an IP (ITF place) rather than an INV (Tripartite Commission Invitation)
  16. ^ a b c d e
  17. ^ a b
  18. ^
  19. ^
  20. ^
  21. ^
  22. ^
  23. ^
  24. ^ a b
  25. ^
  26. ^
  27. ^
  28. ^
  29. ^ a b
  30. ^
  31. ^ a b c
  32. ^ a b
  33. ^
  34. ^
  35. ^
  36. ^
  37. ^
  38. ^
  39. ^
  40. ^
  41. ^
  42. ^
  43. ^
  44. ^
  45. ^ a b
  46. ^
  47. ^
  48. ^ a b c
  49. ^ a b c
  50. ^ a b c
  51. ^
  52. ^
  53. ^
  54. ^
  55. ^

External links

  • International Tennis Federation – The Tennis Event at the 2008 Olympics