User:Eccy89/Template:DavisCupbox result/sandbox: Difference between revisions
Appearance
Content deleted Content added
change alignment |
changed width cols |
||
Line 67: | Line 67: | ||
}}" |
}}" |
||
|- 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:left; width: |
| style="text-align:left; width:25%" | {{{round}}} |
||
| style="text-align:right; width: |
| style="text-align:right; width:12%;" | '''{{User:Eccy89/Template:Davis-rt|{{{team1|}}}|2={{{team1-var|}}}|name={{{team1-name|}}}|size=32x20px}}''' |
||
| style="text-align:center; width:2%; padding-right:"| '''<big>{{{score1}}}</big>''' |
| style="text-align:center; width:2%; padding-right:"| '''<big>{{{score1}}}</big>''' |
||
| style="text-align:center; width:2%; padding-left:" | '''<big>{{{score2}}}</big>''' |
| style="text-align:center; width:2%; padding-left:" | '''<big>{{{score2}}}</big>''' |
||
| style="text-align:left; width: |
| style="text-align:left; width:12%;"| '''{{davis|{{{team2|}}}|2={{{team2-var|}}}|name={{{team2-name|}}}|size=32x20px}}''' |
||
| style="text-align:left; width: |
| style="text-align:left; width:30%" | {{{venue}}} {{#if:{{{surface|}}}|({{{surface}}}) }} |
||
| style="text-align:right; width: |
| style="text-align:right; width:11%;"| {{{date}}} |
||
| style="width:6%" | |
| style="width:6%" | |
||
|- |
|- |
||
|colspan= |
|colspan=6| |
||
{|cellpadding="0" cellspacing="0" style="margin: 0.5em 1em 0.5em 0; background: #f9f9f9;" width=70% |
{|cellpadding="0" cellspacing="0" style="margin: 0.5em 1em 0.5em 0; background: #f9f9f9;" width=70% |
||
|- style="text-align:left;background-color:#EAE3D8;" |
|- style="text-align:left;background-color:#EAE3D8;" |
Revision as of 12:30, 7 October 2024
[[Davis Cup team|]] |
{{{score1}}} | {{{round}}} | {{{score2}}} | [[Davis Cup team|]] |
||||||||||||||||||||||||||||
{{{venue}}} {{{date}}} {{{surface}}} |
|
This is the sandbox page for User:Eccy89/Template:DavisCupbox result (diff). See also the companion subpage for test cases. |
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.
{{{round}}} | [[Davis Cup team|]] | {{{score1}}} | {{{score2}}} | [[Davis Cup team|]] | {{{venue}}} | {{{date}}} | |||||||||||||||||||||||
|
This is the sandbox page for User:Eccy89/Template:DavisCupbox result (diff). See also the companion subpage for test cases. |
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.