Code for this template:

{{SquashTeambox
|align=<!-- left, right, center, none -->
|team1=
|team2=
|match=
|venue=
|date=
|surface=
|score1=
|score2=
|R1={{ TennisMatch |T1P1= | | | | | |T2P1= | | | | | }}
|R2={{ TennisMatch |T1P1= | | | | | |T2P1= | | | | | }}
|R3={{ 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.