Difference between revisions of "Template:Infobox soccer draft"

From blackwiki
Jump to navigation Jump to search
imported>Bubbagump24
(fixed next year bug)
imported>Frietjes
(use infobox)
Line 1: Line 1:
{| class="infobox vevent" width="300" cellspacing="0" style="font-size: 90%;"
+
{{infobox
|-
+
| bodyclass = vevent
! class="summary" colspan="2" style="font-size: medium;" | <center>{{{year|{{CURRENTYEAR}}}}} MLS SuperDraft</center>
+
 
|-
+
| aboveclass = summary
{{#if:{{{image|}}}|  
+
| above = {{{year|{{CURRENTYEAR}}}}} MLS SuperDraft
{{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|180px]]
+
 
}}
+
| image =  {{#ifexist:Media:{{{image}}}| [[File:{{{image}}}|frameless|upright=0.82]] }}
|-
+
 
| colspan=2 align=center bgcolor=#efefef | '''General Information'''
+
| headerstyle = background:#efefef
|-
+
 
| '''Date(s)'''
+
| header1 = {{#if:{{{date|}}}{{{time|}}}{{{location|}}}{{{network|}}}|General Information}}
| {{{date|}}}
+
 
|-
+
| label2 = Date(s)
| '''Time'''
+
| data2 = {{{date|}}}
| {{{time|}}}
+
 
|-
+
| label3 = Time
| '''Location'''
+
| data3 = {{{time|}}}
| {{{location|}}}
+
 
|-
+
| label4 = Location
| '''Network(s) (US)'''
+
| data4 = {{{location|}}}
| {{{network|}}}
+
 
|-
+
| label5 = Network(s) (US)
| colspan=2 align=center bgcolor=#efefef | '''Picks'''
+
| data5 = {{{network|}}}
|-
+
 
| '''First selection'''
+
| header6 = {{#if: {{{first|}}}{{{fewest|}}}{{{most|}}}{{{overall|}}}|Picks}}
| {{{first|}}}
+
 
|-
+
| label7 = First selection
| '''Fewest selections'''
+
| data7 =  {{{first|}}}
| {{{fewest|}}}
+
 
|-
+
| label8 = Fewest selections
| '''Most selections'''
+
| data8 = {{{fewest|}}}
| {{{most|}}}
+
 
|-
+
| label9 = Most selections
| '''Overall selections'''
+
| data9 = {{{most|}}}
| {{{overall|}}}
+
 
|-
+
| label10 =Overall selections
<!-- end #ifexpr: -->
+
| data10 = {{{overall|}}}
|- style="background:#eee;"
+
 
| align="center" colspan="2" | '''[[MLS SuperDraft]]'''
+
| header11 = [[MLS SuperDraft]]
{| style="font-size:90%; width:80%; border:1px; border-collapse:collapse; background:#eee; line-height:90%;"
+
| data12 = <table style="width:100%">
|-
+
<tr style="vertical-align:middle">
| align="center" width=45% | {{#ifexpr:{{{year|{{CURRENTYEAR}}}}} > 2000 |'''[[{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}} MLS SuperDraft| &nbsp;&lt; {{#expr:{{{year|{{CURRENTYEAR}}}}}-1}}]]'''|&nbsp;<!-- do nothing, so avoid redlink display --->}}
+
<td style="width:50%; text-align:left;">{{#ifexpr:{{{year|{{CURRENTYEAR}}}}} > 2000  
| align="center" width=45% | {{#ifexist: {{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} {{#ifexpr:{{{year|{{CURRENTYEAR}}}}} > 2001|MLS}} SuperDraft | '''[[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} {{#ifexpr:{{{year|{{CURRENTYEAR}}}}} > 2001|MLS}} SuperDraft|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} &gt;&nbsp;]]''' |&nbsp;<!-- do nothing, so avoid redlink display ---> }}
+
  |'''&larr;&nbsp;[[{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}} MLS SuperDraft|{{#expr:{{{year|{{CURRENTYEAR}}}}}-1}}]]'''
|}
+
  |<!-- do nothing, so avoid redlink display --->
|}<noinclude>{{documentation}}</noinclude>
+
  }}</td>
 +
<td style="width:50%; text-align:right;">{{#ifexist: {{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} {{#ifexpr:{{{year|{{CURRENTYEAR}}}}} > 2001|MLS}} SuperDraft  
 +
  |'''[[{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}} {{#ifexpr:{{{year|{{CURRENTYEAR}}}}} > 2001|MLS}} SuperDraft|{{#expr:{{{year|{{CURRENTYEAR}}}}}+1}}]]&nbsp;&rarr;'''
 +
  |<!-- do nothing, so avoid redlink display --->  
 +
  }}
 +
</tr></table>
 +
}}<noinclude>{{documentation}}</noinclude>

Revision as of 19:00, 8 March 2013

2025 MLS SuperDraft
MLS SuperDraft
← 2024

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[create]