Difference between revisions of "Template:Infobox league2on2"

From QWiki
(Creating first version of Infobox with support for both 1 and 2 players/teams)
 
m (Updated to new link with icon layout)
 
(One intermediate revision by the same user not shown)
Line 194: Line 194:
 
<div>
 
<div>
 
<div class="infobox-center infobox-icons"><!--
 
<div class="infobox-center infobox-icons"><!--
--> {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]<br>}}<!--
+
--> {{#if:{{{website|}}}|[[File:Icon link20px.png|link=]] [https://{{{website}}} {{{website}}}]<br>}}<!--  
--> {{#if:{{{website2|}}}|<small>[http://{{{website2}}} {{{website2}}}]</small><br>}}<!--
+
--> {{#if:{{{website2|}}}|[[File:Icon link20px.png|link=]] [https://{{{website2}}} {{{website2}}}]<br>}}<!--
--> {{#if:{{{website3|}}}|<small>[http://{{{website3}}} {{{website3}}}]</small><br>}}<!--
+
--> {{#if:{{{website3|}}}|[[File:Icon link20px.png|link=]] [https://{{{website3}}} {{{website3}}}]<br>}}<!--
--> {{#if:{{{website4|}}}|<small>[http://{{{website4}}} {{{website4}}}]</small><br>}}<!--
+
--> {{#if:{{{website4|}}}|[[File:Icon link20px.png|link=]] [https://{{{website4}}} {{{website4}}}]<br>}}<!--
--> {{#if:{{{discord|}}}|[http://{{{discord}}} <i class="lp-icon lp-discord"></i>]}}<!--
+
--> {{#if:{{{discord|}}}|[[File:Icon discord20px.png|link=]] [https://{{{discord}}} {{{discord}}}]<br>}}<!--
--> {{#if:{{{twitch|}}}|[http://www.twitch.tv/{{{twitch}}} <i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{twitch|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch}}} {{{twitch}}}]<br>}}<!--
--> {{#if:{{{twitch2|}}}|[http://www.twitch.tv/{{{twitch2}}} <i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{twitch2|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch2}}} {{{twitch2}}}]<br>}}<!--
--> {{#if:{{{twitch3|}}}|[http://www.twitch.tv/{{{twitch3}}} <i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{twitch3|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch3}}} {{{twitch3}}}]<br>}}<!--
--> {{#if:{{{twitch4|}}}|[http://www.twitch.tv/{{{twitch4}}} <i class="lp-icon lp-twitch"></i>]}}<!--
+
--> {{#if:{{{twitch4|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch4}}} {{{twitch4}}}]<br>}}<!--
--> {{#if:{{{stream|}}}|[{{{stream}}} <i class="lp-icon lp-stream"></i>]}}<!--
+
--> {{#if:{{{youtube|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube}}} {{{youtube}}}]<br>}}<!--
--> {{#if:{{{youtube|}}}|[http://www.youtube.com/{{{youtube}}} <i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{youtube2|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube2}}} {{{youtube2}}}]<br>}}<!--
--> {{#if:{{{youtube2|}}}|[http://www.youtube.com/{{{youtube2}}} <i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{youtube3|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube3}}} {{{youtube3}}}]<br>}}<!--
--> {{#if:{{{youtube3|}}}|[http://www.youtube.com/{{{youtube3}}} <i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{youtube4|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube4}}} {{{youtube4}}}]<br>}}<!--
--> {{#if:{{{youtube4|}}}|[http://www.youtube.com/{{{youtube4}}} <i class="lp-icon lp-youtube"></i>]}}<!--
+
--> {{#if:{{{twitter|}}}|[https://twitter.com/{{{twitter}}} <i class="lp-icon lp-twitter"></i>]}}<!--
--> {{#if:{{{twitter|}}}|[http://twitter.com/{{{twitter}}} <i class="lp-icon lp-twitter"></i>]}}<!--
+
--> {{#if:{{{facebook|}}}|[https://facebook.com/{{{facebook}}} <i class="lp-icon lp-facebook"></i>]}}<!--
--> {{#if:{{{facebook|}}}|[http://facebook.com/{{{facebook}}} <i class="lp-icon lp-facebook"></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 352: Line 345:
 
Categories
 
Categories
  
<!--
+
-->{{#if:{{{year|}}}|[[Category:{{{year}}}]]}}<!--
  
 
--></includeonly><noinclude>[[Category:Infoboxes]] [[Category:Leagues]]{{documentation}}</noinclude>
 
--></includeonly><noinclude>[[Category:Infoboxes]] [[Category:Leagues]]{{documentation}}</noinclude>

Latest revision as of 07:59, 24 May 2024

Documentation (view - edit)

[e][h]Tourney with mixed winners
League Information
Type:
Online
Format:
2on2
Date:
June 26th 2015
Winners
 Europe fix & fifi
 Finland Rock & Janne
Maps
dm2 • dm4 • dm6 • aerowalk • ztndm3

This sibling template to {{Infobox league}} can be used when you need to display either 1 or 2 players/teams in the winners list. The template should come before the article text start. See {{Infobox league}} for all possible variables.

Code Explanation

Here follows what is unique to {{Infobox league2on2}}:

|firstp1=Ragnarök
|firstp2=
|firstflag=eu
|secondp1=fix
|secondp2=fifi
|secondflag=eu
|thirdp1=Rock
|thirdp2=Janne
|thirdflag=fi
|third2p1=
|third2p2=
|third2flag=
|fourthp1=Clan Unf!
|fourthp2=
|fourthflag=usca

These are the team placings in the tournament. There's also third2p1 and teamfourth variables when bronze was never played.

NOTE: After you've entered all the information you have, do not add: 0, N/A, TBD etc to empty variable fields, instead it is often times best to just remove the empty ones, unless you know this information will be coming in the future (like results for first through third place) but then you can just leave the fields blank.

Copy/paste

{{Infobox league
|name=
|series=
|image=
|organizer=
|admin=
|founder=
|country=
|city=
|type=Online
|venue=
|format=
|sdate=
|edate=
|prizepool=
|prizepoolusd=
|firstp1=
|firstp2=
|firstflag=
|secondp1=
|secondp2=
|secondflag=
|thirdp1=
|thirdp2=
|thirdflag=
|third2p1=
|third2p2=
|third2flag=
|fourthp1=
|fourthp2=
|fourthflag=
|map1=
|map2=
|map3=
|map4=
|map5=
|map6=
|map7=
|team_number=
|website=
|twitch=
|youtube=
|discord=
}}


Adapted from Liquipedia