Difference between revisions of "Template:DavisCupbox"

From blackwiki
Jump to navigation Jump to search
(width)
(move width statement)
Line 1: Line 1:
 
{| cellpadding="4" cellspacing="0" style="background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; 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;
+
|left=float: left; margin-left: 0; margin-right: 1em;  width: 30em;
|right=float: right;  
+
|right=float: right;  width: 30em;
|center=float: none; margin-left: auto; margin-right: auto;  
+
|center=float: none; margin-left: auto; margin-right: auto; width: 70%
|none=float: none;
+
|none=float: none;  
|#default = float: none; margin-left: auto; margin-right: auto;
+
|#default = float: none; margin-left: auto; margin-right: auto; width: 70%
}}" width=70%
+
}}"  
 
|-  
 
|-  
 
!valign=top| {{davis-big|{{{team1|}}}|2={{{team1-var|}}}|name={{{team1-name|}}}|size=45x32px}}<br/><big>{{{score1}}}</big>
 
!valign=top| {{davis-big|{{{team1|}}}|2={{{team1-var|}}}|name={{{team1-name|}}}|size=45x32px}}<br/><big>{{{score1}}}</big>

Revision as of 00:09, 19 September 2012


[[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
|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. ca:Plantilla:CopaDavis Eliminatòria cs:Šablona:DavisCupbox id:Templat:DavisCupbox ja:Template:DavisCupbox pt:Predefinição:DavisCupbox ru:Шаблон:DavisCupbox sk:Šablóna:Davisov pohár zápas sl:Predloga:DavisCupbox sr:Шаблон:DavisCupbox sv:Mall:Davis Cup-match zh:Template:DavisCupbox