Difference between revisions of "Template:InfoboxTournament"

From comp.tf
Jump to navigation Jump to search
(Created page with "<includeonly> {| class="comptf-infobox" cellpadding="2" <!-- TITLE -->! class="comptf-infobox-title" style="padding-left:40px" colspan=2 | {{{title|}}}<div class="comp...")
 
Line 47: Line 47:
 
-->{{#if:{{{series|}}}|
 
-->{{#if:{{{series|}}}|
 
{{!}} class="comptf-infobox-header" {{!}} '''Series'''
 
{{!}} class="comptf-infobox-header" {{!}} '''Series'''
{{!}} class="comptf-infobox-body" {{!}} {{#ifexist:Template:LeagueIconSmall|{{lc:{{{series}}}}}|{{LeagueIconSmall/{{lc:{{{series}}}}}}}|}} {{#ifexist:{{{series}}}|[[{{{series}}}]]|{{{series}}}}
+
{{!}} class="comptf-infobox-body" {{!}} {{LeagueIconSmall|{{lc:{{{series}}}}}|x18px}} {{#ifexist:{{{series|}}}|[[{{{series|}}}]]|{{{series|}}}}}
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
 
|}}
 
|}}
Line 54: Line 54:
 
LOCATION
 
LOCATION
  
-->{{#if:{{{location|}}}|
+
-->{{!}} class="comptf-infobox-header" {{!}} '''Location'''
{{!}} class="comptf-infobox-header" {{!}} '''Location'''
 
 
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{{location|}}}</span>
 
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{{location|}}}</span>
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
|}}
 
 
<!--
 
<!--
  
 
DATES
 
DATES
  
-->{{#if:{{{date|}}}{{{dates|}}}|
+
-->{{!}} class="comptf-infobox-header" {{!}} '''Date{{#if:{{{dates|}}}|s|}}'''
{{!}} class="comptf-infobox-header" {{!}} '''Date{{#if:{{{dates|}}}|s|}}'''
 
 
{{!}} class="comptf-infobox-body" {{!}} {{{#if:{{{dates|}}}|{{{dates||}}}|{{{date|}}}}}
 
{{!}} class="comptf-infobox-body" {{!}} {{{#if:{{{dates|}}}|{{{dates||}}}|{{{date|}}}}}
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
|}}
+
<!--
 +
 
 +
TYPE
 +
 
 +
-->{{!}} class="comptf-infobox-header" {{!}} '''Type'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{#switch:{{lc:{{{type|}}}}}
 +
  | online = [[:Category:Online tournaments|Online]]
 +
  | offline
 +
  | lan = [[:Category:LAN tournaments|LAN]]
 +
  |#default = {{{type|}}}
 +
{{!}}- class="comptf-infobox-info"
 
<!--
 
<!--
  
 
ORGANIZER
 
ORGANIZER
  
-->{{#if:{{{organizer|}}}|
+
-->{{!}} class="comptf-infobox-header" {{!}} '''Organizer{{#if:{{{organizer2|}}}|s|}}'''
{{!}} class="comptf-infobox-header" {{!}} '''Organizer{{#if:{{{organizer2|}}}|s|}}'''
+
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{#ifexist:{{{organizer|}}}|[[{{{organizer|}}}]]|{{{organizer|}}}}}</span><!--
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{{organizer|}}}</span><!--
+
                                         -->{{#if:{{{organizer2|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer2|}}}|[[{{{organizer2|}}}]]|{{{organizer2|}}}}}</span>|}}<!--
                                         -->{{#if:{{{organizer2|}}}|<br><span class="plainlinks">{{{organizer2|}}}</span>|}}<!--
+
                                         -->{{#if:{{{organizer3|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer3|}}}|[[{{{organizer3|}}}]]|{{{organizer3|}}}}}</span>|}}<!--
                                         -->{{#if:{{{organizer3|}}}|<br><span class="plainlinks">{{{organizer3|}}}</span>|}}<!--
+
                                         -->{{#if:{{{organizer4|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer4|}}}|[[{{{organizer4|}}}]]|{{{organizer4|}}}}}</span>|}}<!--
                                         -->{{#if:{{{organizer4|}}}|<br><span class="plainlinks">{{{organizer4|}}}</span>|}}<!--
+
                                         -->{{#if:{{{organizer5|}}}|<br><span class="plainlinks">{{#ifexist:{{{organizer5|}}}|[[{{{organizer5|}}}]]|{{{organizer5|}}}}}</span>|}}
                                         -->{{#if:{{{organizer5|}}}|<br><span class="plainlinks">{{{organizer5|}}}</span>|}}
 
 
{{!}}- {{#if:{{{sponsor|}}}{{{broadcaster|}}}|class="comptf-infobox-info"|}}
 
{{!}}- {{#if:{{{sponsor|}}}{{{broadcaster|}}}|class="comptf-infobox-info"|}}
|}}
 
 
<!--
 
<!--
  
Line 87: Line 92:
 
-->{{#if:{{{sponsor|}}}|
 
-->{{#if:{{{sponsor|}}}|
 
{{!}} class="comptf-infobox-header" {{!}} '''Sponsor{{#if:{{{sponsor2|}}}|s|}}'''
 
{{!}} class="comptf-infobox-header" {{!}} '''Sponsor{{#if:{{{sponsor2|}}}|s|}}'''
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{{sponsor|}}}</span><!--
+
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{#ifexist:{{{sponsor|}}}|[[{{{sponsor|}}}]]|{{{sponsor|}}}}}</span><!--
                                         -->{{#if:{{{sponsor2|}}}|<br><span class="plainlinks">{{{sponsor2|}}}</span>|}}<!--
+
                                         -->{{#if:{{{sponsor2|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor2|}}}|[[{{{sponsor2|}}}]]|{{{sponsor2|}}}}}</span>|}}<!--
                                         -->{{#if:{{{sponsor3|}}}|<br><span class="plainlinks">{{{sponsor3|}}}</span>|}}<!--
+
                                         -->{{#if:{{{sponsor3|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor3|}}}|[[{{{sponsor3|}}}]]|{{{sponsor3|}}}}}</span>|}}<!--
                                         -->{{#if:{{{sponsor4|}}}|<br><span class="plainlinks">{{{sponsor4|}}}</span>|}}<!--
+
                                         -->{{#if:{{{sponsor4|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor4|}}}|[[{{{sponsor4|}}}]]|{{{sponsor4|}}}}}</span>|}}<!--
                                         -->{{#if:{{{sponsor5|}}}|<br><span class="plainlinks">{{{sponsor5|}}}</span>|}}
+
                                         -->{{#if:{{{sponsor5|}}}|<br><span class="plainlinks">{{#ifexist:{{{sponsor5|}}}|[[{{{sponsor5|}}}]]|{{{sponsor5|}}}}}</span>|}}
 
{{!}}- {{#if:{{{broadcaster|}}}|class="comptf-infobox-info"|}}
 
{{!}}- {{#if:{{{broadcaster|}}}|class="comptf-infobox-info"|}}
 
|}}
 
|}}
Line 100: Line 105:
 
-->{{#if:{{{broadcaster|}}}|
 
-->{{#if:{{{broadcaster|}}}|
 
{{!}} class="comptf-infobox-header" {{!}} '''Broadcaster{{#if:{{{broadcaster2|}}}|s|}}'''
 
{{!}} class="comptf-infobox-header" {{!}} '''Broadcaster{{#if:{{{broadcaster2|}}}|s|}}'''
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{{broadcaster|}}}</span><!--
+
{{!}} class="comptf-infobox-body" {{!}} <span class="plainlinks">{{#ifexist:{{{broadcaster|}}}|[[{{{broadcaster|}}}]]|{{{broadcaster|}}}}}</span><!--
                                         -->{{#if:{{{broadcaster2|}}}|<br><span class="plainlinks">{{{broadcaster2|}}}</span>|}}<!--
+
                                         -->{{#if:{{{broadcaster2|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster2|}}}|[[{{{broadcaster2|}}}]]|{{{broadcaster2|}}}}}</span>|}}<!--
                                         -->{{#if:{{{broadcaster3|}}}|<br><span class="plainlinks">{{{broadcaster3|}}}</span>|}}<!--
+
                                         -->{{#if:{{{broadcaster3|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster3|}}}|[[{{{broadcaster3|}}}]]|{{{broadcaster3|}}}}}</span>|}}<!--
                                         -->{{#if:{{{broadcaster4|}}}|<br><span class="plainlinks">{{{broadcaster4|}}}</span>|}}<!--
+
                                         -->{{#if:{{{broadcaster4|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster4|}}}|[[{{{broadcaster4|}}}]]|{{{broadcaster4|}}}}}</span>|}}<!--
                                         -->{{#if:{{{broadcaster5|}}}|<br><span class="plainlinks">{{{broadcaster5|}}}</span>|}}
+
                                         -->{{#if:{{{broadcaster5|}}}|<br><span class="plainlinks">{{#ifexist:{{{broadcaster5|}}}|[[{{{broadcaster5|}}}]]|{{{broadcaster5|}}}}}</span>|}}
 
{{!}}-  
 
{{!}}-  
 
|}}
 
|}}
 
<!--
 
<!--
  
STATUS
 
  
-->| class="comptf-infobox-header" | '''Status'''
 
| class="comptf-infobox-body" |<!--
 
-->{{#if:{{{status|}}}|{{{status|}}}|<!--
 
-->{{#if:{{{active_startyear2|}}}|{{#if:{{{active_endyear2|}}}|[[:Category:Inactive Players|Inactive]]<br>({{#ifeq:{{{active_startyear|}}}|{{{active_endyear|}}}|{{{active_startyear|}}}|{{{active_startyear|}}} - {{{active_endyear|}}}}}, {{#ifeq:{{{active_startyear2|}}}|{{{active_endyear2|}}}|{{{active_startyear2|}}}|{{{active_startyear2|}}} - {{{active_endyear2|}}}}})|[[:Category:Active Players|Active]]<br>({{{active_startyear|}}} - {{{active_endyear|}}}, {{{active_startyear2|}}} - )}}<!--
 
  
-->|{{#if:{{{active_endyear|}}}|[[:Category:Inactive Players|Inactive]] ({{#ifeq:{{{active_startyear|}}}|{{{active_endyear|}}}|{{{active_startyear|}}}|{{{active_startyear|}}} - {{{active_endyear|}}}}})|[[:Category:Active Players|Active]] (since {{{active_startyear|}}})}}}}}}
+
 
 +
TOURNAMENT INFORMATION
 +
 
 +
 
 +
 
 +
 
 +
-->! class="comptf-infobox-subtitle" colspan="2" | Tournament Information
 
|- class="comptf-infobox-info"
 
|- class="comptf-infobox-info"
 +
<!--
 +
 +
GAME MODE
 +
 +
-->{{!}} class="comptf-infobox-header" {{!}} '''Game Mode'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{#switch:{{lc:{{{gamemode|}}}}}
 +
  | bball = [[BBall]]
 +
  | ultiduo = [[Ultiduo]]
 +
  | 4s
 +
  | fours
 +
  | 4v4 = [[4v4]]
 +
  | 6s
 +
  | sixes
 +
  | 6v6 = [[6v6]]
 +
  | 7s
 +
  | prolander
 +
  | 7v7 = [[7v7]]
 +
  | hl
 +
  | 9v9
 +
  | highlander = [[Highlander]]
 +
  |#default = {{#ifexist:{{{gamemode|}}}|[[{{{gamemode|}}}]]|{{{gamemode|}}}}}
 +
{{!}}- class="comptf-infobox-info"
 
<!--
 
<!--
  
 
FORMAT
 
FORMAT
  
-->{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=|#default=
+
-->{{!}} class="comptf-infobox-header" {{!}} '''Format'''
{{!}} class="comptf-infobox-header" {{!}} '''Format'''
+
{{!}} class="comptf-infobox-body" {{!}} {{{format|}}}
{{!}} class="comptf-infobox-body" {{!}} [[{{{format|}}}]]
 
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
}}
 
|}}
 
 
<!--
 
<!--
  
TEAM
+
TOTAL TEAMS
  
-->{{#if: {{{team|}}} |
+
-->{{!}} class="comptf-infobox-header" {{!}} '''Total Teams'''
{{!}} class="comptf-infobox-header" {{!}} '''Team'''
+
{{!}} class="comptf-infobox-body" {{!}} {{{totalteams|}}}
{{!}} class="comptf-infobox-body" {{!}} [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]
 
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
 +
<!--
 +
 +
PRIZE POOL
 +
 +
-->{{!}} class="comptf-infobox-header" {{!}} '''Prize Pool'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{#if:{{{prizepool|}}}|{{#switch:{{lc:{{{prizepool|}}}}}
 +
  | none = None
 +
  | 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}}}}}}}}
 +
  |None}}
 +
{{!}}- {{#if:{{{tier|}}}|class="comptf-infobox-info"}}
 +
<!--
 +
 +
TOURNAMENT TIER
 +
 +
-->{{#if: {{{tier|}}} |
 +
{{!}} class="comptf-infobox-header" {{!}} '''Tournament Tier'''
 +
{{!}} class="comptf-infobox-body" {{!}} {{#switch:{{lc:{{{tier|}}}}}
 +
  | 1
 +
  | tier 1 = Tier 1
 +
  | world
 +
  | world championship = World Championship (Tier 1)
 +
  | 2
 +
  | tier 2 = Tier 2
 +
  | continent
 +
  | continental
 +
  | continental championship = Continental Championship (Tier 2)
 +
  | 3
 +
  | tier 3 = Tier 3
 +
  | misc
 +
  | miscellaneous = Miscellaneous
 +
{{!}}-
 
}}
 
}}
 +
<!--
 +
 +
 +
 +
 +
FINAL POSITIONS
 +
 +
 +
 +
 +
-->! class="comptf-infobox-subtitle" colspan="2" | Tournament Information
 +
|- class="comptf-infobox-info"
 
<!--
 
<!--
  

Revision as of 18:58, 14 April 2020