User:Eccy89/Template:DavisCupbox result: Difference between revisions
Appearance
Content deleted Content added
changing to sandbox |
smaller |
||
Line 4: | Line 4: | ||
|center=float: none; margin-left: auto; margin-right: auto; width: 80% |
|center=float: none; margin-left: auto; margin-right: auto; width: 80% |
||
|none=float: none; width: 75% |
|none=float: none; width: 75% |
||
|#default = float: none; width: |
|#default = float: none; width: 70%; |
||
}}" |
}}" |
||
|- style="color:inherit;background-color:{{#switch:{{{result|}}}|W=#98fb98|L=#ffa07a|#default=inherit}};" |
|- style="color:inherit;background-color:{{#switch:{{{result|}}}|W=#98fb98|L=#ffa07a|#default=inherit}};" |
||
| style="text-align:right; width:25%; padding-right:2em" | '''{{davis|{{{team1|}}}|2={{{team1-var|}}}|name={{{team1-name|}}}|size= |
| style="text-align:right; width:25%; padding-right:2em" | '''{{davis|{{{team1|}}}|2={{{team1-var|}}}|name={{{team1-name|}}}|size=36x21px}}''' |
||
| style="text-align:center; width:2%;"| '''<big>{{{score1}}}</big>''' |
| style="text-align:center; width:2%;"| '''<big>{{{score1}}}</big>''' |
||
| style="text-align:center; width:40%" | {{{round}}} |
| style="text-align:center; width:40%" | {{{round}}} |
||
| style="text-align:center; width:2%;" | '''<big>{{{score2}}}</big>''' |
| style="text-align:center; width:2%;" | '''<big>{{{score2}}}</big>''' |
||
| style="text-align:left; width:25%; padding-left:2em"| '''{{davis|{{{team2|}}}|2={{{team2-var|}}}|name={{{team2-name|}}}|size= |
| style="text-align:left; width:25%; padding-left:2em"| '''{{davis|{{{team2|}}}|2={{{team2-var|}}}|name={{{team2-name|}}}|size=36x21px}}''' |
||
| style="width:6%" | |
| style="width:6%" | |
||
|- |
|- |
Revision as of 13:28, 24 September 2024
[[Davis Cup team|]] | {{{score1}}} | {{{round}}} | {{{score2}}} | [[Davis Cup team|]] | ||||||||||||||||||||||||||||
{{{venue}}} {{{date}}} {{{surface}}} |
|
Usage
Code for this template:
{{DavisCupbox
|align=<!-- left, right, center, none -->
|collapsed=<!-- default=uncollapsed; in sandbox only -->
|team1=
|team1-var= //use if non-standard flag is needed.
|team2=
|team2-var=
|round=
|date=
|venue=<!-- in the form of stadium or ground, city, country and surface in parentheses. You may consider adding a reference here -->
|score1=
|score2=
|result=<!-- W or L for use in national team result pages-->
|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.