Difference between revisions of "Template:Infobox Mosconi Cup"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(converting to use Template:infobox)
imported>Armbrust
(fix order of template and add back missing template parameter)
Line 4: Line 4:
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logowidth|130px}}}|alt={{{alt|}}}}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logowidth|130px}}}|alt={{{alt|}}}}}
  
| data1 = {{#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]]''}}
+
| label1 = Dates
 +
| data1 = {{{dates|}}}
 +
| label2 = Venue
 +
| data2 = {{{venue|}}}
 +
| label3 = Location
 +
| data3 = {{{location|}}}
 +
| label4 = Captains
 +
| data4 ={{#if:{{{homecaptain|}}}{{{awaycaptain|}}}|{{{homecaptain}}} ({{{home}}})<br/>{{{awaycaptain}}} ({{{away}}})}}
 +
| label5 = [[Most valuable player|MVP]]
 +
| data5 = {{{MVP}}}
  
| label2 = Dates
+
| 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]]''}}
| data2 = {{{dates|}}}
+
| rowstyle6 = border-top: 1px solid #aaa; padding-top: 3px;
| label3 = Venue
 
| data3 = {{{venue|}}}
 
| label4 = Location
 
| data4 = {{{location|}}}
 
| label5 = Captains
 
| data5 ={{#if:{{{homecaptain|}}}{{{awaycaptain|}}}|{{{homecaptain}}} ({{{home}}})<br/>{{{awaycaptain}}} ({{{away}}})}}
 
  
 
| below ={{align|left|{{#switch:{{{year|1994}}}|1994=|#default=&larr; [[{{#expr:{{{year}}}-1}} Mosconi Cup|{{#expr:{{{year}}}-1}}]]}}}}{{align|right|{{#switch:{{{year|2016}}}|2016=|#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|2016}}}|2016=|#default=[[{{#expr:{{{year}}}+1}} Mosconi Cup|{{#expr:{{{year}}}+1}}]] &rarr;}}}}

Revision as of 19:57, 29 January 2017

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.
}}