Difference between revisions of "Template:Infobox league"
m (Added new link icon for |website) |
|||
(55 intermediate revisions by the same user not shown) | |||
Line 37: | Line 37: | ||
<div class="infobox-cell-2 infobox-description">Series:</div> | <div class="infobox-cell-2 infobox-description">Series:</div> | ||
<div class="infobox-cell-2">{{#ifexist:Template:LeagueIconSmall/{{lc:{{{series}}}}}|{{LeagueIconSmall/{{lc:{{{series}}}}}}}|}} {{#ifexist:{{{series}}}|[[{{{series}}}]]|{{{series}}}}}</div> | <div class="infobox-cell-2">{{#ifexist:Template:LeagueIconSmall/{{lc:{{{series}}}}}|{{LeagueIconSmall/{{lc:{{{series}}}}}}}|}} {{#ifexist:{{{series}}}|[[{{{series}}}]]|{{{series}}}}}</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 46: | Line 55: | ||
<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"><!-- | ||
− | -->{{# | + | -->{{#if:{{{organizer|}}}|{{{organizer}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{organizer2|}}}|<br />{{{organizer2}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{organizer3|}}}|<br />{{{organizer3}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{organizer4|}}}|<br />{{{organizer4}}}}}<!-- |
+ | --></div> | ||
+ | </div> | ||
+ | }}<!-- | ||
+ | |||
+ | Admins | ||
+ | |||
+ | -->{{#if:{{{admin|}}}| | ||
+ | <div> | ||
+ | <div class="infobox-cell-2 infobox-description">Admin:</div> | ||
+ | <div class="infobox-cell-2"><!-- | ||
+ | -->{{#if:{{{admin|}}}|{{{admin}}}}}<!-- | ||
+ | -->{{#if:{{{admin2|}}}|<br />{{{admin2}}}}}<!-- | ||
+ | -->{{#if:{{{admin3|}}}|<br />{{{admin3}}}}}<!-- | ||
+ | -->{{#if:{{{admin4|}}}|<br />{{{admin4}}}}}<!-- | ||
+ | -->{{#if:{{{admin5|}}}|<br />{{{admin5}}}}}<!-- | ||
+ | -->{{#if:{{{admin6|}}}|<br />{{{admin6}}}}}<!-- | ||
+ | -->{{#if:{{{admin7|}}}|<br />{{{admin7}}}}}<!-- | ||
+ | -->{{#if:{{{admin8|}}}|<br />{{{admin8}}}}}<!-- | ||
+ | -->{{#if:{{{admin9|}}}|<br />{{{admin9}}}}}<!-- | ||
--></div> | --></div> | ||
</div> | </div> | ||
Line 83: | Line 111: | ||
<div class="infobox-cell-2 infobox-description">Server:</div> | <div class="infobox-cell-2 infobox-description">Server:</div> | ||
<div class="infobox-cell-2">{{{server}}}</div> | <div class="infobox-cell-2">{{{server}}}</div> | ||
+ | </div> | ||
+ | }}<!-- | ||
+ | |||
+ | Mode | ||
+ | |||
+ | -->{{#if:{{{mode|}}}| | ||
+ | <div> | ||
+ | <div class="infobox-cell-2 infobox-description">Mode:</div> | ||
+ | <div class="infobox-cell-2">{{{mode}}}</div> | ||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 92: | Line 129: | ||
<div class="infobox-cell-2 infobox-description">Type:</div> | <div class="infobox-cell-2 infobox-description">Type:</div> | ||
<div class="infobox-cell-2">{{#switch:{{lc:{{{type}}}}} | <div class="infobox-cell-2">{{#switch:{{lc:{{{type}}}}} | ||
− | |offline = Offline[[Category:Offline Tournaments]] | + | |offline = Offline[[Category:Offline Tournaments]][[Category:Leagues]] |
− | |online = Online[[Category:Online Tournaments]] | + | |online = Online[[Category:Online Tournaments]][[Category:Leagues]] |
− | |weekly online = Weekly Online[[Category:Weekly Online Tournaments]] | + | |weekly online = Weekly Online[[Category:Weekly Online Tournaments]][[Category:Leagues]] |
− | |{{{type}}}[[Category:{{{ | + | |[[Category:{{{type}}} Tournaments]]}}[[Category:Leagues]]</div> |
+ | </div> | ||
+ | }}<!-- | ||
+ | |||
+ | Entrance fee | ||
+ | |||
+ | -->{{#if:{{{registration|}}}| | ||
+ | <div> | ||
+ | <div class="infobox-cell-2 infobox-description">Registration fee:</div> | ||
+ | <div class="infobox-cell-2">{{{registration}}}</div> | ||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 161: | Line 207: | ||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
− | + | -->{{#if:{{{season|}}}| | |
− | + | <div> | |
− | + | <div class="infobox-cell-2 infobox-description">Season:</div> | |
− | -->{{#if:{{{ | + | <div class="infobox-cell-2">{{{season}}}</div> |
+ | </div> | ||
+ | }}<!-- | ||
+ | -->{{#if:{{{playoffs|}}}| | ||
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">Playoffs:</div> |
− | <div class="infobox-cell-2">{{{ | + | <div class="infobox-cell-2">{{{playoffs}}}</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
− | + | -->{{#if:{{{irc|}}}| | |
− | |||
− | |||
− | -->{{#if:{{{ | ||
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">IRC:</div> |
− | <div class="infobox-cell-2"> | + | <div class="infobox-cell-2">{{{irc}}}</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
− | Icons | + | Icons & Links |
− | -->{{#if:{{{website|}}} {{{ | + | -->{{#if:{{{website|}}} {{{website2|}}} {{{website3|}}} {{{website4|}}} {{{tlstream|}}} {{{twitch|}}} {{{discord|}}} {{{own3d|}}} {{{stream|}}} {{{youtube|}}} {{{twitter|}}} {{{facebook|}}} {{{tlprofile|}}} {{{fanclub|}}} {{{steam|}}} {{{psn|}}} | |
<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 188: | Line 234: | ||
<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|}}}|[[File:Icon link20px.png|link=]] [https://{{{website2}}} {{{website2}}}]<br>}}<!-- | |
− | --> {{#if:{{{ | + | --> {{#if:{{{website3|}}}|[[File:Icon link20px.png|link=]] [https://{{{website3}}} {{{website3}}}]<br>}}<!-- |
− | + | --> {{#if:{{{website4|}}}|[[File:Icon link20px.png|link=]] [https://{{{website4}}} {{{website4}}}]<br>}}<!-- | |
− | --> {{#if:{{{ | + | --> {{#if:{{{discord|}}}|[[File:Icon discord20px.png|link=]] [https://{{{discord}}} {{{discord}}}]<br>}}<!-- |
− | + | --> {{#if:{{{twitch|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch}}} {{{twitch}}}]<br>}}<!-- | |
− | --> {{#if:{{{ | + | --> {{#if:{{{twitch2|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch2}}} {{{twitch2}}}]<br>}}<!-- |
− | + | --> {{#if:{{{twitch3|}}}|[[File:Icon twitch20px.png|link=]] [https://www.twitch.tv/{{{twitch3}}} {{{twitch3}}}]<br>}}<!-- | |
− | --> {{#if:{{{ | + | --> {{#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:{{{ | + | --> {{#if:{{{youtube2|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube2}}} {{{youtube2}}}]<br>}}<!-- |
− | + | --> {{#if:{{{youtube3|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube3}}} {{{youtube3}}}]<br>}}<!-- | |
− | --> {{#if:{{{twitch2|}}}|[ | + | --> {{#if:{{{youtube4|}}}|[[File:Icon youtube20px.png|link=]] [https://www.youtube.com/{{{youtube4}}} {{{youtube4}}}]<br>}}<!-- |
− | --> {{#if:{{{twitch3|}}}|[ | + | --> {{#if:{{{twitter|}}}|[https://twitter.com/{{{twitter}}} <i class="lp-icon lp-twitter"></i>]}}<!-- |
− | --> {{#if:{{{twitch4|}}}|[ | + | --> {{#if:{{{facebook|}}}|[https://facebook.com/{{{facebook}}} <i class="lp-icon lp-facebook"></i>]}}<!-- |
− | |||
− | |||
− | --> {{#if:{{{youtube|}}}|[ | ||
− | --> {{#if:{{{youtube2|}}}|[ | ||
− | --> {{#if:{{{youtube3|}}}|[ | ||
− | --> {{#if:{{{youtube4|}}}|[ | ||
− | |||
− | |||
− | --> {{#if:{{{ | ||
− | --> {{#if:{{{ | ||
--></div> | --></div> | ||
</div> | </div> | ||
Line 228: | Line 264: | ||
<div> | <div> | ||
<div class="infobox-center"><!-- | <div class="infobox-center"><!-- | ||
− | -->{{#if:{{{teamfirst|}}}|{{Medal|1}} {{ | + | -->{{#if:{{{teamfirst|}}}|{{Medal|1}} {{Flag/{{lc:{{{teamfirstflag}}}}}}} [[{{{teamfirst}}}]]}}<!-- |
--></div> | --></div> | ||
</div> | </div> | ||
Line 235: | Line 271: | ||
<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}} {{ | + | -->{{#if:{{{teamsecond|}}}|{{Medal|2}} {{Flag/{{lc:{{{teamsecondflag}}}}}}} [[{{{teamsecond}}}]]}}<!-- |
--></div><!-- | --></div><!-- | ||
− | -->{{#if:{{{teamthird2|}}}{{{teamfourth|}}}||<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird|}}}|{{Medal|3}} {{ | + | -->{{#if:{{{teamthird2|}}}{{{teamfourth|}}}||<div class="infobox-center infobox-cell-2">{{#if:{{{teamthird|}}}|{{Medal|3}} {{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}}}} {{ | + | <div class="infobox-center infobox-cell-2">{{#if:{{{teamthird|}}}|{{Medal|{{#if:{{{teamfourth|}}}|3|sf}}}} {{Flag/{{lc:{{{teamthirdflag}}}}}}} [[{{{teamthird}}}]]}}</div> |
{{#if:{{{idthird2|}}}{{{teamthird2|}}}| | {{#if:{{{idthird2|}}}{{{teamthird2|}}}| | ||
− | <div class="infobox-center infobox-cell-2">{{#if:{{{teamthird2|}}}|{{Medal|sf}} {{ | + | <div class="infobox-center infobox-cell-2">{{#if:{{{teamthird2|}}}|{{Medal|sf}} {{Flag/{{lc:{{{teamthird2flag}}}}}}} [[{{{teamthird2}}}]]}}</div> |
− | |<div class="infobox-center infobox-cell-2">{{#if:{{{teamfourth|}}}|{{Medal|4}} {{ | + | |<div class="infobox-center infobox-cell-2">{{#if:{{{teamfourth|}}}|{{Medal|4}} {{Flag/{{lc:{{{teamfourthflag}}}}}}} [[{{{teamfourth}}}]]}}</div> |
}} | }} | ||
</div> | </div> | ||
}} | }} | ||
+ | }}<!-- | ||
+ | |||
+ | Maps section | ||
+ | |||
+ | -->{{#if: {{{map1|}}} {{{map2|}}} {{{map3|}}} {{{map4|}}} {{{map5|}}} {{{map6|}}} {{{map7|}}} {{{map8|}}} {{{map9|}}} {{{map10|}}}| | ||
+ | <div> | ||
+ | <div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Maps</div> | ||
+ | </div> | ||
+ | <div> | ||
+ | <div class="infobox-center"><!-- | ||
+ | -->{{#if:{{{map1|}}}|[[{{{map1|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map1|}}}]]}}<!-- | ||
+ | -->{{#if:{{{map2|}}}| • {{nowrap|[[{{{map2|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map2|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map3|}}}| • {{nowrap|[[{{{map3|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map3|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map4|}}}| • {{nowrap|[[{{{map4|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map4|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map5|}}}| • {{nowrap|[[{{{map5|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map5|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map6|}}}| • {{nowrap|[[{{{map6|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map6|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map7|}}}| • {{nowrap|[[{{{map7|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map7|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map8|}}}| • {{nowrap|[[{{{map8|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map8|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map9|}}}| • {{nowrap|[[{{{map9|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map9|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map10|}}}| • {{nowrap|[[{{{map10|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map10|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map11|}}}| • {{nowrap|[[{{{map11|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map11|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map12|}}}| • {{nowrap|[[{{{map12|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map12|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map13|}}}| • {{nowrap|[[{{{map13|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map13|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map14|}}}| • {{nowrap|[[{{{map14|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map14|}}}]]}}}}<!-- | ||
+ | -->{{#if:{{{map15|}}}| • {{nowrap|[[{{{map15|}}}{{#if:{{{game|}}}|/{{{game}}}}}|{{{map15|}}}]]}}}}<!-- | ||
+ | --></div> | ||
+ | </div> | ||
}}<!-- | }}<!-- | ||
Line 255: | Line 318: | ||
-->{{#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"> | + | <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 | + | <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 322: | Line 385: | ||
Categories | Categories | ||
− | -->{{# | + | -->{{#if:{{{year|}}}|[[Category:{{{year}}}]]}}<!-- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}<!-- | ||
− | --></includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude> | + | --></includeonly><noinclude>[[Category:Infoboxes]] [[Category:Leagues]]{{documentation}}</noinclude> |
Latest revision as of 07:46, 24 May 2024
Documentation (view - edit)
Single-Elimination Bracket (Bo3)
(≃ $599,911.23 USD)
An Infobox is one of the standard features of any QWiki page and it's no different for tournaments and leagues. The {{Infobox league}}-template should come before the article text start.
Code Explanation
{{Infobox league
- This brings out the template you will be using.
|name=DreamHack Winter 2025
|year=2023
- Set year to get categorization right
|image=no_img.png
|organizer=DreamHack
|admin=
|founder=
- You can add up to 4 organizers and 5 admins, 1 founder. Like this: organizer2 - admin4 etc. Please use the player template with flags, like this {{player|ocoini|flag=no}}.
|sponsor= [http://www.madeupsite.com/ madeupsite]
|type=Online
- Either Offline, Online or Hybrid.
|country=Sweden
- The country or continent in which the event takes place.
|city=Jönköping
- For offline events, the city in which the event takes place. If both the city and country fields are filled, the city will appear next to the country flag in one single line named Location (as in the example infobox).
|venue=[http://www.elmia.se Elmia]
- For offline events, the venue in which the event takes place.
|format=Group Stage ({{Abbr/Bo1}})<br /> Single-Elimination Bracket ({{Abbr/Bo3}})
- The format variable should be a short description of the match format and the tournament format (like: "Round Robin"/"Group Stage"/"GSL Groups", "Single-Elimination Bracket" or "Double-Elimination Bracket"). Every stage format should be separated by a line-break (<br />)
List of some possible formats:
Group Stage/Round-Robin/GSL Groups:
|format=GSL Groups ({{Abbr/Bo1}}) |format=GSL Groups ({{Abbr/Bo3}})
Tournament Example:
This example is provided for a tournament with a GSL Group (Bo1) stage and a Double-Elimination Bracket (Bo3+Bo5)
|format=GSL Groups ({{Abbr/Bo1}})<br /> Double-Elimination Bracket ({{Abbr/Bo3}} + {{Abbr/Bo5}})
|prizepool=6,000
- The size of the prize pool for the tournament and. Add currency after value.
|prizepoolusd=5,000
- The size of the prize pool for the tournament in USD if the tournament prize pool is not in USD.
|date= ''2010-10-10''
|sdate= ''2010-10-10''
|edate= ''2010-10-17''
- Date of event or if it spans multiple days, you can instead add start and end date. Please try to use the ISO 8601 date standard (YYYY-MM-DD) with the normal "hyphen-minus" (-) as a seperator.
|website=www.quakeworld.nu
- Make a website link for the tournament. Can list multiple with website1 etc. For multiple links, use |website2=, |website3=, |website4=.
|discord=discord.quake.world
- Make a link to tournament Discord.
|twitch=qwiki
- Make a Twitch link for the tournament. Note that only the part after twitch.tv/ should be in the field. For multiple links, use |twitch2=, |twitch3=, |twitch4=.
|youtube=qwiki
- Make a Youtube link for the tournament. Note that only the part after youtube.com/ should be in the field. For multiple links, user |youtube2=, |youtube3=, |youtube4=.
|facebook=qwiki
- Make a Facebook link for the tournament. Note that only the part after facebook.com/ should be in the field.
|twitter=qwiki
- Make a Twitter link for the tournament. Note that only the part after twitter.com/ should be in the field.
|teamfirst=
|teamsecond=
|teamthird=
- These are the team placings in the tournament, just like with the ids there's teamthird2 and teamfourth variables. And just like for organizers these will link automatically to a page with the same name as you've entered if there is one.
|team_number=
- Used to provide information of how many team slots are available for the tournament, often used in qualifiers that are not filled.
|teamX=
- These are to be used for team tournaments team_number sets the number of teams playing in the league. team1 - team16 lists up to 16 possible teams, for a league with more teams than this just leave these fields blank and make a list on the page.
|mapX=
- These are to be used for maps in the torunaments map poool, mapX sets the number of maps available for the league. map1 - map10 lists up to 10 possible maps.
|previous=
|next=
- Links to the previous and next editions of the serie/tournament.
}}
- Ends the use of the template, without this the template will not work.
Adapted from Liquipedia