Difference between revisions of "Template:Infobox tennis biography/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(add test case for "height" parameter)
imported>Wolbo
(Test)
Line 1: Line 1:
 
{{Template test cases notice}}
 
{{Template test cases notice}}
 +
 +
==Example==
 +
{{Infobox tennis biography
 +
| name            = Ronald Agénor
 +
| image                = Ronald Agenor.jpg
 +
| country              = {{HAI}}<br>{{USA}}
 +
| residence            = [[Beverly Hills]], [[California]], USA
 +
| birth_date            = {{birth date and age|mf=yes|1964|11|13}}
 +
| birth_place            = [[Rabat]], [[Morocco]]
 +
| height                = {{height|m=1.80}}
 +
| turnedpro            = 1983
 +
| retired              = 2012
 +
| plays                = Right-handed (one-handed backhand)
 +
| careerprizemoney      = [[US$|$]]2,014,601
 +
| singlesrecord        = 221–257
 +
| singlestitles        = 3
 +
| highestsinglesranking = No. 22 (May 8, 1989)
 +
| AustralianOpenresult  = 2R ([[1990 Australian Open - Men's Singles|1990]])
 +
| FrenchOpenresult      = QF ([[1989 French Open - Men's Singles|1989]])
 +
| Wimbledonresult      = 2R ([[1989 Wimbledon Championships - Men's Singles|1989]], [[1993 Wimbledon Championships - Men's Singles|1993]])
 +
| USOpenresult          = 4R ([[1988 US Open - Men's Singles|1988]])
 +
| Othertournaments = yes
 +
| Olympicsresult = 1R ([[Tennis at the 1984 Summer Olympics – Men's singles|1984<sup>DE</sup>]], [[Tennis at the 1988 Summer Olympics – Men's Singles|1988]], [[Tennis at the 1996 Summer Olympics – Men's Singles|1996]])
 +
| doublesrecord        = 26–58
 +
| doublestitles        = 0
 +
| highestdoublesranking = No. 111 (July 14, 1986)
 +
}}
 +
  
 
== Test 1 ==
 
== Test 1 ==

Revision as of 20:19, 14 September 2019

  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Example

Ronald Agénor
File:Ronald Agenor.jpg
Script error: No such module "Wikidata".
Country (sports) Haiti
Template:USA
ResidenceBeverly Hills, California, USA
Born (1964-11-13) November 13, 1964 (age 60)
Rabat, Morocco
Height1.80 m (5 ft 11 in)
Turned pro1983
Retired2012
PlaysRight-handed (one-handed backhand)
Prize money$2,014,601
Singles
Career record221–257
Career titles3
Highest rankingNo. 22 (May 8, 1989)
Grand Slam Singles results
Australian Open2R (1990)
French OpenQF (1989)
Wimbledon2R (1989, 1993)
US Open4R (1988)
Other tournaments
Olympic Games1R (1984DE, 1988, 1996)
Doubles
Career record26–58
Career titles0
Highest rankingNo. 111 (July 14, 1986)


Test 1

Template:Testcase table

Test 2

Template:Testcase table

Height

Automatic conversion

{{Infobox tennis biography | name = 
| height = 5 ft 10 in
}}

Template:Testcase table

{{Infobox tennis biography | name = 
| height = 180 cm
}}

Template:Testcase table

Conversion via template

{{Infobox tennis biography | name = 
| height = {{convert|5|ft|10|in|cm|abbr=on}}
}}

Template:Testcase table

{{Infobox tennis biography | name = 
| height = {{convert|180|cm|ftin|abbr=on}}
}}

Template:Testcase table

Manually entered conversion

{{Infobox tennis biography | name = 
| height = 5 ft 10 in (178 cm)
}}

Template:Testcase table

{{Infobox tennis biography | name = 
| height = 180 cm (5 ft 11 in)
}}

Template:Testcase table