[[Davis Cup team|]]
(({score1))}
(({venue))}
(({date))}
(({surface))}

[[Davis Cup team|]]
(({score2))}
1 2 3 4 5
1
(({R1))}
2
(({R2))}
3
(({R3))}
4
(({R4))}
5
(({R5))}

Code for this template:

((DavisCupbox
|align=<!-- left, right, center, none -->
|team1=
|team1-var=  //use if non-standard flag is needed. 
|team2=
|team2-var=
|venue=
|date=
|surface=
|score1=
|score2=
|R1=(( TennisMatch |T1P1= | | | | | |T2P1= | | | | | ))
|R2=(( TennisMatch |T1P1= | | | | | |T2P1= | | | | | ))
|R3=(( TennisMatch |T1P1= |T1P2= | | | | | |T2P1= |T2P2= | | | | | ))
|R4=(( TennisMatch |T1P1= | | | | | |T2P1= | | | | | ))
|R5=(( TennisMatch |T1P1= | | | | | |T2P1= | | | | | ))
|))
<!-- info 
use one of this TennisMatch's arguments if it is need:
|np=    not played
|nc=x   not completed; x is set when match ended
|wo=x   walkover; x is player's team number (1 or 2)
|re1=x  retired of player from team 1; x is set when match ended
|re2=x  retired of player from team 2; x is set when match ended
-->

Inputting scores: See ((TennisMatch)) for more information.