Difference between revisions of "Template:InfoboxTournament"

From comp.tf
Jump to navigation Jump to search
 
(88 intermediate revisions by the same user not shown)
Line 11: Line 11:
  
  
-->! class="comptf-infobox-title" style="padding-left:40px" colspan=2 | {{{title|}}}<div class="comptf-controls" style="vertical-align:top; float:right; margin:2px; width:40px">{{VDE|InfoboxPlayer|{{FULLPAGENAME}}}}</div>
+
-->! class="comptf-infobox-title" colspan=2 | {{{title|}}}
 
|-
 
|-
 
<!--
 
<!--
Line 34: Line 34:
  
  
EVENT INFORMATION
+
TOURNAMENT INFORMATION
  
  
  
  
-->! class="comptf-infobox-subtitle" colspan="2" | Event Information
+
-->! class="comptf-infobox-subtitle" colspan="2" | Tournament Information
 
|- class="comptf-infobox-info"
 
|- class="comptf-infobox-info"
<!---
+
<!--
  
SERIES
+
FULL NAME
  
-->{{#if:{{{series|}}}|
+
-->{{#if:{{{fullname|}}}|
{{!}} class="comptf-infobox-header" {{!}} '''Series'''
+
{{!}} class="comptf-infobox-header" {{!}} '''Full name'''
{{!}} class="comptf-infobox-body" {{!}} {{LeagueIconSmall|{{lc:{{{series}}}}}|x18px}} {{#ifexist:{{{series|}}}|[[{{{series|}}}]]|{{{series|}}}}}
+
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{{fullname|}}}</span>
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
 
|}}
 
|}}
Line 61: Line 61:
 
DATES
 
DATES
  
-->{{!}} class="comptf-infobox-header" {{!}} '''Date{{#if:{{{dates|}}}|s|}}'''
+
-->{{!}} class="comptf-infobox-header" {{!}} '''Date{{#ifeq:{{{startyear|}}}{{month|{{{startmonth|}}}}}{{#expr:{{{startdate|}}}}}|{{{endyear|}}}{{month|{{{endmonth|}}}}}{{#expr:{{{enddate|}}}}}||s}}'''
{{!}} class="comptf-infobox-body" {{!}} {{{#if:{{{dates|}}}|{{{dates||}}}|{{{date|}}}}}
+
{{!}} class="comptf-infobox-body" {{!}} {{#if:{{{date|}}}|{{{date|}}}|{{dates|{{{startyear|}}}|{{{startmonth|}}}|{{{startdate|}}}|{{{endyear|}}}|{{{endmonth|}}}|{{{enddate|}}}}}}}
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
 
<!--
 
<!--
Line 70: Line 70:
 
-->{{!}} class="comptf-infobox-header" {{!}} '''Type'''
 
-->{{!}} class="comptf-infobox-header" {{!}} '''Type'''
 
{{!}} class="comptf-infobox-body" {{!}} {{#switch:{{lc:{{{type|}}}}}
 
{{!}} class="comptf-infobox-body" {{!}} {{#switch:{{lc:{{{type|}}}}}
   | online = [[:Category:Online tournaments|Online]]
+
   | online = [[:Category:Online Tournaments|Online]]
 
   | offline
 
   | offline
   | lan = [[:Category:LAN tournaments|LAN]]
+
   | lan = [[:Category:LAN events|LAN]]
 
   |#default = {{{type|}}}
 
   |#default = {{{type|}}}
 +
}}
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
 
<!--
 
<!--
Line 85: Line 86:
 
                                         -->{{#if:{{{organizer4|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer4|}}}|[[{{{organizer4|}}}]]|{{{organizer4|}}}}}</span>|}}<!--
 
                                         -->{{#if:{{{organizer4|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer4|}}}|[[{{{organizer4|}}}]]|{{{organizer4|}}}}}</span>|}}<!--
 
                                         -->{{#if:{{{organizer5|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer5|}}}|[[{{{organizer5|}}}]]|{{{organizer5|}}}}}</span>|}}
 
                                         -->{{#if:{{{organizer5|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer5|}}}|[[{{{organizer5|}}}]]|{{{organizer5|}}}}}</span>|}}
{{!}}- {{#if:{{{sponsor|}}}{{{broadcaster|}}}|class="comptf-infobox-info"|}}
+
{{!}}- class="comptf-infobox-info"
 
<!--
 
<!--
  
Line 97: Line 98:
 
                                         -->{{#if:{{{sponsor4|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor4|}}}|[[{{{sponsor4|}}}]]|{{{sponsor4|}}}}}</span>|}}<!--
 
                                         -->{{#if:{{{sponsor4|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor4|}}}|[[{{{sponsor4|}}}]]|{{{sponsor4|}}}}}</span>|}}<!--
 
                                         -->{{#if:{{{sponsor5|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor5|}}}|[[{{{sponsor5|}}}]]|{{{sponsor5|}}}}}</span>|}}
 
                                         -->{{#if:{{{sponsor5|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor5|}}}|[[{{{sponsor5|}}}]]|{{{sponsor5|}}}}}</span>|}}
{{!}}- {{#if:{{{broadcaster|}}}|class="comptf-infobox-info"|}}
+
{{!}}- class="comptf-infobox-info"
 
|}}
 
|}}
 
<!--
 
<!--
Line 110: Line 111:
 
                                         -->{{#if:{{{broadcaster4|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster4|}}}|[[{{{broadcaster4|}}}]]|{{{broadcaster4|}}}}}</span>|}}<!--
 
                                         -->{{#if:{{{broadcaster4|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster4|}}}|[[{{{broadcaster4|}}}]]|{{{broadcaster4|}}}}}</span>|}}<!--
 
                                         -->{{#if:{{{broadcaster5|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster5|}}}|[[{{{broadcaster5|}}}]]|{{{broadcaster5|}}}}}</span>|}}
 
                                         -->{{#if:{{{broadcaster5|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster5|}}}|[[{{{broadcaster5|}}}]]|{{{broadcaster5|}}}}}</span>|}}
{{!}}-  
+
{{!}}- class="comptf-infobox-info"
 
|}}
 
|}}
<!--
 
 
 
 
 
TOURNAMENT INFORMATION
 
 
 
 
 
-->! class="comptf-infobox-subtitle" colspan="2" | Tournament Information
 
|- class="comptf-infobox-info"
 
 
<!--
 
<!--
  
Line 145: Line 134:
 
   | highlander = [[Highlander]]
 
   | highlander = [[Highlander]]
 
   |#default = {{#ifexist:{{{gamemode|}}}|[[{{{gamemode|}}}]]|{{{gamemode|}}}}}
 
   |#default = {{#ifexist:{{{gamemode|}}}|[[{{{gamemode|}}}]]|{{{gamemode|}}}}}
 +
}}
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
 
<!--
 
<!--
Line 157: Line 147:
 
TEAMS
 
TEAMS
  
-->{{!}} class="comptf-infobox-header" {{!}} '''Teams'''
+
-->{{!}} class="comptf-infoboxheader" {{!}} '''Teams'''
 
{{!}} class="comptf-infobox-body" {{!}} {{{teams|}}}
 
{{!}} class="comptf-infobox-body" {{!}} {{{teams|}}}
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
Line 168: Line 158:
 
   | none = None
 
   | none = None
 
   | equipment = Equipment
 
   | equipment = Equipment
   |#default = US${{Thousands_separator|{{#ifexpr:{{#len:{{{prizepool|}}}}}>4|{{#expr:{{{prizepool|}}} round -3}}|{{#ifeq:{{#len:{{{prizepool|}}}}}|1|{{{prizepool|}}}|{{#expr:{{{prizepool|}}} round {{#len:{{{prizepool|}}}}}*-1+2}}}}}}}}
+
   |#default = US${{Thousands_separator|{{{prizepool|}}}}}
  |None}}
+
}}|None}}
 
{{!}}- {{#if:{{{tier|}}}|class="comptf-infobox-info"}}
 
{{!}}- {{#if:{{{tier|}}}|class="comptf-infobox-info"}}
 
<!--
 
<!--
Line 179: Line 169:
 
{{!}} class="comptf-infobox-body" {{!}} {{#switch:{{lc:{{{tier|}}}}}
 
{{!}} class="comptf-infobox-body" {{!}} {{#switch:{{lc:{{{tier|}}}}}
 
   | 1
 
   | 1
   | tier 1 = Tier 1
+
   | tier 1
 
   | world
 
   | world
   | world championship = World Championship (Tier 1)
+
   | world championship = [[:Category:World Championships|World Championship]]
 
   | 2
 
   | 2
   | tier 2 = Tier 2
+
   | tier 2
 
   | continent
 
   | continent
 
   | continental
 
   | continental
   | continental championship = Continental Championship (Tier 2)
+
   | continental championship = [[:Category:Continental Championships|Continental Championship]]
 
   | 3
 
   | 3
 
   | tier 3 = Tier 3
 
   | tier 3 = Tier 3
 
   | misc
 
   | misc
 
   | miscellaneous = Miscellaneous
 
   | miscellaneous = Miscellaneous
 +
  | untiered
 +
  | none
 +
  |#default=Untiered
 +
}}
 
{{!}}-  
 
{{!}}-  
 
}}
 
}}
Line 198: Line 192:
  
  
FINAL POSITIONS
+
RESULTS
  
  
  
  
-->{{#if:{{{firstplace|}}}{{{secondplace|}}}{{{thirdplace|}}}{{{fourthplace|}}}{{{semifinalist1|}}}{{{semifinalist2|}}}|
+
-->{{#if:{{{1st|}}}{{{2nd|}}}{{{3rd|}}}{{{4th|}}}{{{sf1|}}}{{{sf2|}}}|
! class="comptf-infobox-subtitle" colspan="2" {{!}} Final Positions
+
! class="comptf-infobox-subtitle" colspan="2" {{!}} Results
{{!}}- class="comptf-infobox-info"
+
{{!}}-
|}}
+
{{!}} colspan="2" style="padding:0" {{!}}
 
<!--
 
<!--
  
 
FIRST PLACE
 
FIRST PLACE
  
-->{{#if: {{{firstplace|}}} |
+
-->{{#if: {{{1st|}}} |
{{!}} class="comptf-infobox-header" {{!}} '''First Place'''
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:right;padding:2px;box-sizing:border-box">{{medal|1}}</div>
{{!}} class="comptf-infobox-body" {{!}} <div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{firstplace|}}} Icon.png|[[File:{{{firstplace|}}} Icon.png|x18px|link={{#ifexist:{{{firstplace|}}}|{{{firstplace|}}}|}}]]}}</div> {{#ifexist:{{{firstplace|}}}|[[{{{firstplace|}}}]]|{{{firstplace|}}}}}
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:left;padding:2px;box-sizing:border-box">'''1st'''</div>
{{!}}- {{#if:{{{secondplace|}}}{{{thirdplace|}}}{{{fourthplace|}}}{{{semifinalist1|}}}{{{semifinalist2|}}}|class="comptf-infobox-info"|}}
+
<div style="float:right;width:226px;line-height:1.6;height:24px;padding:2px;box-sizing:border-box"><div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{1st|}}} Icon.png|<span style="line-height:100%;vertical-align:top">[[File:{{{1st|}}} Icon.png|x20px|link={{#ifexist:{{{1st|}}}|{{{1st|}}}|}}]]</span>}}</div> {{#ifexist:{{{1st|}}}|[[{{{1st|}}}]]|{{{1st|}}}}}</div>
 
|}}
 
|}}
 
<!--
 
<!--
Line 220: Line 214:
 
SECOND PLACE
 
SECOND PLACE
  
-->{{#if: {{{secondplace|}}} |
+
-->{{#if: {{{2nd|}}} |
{{!}} class="comptf-infobox-header" {{!}} '''Second Place'''
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:right;padding:2px;box-sizing:border-box">{{medal|2}}</div>
{{!}} class="comptf-infobox-body" {{!}} <div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{secondplace|}}} Icon.png|[[File:{{{secondplace|}}} Icon.png|x18px|link={{#ifexist:{{{secondplace|}}}|{{{secondplace|}}}|}}]]}}</div> {{#ifexist:{{{secondplace|}}}|[[{{{secondplace|}}}]]|{{{secondplace|}}}}}
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:left;padding:2px;box-sizing:border-box">'''2nd'''</div>
{{!}}- {{#if:{{{thirdplace|}}}{{{fourthplace|}}}{{{semifinalist1|}}}{{{semifinalist2|}}}|class="comptf-infobox-info"|}}
+
<div style="float:right;width:226px;line-height:1.6;height:24px;padding:2px;box-sizing:border-box"><div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{2nd|}}} Icon.png|<span style="line-height:100%;vertical-align:top">[[File:{{{2nd|}}} Icon.png|x20px|link={{#ifexist:{{{2nd|}}}|{{{2nd|}}}|}}]]</span>}}</div> {{#ifexist:{{{2nd|}}}|[[{{{2nd|}}}]]|{{{2nd|}}}}}</div>
 
|}}
 
|}}
 
<!--
 
<!--
Line 229: Line 223:
 
THIRD PLACE
 
THIRD PLACE
  
-->{{#if: {{{thirdplace|}}} |
+
-->{{#if: {{{3rd|}}} |
{{!}} class="comptf-infobox-header" {{!}} '''Third Place'''
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:right;padding:2px;box-sizing:border-box">{{medal|3}}</div>
{{!}} class="comptf-infobox-body" {{!}} <div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{thirdplace|}}} Icon.png|[[File:{{{thirdplace|}}} Icon.png|x18px|link={{#ifexist:{{{thirdplace|}}}|{{{thirdplace|}}}|}}]]}}</div> {{#ifexist:{{{thirdplace|}}}|[[{{{thirdplace|}}}]]|{{{thirdplace|}}}}}
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:left;padding:2px;box-sizing:border-box">'''3rd'''</div>
{{!}}- {{#if:{{{fourthplace|}}}|class="comptf-infobox-info"|}}
+
<div style="float:right;width:226px;line-height:1.6;height:24px;padding:2px;box-sizing:border-box"><div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{3rd|}}} Icon.png|<span style="line-height:100%;vertical-align:top">[[File:{{{3rd|}}} Icon.png|x20px|link={{#ifexist:{{{3rd|}}}|{{{3rd|}}}|}}]]</span>}}</div> {{#ifexist:{{{3rd|}}}|[[{{{3rd|}}}]]|{{{3rd|}}}}}</div>
 
|}}
 
|}}
 
<!--
 
<!--
Line 238: Line 232:
 
FOURTH PLACE
 
FOURTH PLACE
  
-->{{#if: {{{fourthplace|}}} |
+
-->{{#if: {{{4th|}}} |
{{!}} class="comptf-infobox-header" {{!}} '''First Place'''
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:right;padding:2px;box-sizing:border-box"></div>
{{!}} class="comptf-infobox-body" {{!}} <div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{fourthplace|}}} Icon.png|[[File:{{{fourthplace|}}} Icon.png|x18px|link={{#ifexist:{{{fourthplace|}}}|{{{fourthplace|}}}|}}]]}}</div> {{#ifexist:{{{fourthplace|}}}|[[{{{fourthplace|}}}]]|{{{fourthplace|}}}}}
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:left;padding:2px;box-sizing:border-box">'''4th'''</div>
{{!}}-
+
<div style="float:right;width:226px;line-height:1.6;height:24px;padding:2px;box-sizing:border-box"><div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{4th|}}} Icon.png|<span style="line-height:100%;vertical-align:top">[[File:{{{4th|}}} Icon.png|x20px|link={{#ifexist:{{{4th|}}}|{{{4th|}}}|}}]]</span>}}</div> {{#ifexist:{{{4th|}}}|[[{{{4th|}}}]]|{{{4th|}}}}}</div>
 
|}}
 
|}}
 
<!--
 
<!--
Line 247: Line 241:
 
SEMI-FINALISTS
 
SEMI-FINALISTS
  
-->{{#if: {{{semifinalist1|}}}{{{semifinalist2|}}} |
+
-->{{#if: {{{sf1|}}}{{{sf2|}}} |
{{!}} class="comptf-infobox-header" {{!}} '''Semi-finalists'''
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:right;padding:2px;box-sizing:border-box"></div>
{{!}} class="comptf-infobox-body" {{!}} {{#if:{{{semifinalist1|}}}|<!--
+
<div style="float:left;width:34px;line-height:1.6;height:24px;text-align:left;padding:2px;box-sizing:border-box">'''3rd-4th'''</div>
     --><div style="width:44px;float:left;height:20px;"><!--
+
<div style="float:right;width:226px;line-height:1.6;height:24px;padding:2px;box-sizing:border-box">{{#if:{{{sf1|}}}|<!--
    -->{{#ifexist:File:{{{semifinalist1|}}} Icon.png|[[File:{{{semifinalist1|}}} Icon.png|x18px|link={{#ifexist:{{{semifinalist1|}}}|{{{semifinalist1|}}}|}}]]}}<!--
+
     --><div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{sf1|}}} Icon.png|<span style="line-height:100%;vertical-align:top">[[File:{{{sf1|}}} Icon.png|x20px|link={{#ifexist:{{{sf1|}}}|{{{sf1|}}}|}}]]</span>}}</div> {{#ifexist:{{{sf1|}}}|[[{{{sf1|}}}]]|{{{sf1|}}}}}<!--
    --></div> <!--
+
     -->{{#if:{{{sf2|}}}|<br>|</div>}}|}}{{#if:{{{sf2|}}}|<!--
    -->{{#ifexist:{{{semifinalist1|}}}|[[{{{semifinalist1|}}}]]|{{{semifinalist1|}}}}}<!--
+
     --><div style="width:44px;float:left;height:20px;">{{#ifexist:File:{{{sf2|}}} Icon.png|<span style="line-height:100%;vertical-align:top">[[File:{{{sf2|}}} Icon.png|x20px|link={{#ifexist:{{{sf2|}}}|{{{sf2|}}}|}}]]</span>}}</div> {{#ifexist:{{{sf2|}}}|[[{{{sf2|}}}]]|{{{sf2|}}}}}</div>|}}
     -->{{#if:{{{semifinalist2|}}}|<br>|}}|}}{{#if:{{{semi-finalist2|}}}|<!--
+
|}}
     --><div style="width:44px;float:left;height:20px;"><!--
+
{{!}}-
    -->{{#ifexist:File:{{{semifinalist2|}}} Icon.png|[[File:{{{semifinalist2|}}} Icon.png|x18px|link={{#ifexist:{{{semifinalist2|}}}|{{{semifinalist2|}}}|}}]]}}<!--
+
|}}
    --></div> <!--
 
    -->{{#ifexist:{{{semifinalist2|}}}|[[{{{semifinalist2|}}}]]|{{{semifinalist2|}}}}}|}}
 
{{!}}-  
 
|}}|}}
 
 
<!--
 
<!--
  
Line 281: Line 271:
 
--> {{#if:{{{brackets2|}}}|[[Image:InfoboxIcon Tables.png|x24px|{{#if:{{{brackets2comment|}}}|{{{brackets2comment}}}|Brackets}}|link={{{brackets2}}}]]}}<!--
 
--> {{#if:{{{brackets2|}}}|[[Image:InfoboxIcon Tables.png|x24px|{{#if:{{{brackets2comment|}}}|{{{brackets2comment}}}|Brackets}}|link={{{brackets2}}}]]}}<!--
 
-->{{#if:{{{misc_links|}}}|{{{misc_links|}}}|}}
 
-->{{#if:{{{misc_links|}}}|{{{misc_links|}}}|}}
 +
{{!}}-
 
|}}
 
|}}
 
<!--
 
<!--
Line 293: Line 284:
  
 
-->{{#if: {{{chronologytitle|}}}{{{next|}}}{{{nextlabel|}}}{{{prev|}}}{{{prevlabel|}}}|
 
-->{{#if: {{{chronologytitle|}}}{{{next|}}}{{{nextlabel|}}}{{{prev|}}}{{{prevlabel|}}}|
! class="comptf-infobox-subtitle" colspan="2" {{!}} {{LeagueIconSmall|{{lc:{{{series}}}}}|x18px}} {{{chronologytitle|}}}
+
! class="comptf-infobox-subtitle" colspan="2" {{!}} {{LeagueIconSmall|{{{chronologyicon|}}}|size=20px|style=padding-top:4px}} {{{chronologytitle|Chronology}}}
 
{{!}}-
 
{{!}}-
{{!}} class="comptf-infobox-icons" colspan="2" style="text-align:center; height:36px" {{!}}<!--
+
{{!}} colspan="2" style="padding:2px 0px;" {{!}}<!--
 
--><span style="float:left">[[Image:LeftArrow.png|link={{{prev|}}}]] {{#if:{{{prevlabel|}}}|[[{{{prev|}}}|{{{prevlabel|}}}]]|[[{{{prev|}}}]]}}</span><!--
 
--><span style="float:left">[[Image:LeftArrow.png|link={{{prev|}}}]] {{#if:{{{prevlabel|}}}|[[{{{prev|}}}|{{{prevlabel|}}}]]|[[{{{prev|}}}]]}}</span><!--
--><span style="float:right">[[Image:LeftArrow.png|link={{{prev|}}}]] {{#if:{{{prevlabel|}}}|[[{{{prev|}}}|{{{prevlabel|}}}]]|[[{{{prev|}}}]]}}</span><!--
+
--><span style="float:right">{{#if:{{{nextlabel|}}}|[[{{{next|}}}|{{{nextlabel|}}}]]|[[{{{next|}}}]]}} [[Image:RightArrow.png|link={{{next|}}}]]</span>
 
|}}
 
|}}
|}</includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>
+
|}
 +
</includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>

Latest revision as of 07:21, 28 April 2021