Difference between revisions of "Template:Hopman Cup box"

From blackwiki
Jump to navigation Jump to search
Line 1: Line 1:
{| cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; font-size: 95%; {{#switch:{{{align|}}}
+
{| cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%; {{#switch:{{{align|}}}
 
|left=float: left; margin-left: 0; margin-right: 1em;  width: 30em;
 
|left=float: left; margin-left: 0; margin-right: 1em;  width: 30em;
 
|right=float: right; margin-right: 0; margin-left: 1em; width: 30em;
 
|right=float: right; margin-right: 0; margin-left: 1em; width: 30em;
Line 11: Line 11:
 
!valign=top| {{hopman-big|{{{team2|}}}|2={{{team2-var|}}}|name={{{team2-name|}}}|size=45x32px}}<br/><big>{{{score2}}}</big>
 
!valign=top| {{hopman-big|{{{team2|}}}|2={{{team2-var|}}}|name={{{team2-name|}}}|size=45x32px}}<br/><big>{{{score2}}}</big>
 
|-
 
|-
|colspan=6|
+
|colspan=6|  
 
{|cellpadding="0" cellspacing="0" style="margin: 0.5em 1em 0.5em 0; background: #f9f9f9;" width=100%
 
{|cellpadding="0" cellspacing="0" style="margin: 0.5em 1em 0.5em 0; background: #f9f9f9;" width=100%
<!-- head -->
 
 
|- align=left bgcolor=#EAE3D8
 
|- align=left bgcolor=#EAE3D8
 
!width=3%|
 
!width=3%|
 
!
 
!
!width=62%|
+
!width=50%|
!width=6%|1
+
!width=6%|1  
!width=6%|2
+
!width=6%|2  
!width=6%|3
+
!width=6%|3  
!width=12%|
 
|-
 
  
<!-- rubber1 -->
 
 
|- bgcolor=#ededed
 
|- bgcolor=#ededed
 
! 1
 
! 1
| {{#if: {{{team1|}}} | {{#if: {{{team1-noflag|}}} | {{noflag}} | {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}} }}| }}<br />{{#if: {{{team2|}}} | {{#if: {{{team2-noflag|}}} | {{noflag}} | {{flagicon|{{{team2|}}}|2={{{team2-var|}}}}} }}| }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
|{{{R1}}}
+
|{{{R1}}}  
|-
 
  
<!-- rubber2 -->
 
 
|-
 
|-
 
! 2
 
! 2
| {{#if: {{{team1|}}} | {{#if: {{{team1-noflag|}}} | {{noflag}} | {{flagicon|{{{team1}}}|2={{{team1-var|}}}}} }}| }}<br />{{#if: {{{team2|}}} | {{#if: {{{team2-noflag|}}} | {{noflag}} | {{flagicon|{{{team2}}}|2={{{team2-var|}}}}} }}| }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
 
|{{{R2}}}
 
|{{{R2}}}
|-
 
  
<!-- rubber3 -->
 
 
|- bgcolor=#ededed
 
|- bgcolor=#ededed
 
! 3
 
! 3
| {{#if: {{{team1|}}} | {{#if: {{{team1-noflag|}}} | {{noflag}} | {{flagicon|{{{team1}}}|2={{{team1-var|}}}}} }}| }}<br />{{#if: {{{team2|}}} | {{#if: {{{team2-noflag|}}} | {{noflag}} | {{flagicon|{{{team2}}}|2={{{team2-var|}}}}} }}| }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
|{{{R3}}}
+
|{{{R3}}}  
|-
+
 
|}
 
 
|}
 
|}
 +
|}<noinclude>
  
<noinclude>
+
'''Code for this template:'''
Code for this template:
 
 
<pre>
 
<pre>
{{Hopman Cup box
+
{{DavisCupbox
 
|align=<!-- left, right, center, none -->
 
|align=<!-- left, right, center, none -->
 
|team1=
 
|team1=
Line 59: Line 50:
 
|score1=
 
|score1=
 
|score2=
 
|score2=
|R1={{ TennisMatch3 |T1P1= | | | |T2P1= | | | }}
+
|R1={{ TennisMatch |T1P1= | | | | | |T2P1= | | | | | }}
|R2={{ TennisMatch3 |T1P1= | | | |T2P1= | | | }}
+
|R2={{ TennisMatch |T1P1= | | | | | |T2P1= | | | | | }}
|R3={{ TennisMatch3 |T1P1= |T1P2= | | | |T2P1= |T2P2= | | | }}
+
|R3={{ TennisMatch |T1P1= |T1P2= | | | | | |T2P1= |T2P2= | | | | | }}
}}
+
|R4={{ TennisMatch |T1P1= | | | | | |T2P1= | | | | | }}
<!-- info
+
|R5={{ TennisMatch |T1P1= | | | | | |T2P1= | | | | | }}
use one of this TennisMatch3's arguments if it is need:
+
|team1-var=  //use if non-standard flag is needed.
 +
|team2-var=
 +
|}}
 +
<!-- info  
 +
use one of this TennisMatch's arguments if it is need:
 
|np=    not played
 
|np=    not played
 
|nc=x  not completed; x is set when match ended
 
|nc=x  not completed; x is set when match ended
Line 70: Line 65:
 
|re1=x  retired of player from team 1; x is set when match ended
 
|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
 
|re2=x  retired of player from team 2; x is set when match ended
|mtb=  match tie-break was played in the mixed doubles
 
 
-->
 
-->
</pre>  
+
</pre>
 +
 
 +
'''Inputting scores:'''
 +
See {{tl|TennisMatch}} for more information.
 +
 
 
[[Category:Tennis tournaments infobox templates|{{PAGENAME}}]]
 
[[Category:Tennis tournaments infobox templates|{{PAGENAME}}]]
 +
 +
 +
 +
 +
 +
 +
  
  

Revision as of 20:22, 1 January 2014


[[at the Hopman Cup|]]
{{{score1}}}
{{{venue}}}
{{{date}}}
{{{surface}}}

[[at the Hopman Cup|]]
{{{score2}}}
1 2 3
1
{{{R1}}}
2
{{{R2}}}
3
{{{R3}}}

Code for this template:

{{DavisCupbox
|align=<!-- left, right, center, none -->
|team1=
|team2=
|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= | | | | | }}
|team1-var=  //use if non-standard flag is needed. 
|team2-var=
|}}
<!-- 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.