Difference between revisions of "Template:Infobox 2on2team"

From QWiki
Line 24: Line 24:
  
 
--><div>
 
--><div>
<div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Player Information</div>
+
<div class="infobox-header wiki-backgroundcolor-light infobox-header-2">2on2 team Information</div>
 
</div><!--
 
</div><!--
  
Name
+
Current Team
  
-->{{#if:{{{name|}}}|
+
-->{{#if:{{{team|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Name:</div>
+
<div class="infobox-cell-2 infobox-description">Team:</div>
<div class="infobox-cell-2">{{{name}}}</div>
+
<div class="infobox-cell-2"><nowiki>{{{team}}}</nowiki></div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Romanized Name
+
Name
  
-->{{#if:{{{romanized_name|}}}|
+
-->{{#if:{{{name|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Romanized Name:</div>
+
<div class="infobox-cell-2 infobox-description">Name:</div>
<div class="infobox-cell-2">{{{romanized_name}}}</div>
+
<div class="infobox-cell-2">{{{name}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 78: Line 78:
 
<div class="infobox-cell-2 infobox-description">Years Active (Player):</div>
 
<div class="infobox-cell-2 infobox-description">Years Active (Player):</div>
 
<div class="infobox-cell-2">{{#ifexist:{{{years_active}}}|[[{{{years_active}}}]]|{{{years_active}}}}}</div>
 
<div class="infobox-cell-2">{{#ifexist:{{{years_active}}}|[[{{{years_active}}}]]|{{{years_active}}}}}</div>
</div>
 
}}<!--
 
 
Years Active (Org)
 
 
-->{{#if:{{{years_active_manage|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Years Active (Org):</div>
 
<div class="infobox-cell-2">{{#ifexist:{{{years_active_manage}}}|[[{{{years_active_manage}}}]]|{{{years_active_manage}}}}}</div>
 
</div>
 
}}<!--
 
 
Current Team
 
 
-->{{#if:{{{team|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Team:</div>
 
<div class="infobox-cell-2"><nowiki>{{{team}}}</nowiki></div>
 
</div>
 
}}<!--
 
 
Current Clan
 
 
-->{{#if:{{{clan|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Clan:</div>
 
<div class="infobox-cell-2">{{#ifexist:{{{clan}}}|[[{{{clan}}}]]|{{{clan}}}}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 123: Line 96:
 
<div class="infobox-cell-2 infobox-description">Approx. Total Earnings:</div>
 
<div class="infobox-cell-2 infobox-description">Approx. Total Earnings:</div>
 
<div class="infobox-cell-2 ">{{#var:earnings}}</div>
 
<div class="infobox-cell-2 ">{{#var:earnings}}</div>
</div>
 
}}<!--
 
 
Alternate IDs
 
 
-->{{#if:{{{ids|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Alternate IDs:</div>
 
<div class="infobox-cell-2">{{{ids}}}</div>
 
</div>
 
}}<!--
 
 
Nicknames
 
 
-->{{#if:{{{nicknames|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Nicknames:</div>
 
<div class="infobox-cell-2">{{{nicknames}}}</div>
 
</div>
 
}}<!--
 
 
Team Roles
 
 
-->{{#if:{{{role|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Current Role(s):</div>
 
<div class="infobox-cell-2">{{{role}}}</div>
 
</div>
 
}}<!--
 
 
Heroes
 
 
-->{{#if:{{{hero|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Signature Hero:</div>
 
<div class="infobox-cell-2">{{HeroStat/{{lc:{{{hero}}}}}}}{{#if:{{{hero2|}}}|&nbsp;{{HeroStat/{{lc:{{{hero2}}}}}}}}}{{#if:{{{hero3|}}}|&nbsp;{{HeroStat/{{lc:{{{hero3}}}}}}}}}</div>
 
</div>
 
}}<!--
 
 
MMR
 
 
-->{{#if:{{{mmr|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Solo MMR:</div>
 
<div class="infobox-cell-2">[[Leaderboards|{{{mmr}}}]]{{#if:{{{mmrdate|}}}|&nbsp;<small>''(last update: {{{mmrdate}}})''</small>}}</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--

Revision as of 05:56, 27 March 2017

Documentation (view - edit)

[e][h] Infobox 2on2team
Infobox placeholder.png
2on2 team Information
Team:
{{{team}}}
Name:
My team
Status:
Active
Sponsor:
Dreamhack

This template produces an Infobox on a team page.

Parameters

These are the variables in the Player template:

  • name = Team Name
  • team = (optional) Team tag / shortname
  • image = (optional) Picture
  • color1 = (optional) Top color, 1-13
  • color2 = (optional) Bottom color, 1-13
  • flag = (optional) 2 letter country code
  • created = (optional) Year, month (2010, April)
  • status = (optional) Active / Inactive
  • sponsor = (optional) Team's personal sponsor
  • earnings = (optional) Team's earnings, approximately

Example

The following code was used to create the infobox on this page.

{{Infobox 2on2team
|name=My team
|team=ABCD
|image=Infobox placeholder.png
|color1=4
|color2=13
|flag=tbd
|created=2016
|status=Active
|sponsor=Dreamhack
|earnings=2000 SEK
}}