Difference between revisions of "Template:FedCupbox"

From blackwiki
Jump to navigation Jump to search
imported>Woohookitty
(cat)
imported>Sims2aholic8
m
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{| cellpadding="4" cellspacing="0" style="margin: 0.5em 1em 0.5em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;" width=70% align=center
+
{| 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;
 +
|right=float: right; margin-right: 0; margin-left: 1em; width: 30em;
 +
|center=float: none; margin-left: auto; margin-right: auto;  width: 70%
 +
|none=float: none; width: 70%
 +
|#default = float: none; width: 70%
 +
}}"
 +
|-
 +
! style="vertical-align:top;" | {{fed-big|{{{team1|}}}|2={{{team1-var|}}}|size=45x32px}}<br/><big>{{{score1}}}</big>
 +
| colspan=2 style="text-align:center;" | {{{venue}}}<br />{{{date}}}<br />{{{surface}}}
 +
! style="vertical-align:top;" | {{fed-big|{{{team2|}}}|2={{{team2-var|}}}|size=45x32px}}<br/><big>{{{score2}}}</big>
 
|-
 
|-
!width=10% valign=top| {{#if: {{{team1|}}} | {{#if: {{{flag1-alt|}}} | [[Image:{{{flag1-alt}}}|40px|border]] | {{flagicon|{{{team1}}}|size=40px}} }} | }}
+
|colspan=4|
!width=40% | {{#if: {{{team1|}}} | {{#if: {{{team1-alt|}}} | [[{{{team1-alt}}}|{{{team1}}}]] | [[{{{team1}}} Fed Cup team|{{{team1}}}]] }} | }}
 
!align=left|{{{score1}}}
 
!align=right|{{{score2}}}
 
!width=40% | {{#if: {{{team2|}}} | {{#if: {{{team2-alt|}}} | [[{{{team2-alt}}}|{{{team2}}}]] | [[{{{team2}}} Fed Cup team|{{{team2}}}]] }} | }}
 
!width=10% valign=top| {{#if: {{{team2|}}} | {{#if: {{{flag2-alt|}}} | [[Image:{{{flag2-alt}}}|40px|border]] | {{flagicon|{{{team2}}}|size=40px}} }} | }}
 
|-
 
|colspan=6 align=center| {{{venue}}}<br />{{{date}}}<br />{{{surface}}}
 
|-
 
|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 -->
 
<!-- head -->
|- align=left bgcolor=#EAE3D8
+
|- style="text-align:left;background-color:#EAE3D8;"
 
!width=3%|
 
!width=3%|
 
!
 
!
Line 23: Line 24:
 
|-
 
|-
  
<!-- rubber1 -->
+
|- style="background-color:#ededed"
|- bgcolor=#ededed
 
 
! 1
 
! 1
| {{#if: {{{team1|}}} | {{#if: {{{flag1-alt|}}} | [[Image:{{{flag1-alt}}}|20px|border]] | {{flagicon|{{{team1}}}|size=20px}} }} | }}<br />{{#if: {{{team2|}}} | {{#if: {{{flag2-alt|}}} | [[Image:{{{flag2-alt}}}|20px|border]] | {{flagicon|{{{team2}}}|size=20px}} }} | }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
|{{{R1}}}
+
|{{{R1}}}  
|-
 
  
<!-- rubber2 -->
 
 
|-
 
|-
 
! 2
 
! 2
| {{#if: {{{team1|}}} | {{#if: {{{flag1-alt|}}} | [[Image:{{{flag1-alt}}}|20px|border]] | {{flagicon|{{{team1}}}|size=20px}} }} | }}<br />{{#if: {{{team2|}}} | {{#if: {{{flag2-alt|}}} | [[Image:{{{flag2-alt}}}|20px|border]] | {{flagicon|{{{team2}}}|size=20px}} }} | }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
|{{{R2}}}
+
|{{{R2}}}  
|-
 
  
<!-- rubber3 -->
+
|- style="background-color:#ededed"
|- bgcolor=#ededed
 
 
! 3
 
! 3
| {{#if: {{{team1|}}} | {{#if: {{{flag1-alt|}}} | [[Image:{{{flag1-alt}}}|20px|border]] | {{flagicon|{{{team1}}}|size=20px}} }} | }}<br />{{#if: {{{team2|}}} | {{#if: {{{flag2-alt|}}} | [[Image:{{{flag2-alt}}}|20px|border]] | {{flagicon|{{{team2}}}|size=20px}} }} | }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
|{{{R3}}}
+
|{{{R3}}}  
|-
 
  
<!-- rubber4 -->
 
 
|-
 
|-
 
! 4
 
! 4
| {{#if: {{{team1|}}} | {{#if: {{{flag1-alt|}}} | [[Image:{{{flag1-alt}}}|20px|border]] | {{flagicon|{{{team1}}}|size=20px}} }} | }}<br />{{#if: {{{team2|}}} | {{#if: {{{flag2-alt|}}} | [[Image:{{{flag2-alt}}}|20px|border]] | {{flagicon|{{{team2}}}|size=20px}} }} | }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
|{{{R4}}}
+
|{{{R4}}}  
|-
 
  
<!-- rubber5 -->
+
|- style="background-color:#ededed"
|- bgcolor=#ededed
 
 
! 5
 
! 5
| {{#if: {{{team1|}}} | {{#if: {{{flag1-alt|}}} | [[Image:{{{flag1-alt}}}|20px|border]] | {{flagicon|{{{team1}}}|size=20px}} }} | }}<br />{{#if: {{{team2|}}} | {{#if: {{{flag2-alt|}}} | [[Image:{{{flag2-alt}}}|20px|border]] | {{flagicon|{{{team2}}}|size=20px}} }} | }}
+
| {{flagicon|{{{team1|}}}|2={{{team1-var|}}}}}<br />{{flagicon|{{{team2|}}}|2={{{team2-var|}}}}}
|{{{R5}}}
+
|{{{R5}}}  
|-
 
 
|}
 
|}
 
|}<noinclude>
 
|}<noinclude>
{{template doc}}
+
{{documentation}}
[[Category:Tennis infobox templates|{{PAGENAME}}]]
+
[[Category:Tennis tournaments infobox templates]]
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 21:59, 20 January 2020

File:Flag placeholder.svg
[[Fed Cup team|]]
{{{score1}}}
{{{venue}}}
{{{date}}}
{{{surface}}}
File:Flag placeholder.svg
[[Fed Cup team|]]
{{{score2}}}
1 2 3
1 File:Flag placeholder.svg
File:Flag placeholder.svg
{{{R1}}}
2 File:Flag placeholder.svg
File:Flag placeholder.svg
{{{R2}}}
3 File:Flag placeholder.svg
File:Flag placeholder.svg
{{{R3}}}
4 File:Flag placeholder.svg
File:Flag placeholder.svg
{{{R4}}}
5 File:Flag placeholder.svg
File:Flag placeholder.svg
{{{R5}}}
50px Template documentation[view] [edit] [history] [purge]

Code for this template:

{{FedCupbox
|align=<!-- left, right, center, none -->
|team1=
|team2=
|venue=
|date=
|surface=
|score1=
|score2=
|R1={{ TennisMatch3 |T1P1= | | |  |T2P1= | | | }}
|R2={{ TennisMatch3 |T1P1= | | |  |T2P1= | | | }}
|R3={{ TennisMatch3 |T1P1= | | |  |T2P1= | | | }}
|R4={{ TennisMatch3 |T1P1= | | |  |T2P1= | | | }}
|R5={{ TennisMatch3 |T1P1= |T1P2= | | | |T2P1= |T2P2= | | | }}
|flag1-alt=  //use if non-standard flag is needed.
|flag2-alt=
|team1-alt=  //use if non-standard name is needed (ie. USSR in title, link to Russia page).
|team2-alt=
|}}
<!-- info
use one of these TennisMatch arguments if it is required:
|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
|mtb= third set decided by match tiebreak
-->

See also