Difference between revisions of "Template:Infobox Mosconi Cup"

From blackwiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
| label4 = Captains
 
| label4 = Captains
 
| data4 ={{#if:{{{homecaptain|}}}{{{awaycaptain|}}}|{{{homecaptain}}} ({{{home}}})<br/>{{{awaycaptain}}} ({{{away}}})}}
 
| data4 ={{#if:{{{homecaptain|}}}{{{awaycaptain|}}}|{{{homecaptain}}} ({{{home}}})<br/>{{{awaycaptain}}} ({{{away}}})}}
| label5 = [[Most valuable player|MVP]]
+
| label5 = {{#if:{{{MVP|}}}|[[Most valuable player|MVP]]}}
| data5 = {{{MVP}}}
+
| data5 = {{#if:{{{MVP|}}}|{{{MVP}}}}}
  
 
| data6 = {{#switch:{{{home}}}|EU=[[Image:Flag of Europe.svg|45px|Flag of Europe]]|US=[[Image:Flag of the United States.svg|57px|Flag of the United States]]}}<span style="font-size:125%; font-weight:bold">&nbsp;&nbsp;{{{homescore|0}}}&nbsp;&nbsp;–&nbsp;{{{awayscore|0}}}&nbsp;&nbsp;</span>{{#switch:{{{away}}}|EU=[[Image:Flag of Europe.svg|45px|Flag of Europe]]|US=[[Image:Flag of the United States.svg|57px|Flag of the United States]]}}{{#if:{{{result|}}}|<br>''{{{result}}} the [[Mosconi Cup]]''}}
 
| data6 = {{#switch:{{{home}}}|EU=[[Image:Flag of Europe.svg|45px|Flag of Europe]]|US=[[Image:Flag of the United States.svg|57px|Flag of the United States]]}}<span style="font-size:125%; font-weight:bold">&nbsp;&nbsp;{{{homescore|0}}}&nbsp;&nbsp;–&nbsp;{{{awayscore|0}}}&nbsp;&nbsp;</span>{{#switch:{{{away}}}|EU=[[Image:Flag of Europe.svg|45px|Flag of Europe]]|US=[[Image:Flag of the United States.svg|57px|Flag of the United States]]}}{{#if:{{{result|}}}|<br>''{{{result}}} the [[Mosconi Cup]]''}}
 
| rowstyle6 = border-top: 1px solid #aaa; padding-top: 3px;
 
| rowstyle6 = border-top: 1px solid #aaa; padding-top: 3px;
  
| below ={{align|left|{{#switch:{{{year|1994}}}|1994=|#default=&larr; [[{{#expr:{{{year}}}-1}} Mosconi Cup|{{#expr:{{{year}}}-1}}]]}}}}{{align|right|{{#switch:{{{year|2017}}}|2017=|#default=[[{{#expr:{{{year}}}+1}} Mosconi Cup|{{#expr:{{{year}}}+1}}]] &rarr;}}}}
+
| below ={{align|left|{{#switch:{{{year|1994}}}|1994=|#default=&larr; [[{{#expr:{{{year}}}-1}} Mosconi Cup|{{#expr:{{{year}}}-1}}]]}}}}{{align|right|{{#switch:{{{year|2019}}}|2019=|#default=[[{{#expr:{{{year}}}+1}} Mosconi Cup|{{#expr:{{{year}}}+1}}]] &rarr;}}}}
 
| belowclass = hlist noprint nowrap
 
| belowclass = hlist noprint nowrap
 
| belowstyle = border-top: 1px solid #aaa; padding-top: 3px;
 
| belowstyle = border-top: 1px solid #aaa; padding-top: 3px;

Latest revision as of 00:20, 26 November 2019

Template documentation[view] [edit] [history] [purge]

Template:Parameter names example

Usage

{{Infobox Mosconi Cup
| year =
| logo =
| logowidth =
| dates =
| venue =
| location =
| home = US or EU
| away = US or EU
| homecaptain =
| awaycaptain =
| MVP = 
| homescore =
| awayscore =
| result = "United States wins", "Europe retains", etc.
}}