Difference between revisions of "Template:Infobox league2on2"
(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|}}}|[ | + | --> {{#if:{{{website|}}}|[[File:Icon link20px.png|link=]] [https://{{{website}}} {{{website}}}]<br>}}<!-- |
− | --> {{#if:{{{website2|}}}| | + | --> {{#if:{{{website2|}}}|[[File:Icon link20px.png|link=]] [https://{{{website2}}} {{{website2}}}]<br>}}<!-- |
− | --> {{#if:{{{website3|}}}| | + | --> {{#if:{{{website3|}}}|[[File:Icon link20px.png|link=]] [https://{{{website3}}} {{{website3}}}]<br>}}<!-- |
− | --> {{#if:{{{website4|}}}| | + | --> {{#if:{{{website4|}}}|[[File:Icon link20px.png|link=]] [https://{{{website4}}} {{{website4}}}]<br>}}<!-- |
− | --> {{#if:{{{discord|}}}|[ | + | --> {{#if:{{{discord|}}}|[[File:Icon discord20px.png|link=]] [https://{{{discord}}} {{{discord}}}]<br>}}<!-- |
− | --> {{#if:{{{twitch|}}}|[ | + | --> {{#if:{{{twitch|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch}}} {{{twitch}}}]<br>}}<!-- |
− | --> {{#if:{{{twitch2|}}}|[ | + | --> {{#if:{{{twitch2|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch2}}} {{{twitch2}}}]<br>}}<!-- |
− | --> {{#if:{{{twitch3|}}}|[ | + | --> {{#if:{{{twitch3|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch3}}} {{{twitch3}}}]<br>}}<!-- |
− | --> {{#if:{{{twitch4|}}}|[ | + | --> {{#if:{{{twitch4|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch4}}} {{{twitch4}}}]<br>}}<!-- |
− | + | --> {{#if:{{{youtube|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube}}} {{{youtube}}}]<br>}}<!-- | |
− | --> {{#if:{{{youtube|}}}|[ | + | --> {{#if:{{{youtube2|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube2}}} {{{youtube2}}}]<br>}}<!-- |
− | --> {{#if:{{{youtube2|}}}|[ | + | --> {{#if:{{{youtube3|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube3}}} {{{youtube3}}}]<br>}}<!-- |
− | + | --> {{#if:{{{youtube4|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube4}}} {{{youtube4}}}]<br>}}<!-- | |
− | + | --> {{#if:{{{twitter|}}}|[https://twitter.com/{{{twitter}}} <i class="lp-icon lp-twitter"></i>]}}<!-- | |
− | --> {{#if:{{{ | + | --> {{#if:{{{facebook|}}}|[https://facebook.com/{{{facebook}}} <i class="lp-icon lp-facebook"></i>]}}<!-- |
− | |||
− | |||
− | --> {{#if:{{{ | ||
− | |||
− | |||
− | --> {{#if:{{{ | ||
− | --> {{#if:{{{ | ||
--></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)
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