Name

Tennis hth header = Tennis - Head-to-head - header

Use together

Use this template with the following templates:

Parameters

hr=no : highest ranking - Hide column Highest ranking
s=yes : statistics - Use Statistics column instead Last match

Examples

Code: <syntaxhighlight lang="wikitext">

Opponent Highest
ranking
Matches Won Lost Win % Last match
Australia Lleyton Hewitt 1 7 6 1 86% Won (6–3, 6–3, 6–1) at 2012 Olympics 3R
Spain Juan Carlos Ferrero 1 3 2 1 67% Won (6–3, 6–3, 6–1) at 2012 Wimbledon 1R
Spain 'Carlos Moyá 1 4 2 2 50% Won (6–4, 7–6(9–7), 6–1) at 2007 US Open QF
Switzerland Roger Federer 1 32 15 17 47% Lost (6–3, 3–6, 2–6) at 2014 Dubai SF
Total 381 273 108 72% * Statistics correct as of 28 February 2014

</syntaxhighlight>

Result:

Opponent Highest
ranking
Matches Won Lost Win % Last match
Australia Lleyton Hewitt 1 7 6 1 86% Won (6–3, 6–3, 6–1) at 2012 Olympics 3R
Spain Juan Carlos Ferrero 1 3 2 1 67% Won (6–3, 6–3, 6–1) at 2012 Wimbledon 1R
Spain Carlos Moyá 1 4 2 2 50% Won (6–4, 7–6(9–7), 6–1) at 2007 US Open QF
Switzerland Roger Federer 1 32 15 17 47% Lost (6–3, 3–6, 2–6) at 2014 Dubai SF
Total 381 273 108 72% * Statistics correct as of 28 February 2014