Difference between revisions of "Template:Infobox 2on2team"

From QWiki
m
m
Line 4: Line 4:
 
<div class="fo-nttax-infobox wiki-bordercolor-light">
 
<div class="fo-nttax-infobox wiki-bordercolor-light">
 
<div>
 
<div>
<div class="infobox-header wiki-backgroundcolor-light">{{flag/{{lc:{{{country}}}}}}} {{{name}}}
+
<div class="infobox-header wiki-backgroundcolor-light">{{{name}}}
 
</div>
 
</div>
 
</div><!--
 
</div><!--
Line 55: Line 55:
 
}}<!--
 
}}<!--
  
Countries
+
Flag
  
-->{{#if:{{{country|}}}|
+
-->{{#if:{{{flag|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Country:</div>
+
<div class="infobox-cell-2 infobox-description">Flag:</div>
<div class="infobox-cell-2">{{flag/{{lc:{{{country}}}}}}} [[:Category:{{{country}}}{{!}}{{{country}}}]]{{#if:{{{country2|}}}|<br>{{flag/{{lc:{{{country2}}}}}}} [[:Category:{{{country2}}}{{!}}{{{country2}}}]]}}</div>
+
<div class="infobox-cell-2">{{flag/{{lc:{{{flag}}}}}}} </div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--

Revision as of 06:08, 29 March 2017

Documentation (view - edit)

My team
Infobox placeholder.png
2on2 team Information
Team:
ABCD
Color:
  4    13 
Created:
2016
Flag:
TBD
Status:
Active
Sponsor:
Dreamhack
Earnings:
2000 SEK


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
}}