Difference between revisions of "Template:Infobox lan"

From QWiki
m
m
Line 37: Line 37:
 
<div class="infobox-cell-2 infobox-description">Organizer:</div>
 
<div class="infobox-cell-2 infobox-description">Organizer:</div>
 
<div class="infobox-cell-2"><!--
 
<div class="infobox-cell-2"><!--
-->{{#ifexist:{{{organizer|}}}|[[{{{organizer}}}]]|{{{organizer}}}}}<!--
+
-->{{#if:{{{organizer|}}}|{{{organizer}}}}}<!--
-->{{#if:{{{organizer2|}}}|<br />{{#ifexist:{{{organizer2|}}}|[[{{{organizer2}}}]]|{{{organizer2}}}}}}}<!--
+
-->{{#if:{{{organizer2|}}}|<br />{{{organizer2}}}}}<!--
-->{{#if:{{{organizer3|}}}|<br />{{#ifexist:{{{organizer3|}}}|[[{{{organizer3}}}]]|{{{organizer3}}}}}}}<!--
+
-->{{#if:{{{organizer3|}}}|<br />{{{organizer3}}}}}<!--
-->{{#if:{{{organizer4|}}}|<br />{{#ifexist:{{{organizer4|}}}|[[{{{organizer4}}}]]|{{{organizer4}}}}}}}<!--
+
-->{{#if:{{{organizer4|}}}|<br />{{{organizer4}}}}}<!--
 
--></div>
 
--></div>
 +
</div>
 +
}}<!--
 +
 +
Founder
 +
 +
-->{{#if:{{{founder|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Founder:</div>
 +
<div class="infobox-cell-2">{{{founder}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 51: Line 60:
 
<div class="infobox-cell-2 infobox-description">Sponsor:</div>
 
<div class="infobox-cell-2 infobox-description">Sponsor:</div>
 
<div class="infobox-cell-2">{{{sponsor}}}</div>
 
<div class="infobox-cell-2">{{{sponsor}}}</div>
 +
</div>
 +
}}<!--
 +
 +
Game/Patch
 +
 +
-->{{#if:{{{game|}}}{{{patch|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Game Version:</div>
 +
<div class="infobox-cell-2">{{#switch:{{{game|}}}|wol=[[Wings of Liberty]][[Category:{{#if:{{{beta|}}}|Beta&nbsp;}}WoL Competitions]]|hots=[[Heart of the Swarm]][[Category:{{#if:{{{beta|}}}|Beta&nbsp;}}HotS Competitions]]|lotv=[[Legacy of the Void]][[Category:{{#if:{{{beta|}}}|Beta&nbsp;}}LotV Competitions]]|[[Category:{{#if:{{{beta|}}}|Beta&nbsp;}}Competitions]]}} <!--
 +
 +
If two patch versions then break line, if only one keep on the same line as game version.
 +
-->{{#if:{{{beta|}}}|Beta&nbsp;}}<!--
 +
 +
-->{{#if:{{{epatch|}}}|<br /> [[{{{patch|}}}]] &ndash; [[{{{epatch|}}}]]|{{#if:{{{patch|}}}|[[{{{patch}}}]]}}}}</div>
 +
</div>
 +
}}<!--
 +
 +
Server
 +
 +
-->{{#if:{{{server|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Server:</div>
 +
<div class="infobox-cell-2">{{{server}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 91: Line 123:
 
}}<!--
 
}}<!--
  
Entrance fee
+
Format
  
-->{{#if:{{{entrance|}}}|
+
-->{{#if:{{{format|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Entrance fee:</div>
+
<div class="infobox-cell-2 infobox-description">Format:</div>
<div class="infobox-cell-2">{{{entrance}}}</div>
+
<div class="infobox-cell-2">{{{format}}}</div>
</div>
 
}}<!--
 
 
 
Tournaments
 
 
 
-->{{#if:{{{tournaments|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Tournaments:</div>
 
<div class="infobox-cell-2">{{{tournaments}}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 139: Line 162:
 
}}<!--
 
}}<!--
  
Dota TV Ticket
+
Icons & Links
 
 
-->{{#if:{{{dotatv|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Dota TV Ticket:</div>
 
<div class="infobox-cell-2">{{{dotatv}}}</div>
 
</div>
 
}}<!--
 
 
 
Website
 
  
-->{{#if:{{{website|}}}|
+
-->{{#if:{{{website|}}} {{{website2|}}} {{{website3|}}} {{{website4|}}} {{{tlstream|}}} {{{twitch|}}} {{{own3d|}}} {{{stream|}}} {{{youtube|}}} {{{twitter|}}} {{{facebook|}}} {{{tlprofile|}}} {{{fanclub|}}} {{{steam|}}} {{{psn|}}} |
<div>
 
<div class="infobox-cell-2 infobox-description">Website:</div>
 
<div class="infobox-cell-2">{{{website}}}</div>
 
</div>
 
}}<!--
 
 
 
Icons
 
 
 
-->{{#if:{{{twitch|}}} {{{youtube|}}}|
 
 
<div>
 
<div>
 
<div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Links</div>
 
<div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Links</div>
Line 165: Line 170:
 
<div>
 
<div>
 
<div class="infobox-center infobox-icons"><!--
 
<div class="infobox-center infobox-icons"><!--
--> {{#if:{{{twitch|}}}|[http://www.twitch.tv/{{{twitch}}}<i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]<br>}}<!--
--> {{#if:{{{twitch2|}}}|[http://www.twitch.tv/{{{twitch2}}}<i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{website2|}}}|<small>[http://{{{website2}}} {{{website2}}}]</small><br>}}<!--
--> {{#if:{{{twitch3|}}}|[http://www.twitch.tv/{{{twitch3}}}<i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{website3|}}}|<small>[http://{{{website3}}} {{{website3}}}]</small><br>}}<!--
--> {{#if:{{{twitch4|}}}|[http://www.twitch.tv/{{{twitch4}}}<i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{website4|}}}|<small>[http://{{{website4}}} {{{website4}}}]</small><br>}}<!--
--> {{#if:{{{twitch5|}}}|[http://www.twitch.tv/{{{twitch5}}}<i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{twitch|}}}|[http://www.twitch.tv/{{{twitch}}} <i class="lp-icon lp-twitch"></i>]}}<!--
--> {{#if:{{{youtube|}}}|[http://www.youtube.com/{{{youtube}}}<i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{stream|}}}|[{{{stream}}} <i class="lp-icon lp-stream"></i>]}}<!--
--> {{#if:{{{youtube2|}}}|[http://www.youtube.com/{{{youtube2}}}<i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{youtube|}}}|[http://www.youtube.com/{{{youtube}}} <i class="lp-icon lp-youtube"></i>]}}<!--
--> {{#if:{{{youtube3|}}}|[http://www.youtube.com/{{{youtube3}}}<i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{twitter|}}}|[http://twitter.com/{{{twitter}}} <i class="lp-icon lp-twitter"></i>]}}<!--
--> {{#if:{{{youtube4|}}}|[http://www.youtube.com/{{{youtube4}}}<i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{facebook|}}}|[http://facebook.com/{{{facebook}}} <i class="lp-icon lp-facebook"></i>]}}<!--
--> {{#if:{{{youtube5|}}}|[http://www.youtube.com/{{{youtube5}}}<i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{fanclub|}}}|[{{{fanclub}}} <i class="lp-icon lp-fanclub"></i>]}}<!--
 +
--> {{#if:{{{playlist|}}}|[{{{playlist}}} <i class="lp-icon lp-music"></i>]}}<!--
 +
--> {{#if:{{{psn|}}}|[https://my.playstation.com/{{{psn}}} <i class="lp-icon lp-steam"></i>]}}<!--
 +
--> {{#if:{{{psn|}}}|[https://rocketleaguestats.com/profile/PS4/{{{psn}}} <i class="lp-icon lp-steam"></i>]}}<!--
 +
--> {{#if:{{{steam|}}}|[http://steamcommunity.com/profiles/{{{steam}}} <i class="lp-icon lp-steam"></i>]}}<!--
 +
--> {{#if:{{{steam|}}}|[https://rocketleaguestats.com/profile/steam/{{{steam}}} <i class="lp-icon lp-steam"></i>]}}<!--
 
--></div>
 
--></div>
 
</div>
 
</div>
Line 190: Line 200:
 
<div>
 
<div>
 
<div class="infobox-center"><!--
 
<div class="infobox-center"><!--
-->{{#if:{{{teamfirst|}}}|{{Medal|1}}&nbsp;{{TeamIcon/{{lc:{{{teamfirst}}}}}}}}}<!--
+
-->{{#if:{{{teamfirst|}}}|{{Medal|1}}&nbsp;{{Flag/{{lc:{{{teamfirstflag}}}}}}} [[{{{teamfirst}}}]]}}<!--
 
--></div>
 
--></div>
 
</div>
 
</div>
Line 197: Line 207:
 
<div>
 
<div>
 
<div class="infobox-center {{#if:{{{teamthird2|}}}{{{teamfourth|}}}||infobox-cell-2}}"><!--
 
<div class="infobox-center {{#if:{{{teamthird2|}}}{{{teamfourth|}}}||infobox-cell-2}}"><!--
-->{{#if:{{{teamsecond|}}}|{{Medal|2}}&nbsp;{{TeamIcon/{{lc:{{{teamsecond}}}}}}}}}<!--
+
-->{{#if:{{{teamsecond|}}}|{{Medal|2}}&nbsp;{{Flag/{{lc:{{{teamsecondflag}}}}}}} [[{{{teamsecond}}}]]}}<!--
 
--></div><!--
 
--></div><!--
-->{{#if:{{{teamthird2|}}}{{{teamfourth|}}}||<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird|}}}|{{Medal|3}}&nbsp;{{TeamIcon/{{lc:{{{teamthird}}}}}}}}}</div>}}<!--
+
-->{{#if:{{{teamthird2|}}}{{{teamfourth|}}}||<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird|}}}|{{Medal|3}}&nbsp;{{Flag/{{lc:{{{teamthirdflag}}}}}}} [[{{{teamthird}}}]]}}</div>}}<!--
 
--></div>
 
--></div>
 
}}
 
}}
 
{{#if:{{{teamthird2|}}}{{{teamfourth|}}}|
 
{{#if:{{{teamthird2|}}}{{{teamfourth|}}}|
 
<div>
 
<div>
<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird|}}}|{{Medal|{{#if:{{{teamfourth|}}}|3|sf}}}}&nbsp;{{TeamIcon/{{lc:{{{teamthird}}}}}}}}}</div>
+
<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird|}}}|{{Medal|{{#if:{{{teamfourth|}}}|3|sf}}}}&nbsp;{{Flag/{{lc:{{{teamthirdflag}}}}}}} [[{{{teamthird}}}]]}}</div>
 
{{#if:{{{idthird2|}}}{{{teamthird2|}}}|
 
{{#if:{{{idthird2|}}}{{{teamthird2|}}}|
<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird2|}}}|{{Medal|sf}}&nbsp;{{TeamIcon/{{lc:{{{teamthird2}}}}}}}}}</div>
+
<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird2|}}}|{{Medal|sf}}&nbsp;{{Flag/{{lc:{{{teamthird2flag}}}}}}} [[{{{teamthird2}}}]]}}</div>
|<div class="infobox-center infobox-cell-2">{{#if:{{{teamfourth|}}}|{{Medal|4}}&nbsp;{{TeamIcon/{{lc:{{{teamfourth}}}}}}}}}</div>
+
|<div class="infobox-center infobox-cell-2">{{#if:{{{teamfourth|}}}|{{Medal|4}}&nbsp;{{Flag/{{lc:{{{teamfourthflag}}}}}}} [[{{{teamfourth}}}]]}}</div>
 
}}
 
}}
 
</div>
 
</div>
Line 244: Line 254:
 
-->{{#if:{{{team_number|}}}{{{team1|}}}{{{team2|}}}{{{team3|}}}{{{team4|}}}{{{team5|}}}|[[Category:Team Tournaments]]
 
-->{{#if:{{{team_number|}}}{{{team1|}}}{{{team2|}}}{{{team3|}}}{{{team4|}}}{{{team5|}}}|[[Category:Team Tournaments]]
 
<div>
 
<div>
<div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Teams</div>
+
<div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Signups</div>
 
</div>
 
</div>
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Number of Teams:</div>
+
<div class="infobox-cell-2 infobox-description">Number of signups:</div>
 
<div class="infobox-cell-2">{{{team_number|-}}}</div>
 
<div class="infobox-cell-2">{{{team_number|-}}}</div>
 
</div>
 
</div>
Line 311: Line 321:
 
Categories
 
Categories
  
-->{{#ifeq:{{NAMESPACE}}||<!--
 
 
-->[[Category:Leagues]]<!--
 
-->[[Category:Leagues]]<!--
--><!--
 
  
SMW
 
 
-->{{#vardefine:earliest|{{#ask:[[Has tournament::{{{firstmatch|{{PAGENAME}}}}}]] [[Has map date::+]]
 
|?#
 
|?Has map date
 
|format=earliest
 
}}}}<!--
 
-->{{#if:{{{sdate|{{{date|}}}}}}|{{#set:
 
|has first match date={{#var:earliest|{{{sdate|{{{date|}}}}}} 0:00}}
 
}}}}<!--
 
-->{{#set:
 
|has id={{{id|{{PAGENAME}}}}}
 
|has name={{#if:{{{romanized_name|}}}|{{{romanized_name|}}}|{{{name|}}}}}
 
|has image={{#if:{{{image|}}}|File:{{{image}}}}}
 
|has image caption={{{caption|}}}
 
|has icon={{{icon|}}}
 
|has number={{{number|}}}
 
|has country={{{country|}}}
 
|has city={{{city|{{{type|}}} }}}
 
|has country2={{{country2|}}}
 
|has city2={{{city2|}}}
 
|is part of series={{{series|}}}
 
|has seriesnumber={{{seriesnumber|}}}
 
|has abbreviation={{{abbreviation|{{#if:{{{series|}}}|{{#show: {{{series}}}| ?has abbreviation |default= }}}} }}}
 
|has start date={{#if:{{{sdate|}}}|{{#ifeq:{{lc:{{{sdate|}}}}}|tba||{{#replace:{{#replace:{{{sdate|}}}|-XX|}}|-??|}}}}|{{#ifeq:{{lc:{{{date|}}}}}|tba||{{#replace:{{#replace:{{{date|}}}|-XX|}}|-??|}}}}}}
 
|has date={{#if:{{{date|}}}|{{#ifeq:{{lc:{{{date|}}}}}|tba||{{#replace:{{#replace:{{{date|}}}|-XX|}}|-??|}}}}|{{#ifeq:{{lc:{{{sdate|}}}}}|tba||{{#replace:{{#replace:{{{sdate|}}}|-XX|}}|-??|}}}}}}
 
|has end date={{#if:{{{edate|}}}|{{#ifeq:{{lc:{{{edate|}}}}}|tba||{{#replace:{{#replace:{{{edate|}}}|-XX|}}|-??|}}}}|{{#ifeq:{{lc:{{{date|}}}}}|tba||{{#replace:{{#replace:{{{date|}}}|-XX|}}|-??|}}}}}}
 
|has month and day={{#sub:{{#if:{{{edate|}}}|{{#ifeq:{{lc:{{{edate|}}}}}|tba||{{#replace:{{#replace:{{{edate|}}}|-XX|}}|-??|}}}}|{{#ifeq:{{lc:{{{date|}}}}}|tba||{{#replace:{{#replace:{{{date|}}}|-XX|}}|-??|}}}}}}|5|5}}
 
|has organizer={{{organizer|}}}
 
|has organizer2={{{organizer2|}}}
 
|has organizer3={{{organizer3|}}}
 
|has organizer4={{{organizer4|}}}
 
|has sponsor={{{sponsor|}}}
 
|has tournament type={{{type|}}}
 
|has team number={{{team_number|}}}
 
|has tlpd={{{tlpd|}}}
 
|has game={{{game|}}}
 
|has patch={{{patch|}}}
 
|has format={{{format|}}}
 
|has prizepool={{{prizepool|}}}
 
|has prizepool in usd={{#if:{{{prizepoolusd|}}}|${{{prizepoolusd}}}|{{#if:{{{localcurrency|}}}|{{Local currency|{{lc:{{{localcurrency|}}}}}|prizepool={{{prizepool|}}}}}|{{{prizepool|}}}}} }}
 
|has site={{{website|}}}
 
|has liquipedia tier={{{liquipediatier|}}}
 
|has liquipedia tier team={{{liquipediatierteam|}}}
 
|is valve premier={{{valvepremier|}}}
 
|has stream={{{stream|}}}
 
 
<!-- |has first place={{{idfirst|{{{teamfirst|}}}}}}
 
|has first place page={{{linkfirst|{{{idfirst|}}}}}}
 
 
|has second place={{{idsecond|{{{teamsecond|}}}}}}
 
|has second place page={{{linksecond|{{{idsecond|}}}}}}
 
 
|has third place={{{idthird|{{{teamthird|}}}}}}
 
|has third place page={{{linkthird|{{{idthird|}}}}}}
 
 
|has third2 place={{{idthird2|{{{teamthird2|}}}}}}
 
|has third2 place page={{{linkthird2|{{{idthird2|}}}}}}
 
 
|has fourth place={{{idfourth|{{{teamfourth|}}}}}}
 
|has fourth place page={{{linkfourth|{{{idfourth|}}}}}} -->
 
}}<!--
 
  
----- VARIABLES (used within the prize pool templates) -----
 
-->{{#vardefine:tournament_name|{{{name|{{PAGENAME}}}}}}}<!--
 
-->{{#vardefine:tournament_icon|{{{icon|}}}}}<!--
 
-->{{#vardefine:tournament_series|{{{series|}}}}}<!--
 
-->{{#vardefine:tournament_tier|{{{liquipediatier|}}}}}<!--
 
-->{{#vardefine:tournament_date|{{#if:{{{edate|}}}|{{#ifeq:{{lc:{{{edate|}}}}}|tba||{{#replace:{{#replace:{{{edate|}}}|-XX|}}|-??|}}}}|{{#ifeq:{{lc:{{{date|}}}}}|tba||{{#replace:{{#replace:{{{date|}}}|-XX|}}|-??|}}}}}}}}<!--
 
-->{{#vardefine:tournament_valve_premier|{{{valvepremier|}}}}}
 
}}<!--this one from before the categories
 
  
 
--></includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>
 
--></includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>

Revision as of 14:47, 8 May 2017

Documentation (view - edit)

Adapted from Liquipedia under CC-BY-SA license.