Difference between revisions of "Template:Infobox 2on2team"

From QWiki
m
m
Line 142: Line 142:
 
<div class="infobox-center">{{{history}}}</div>
 
<div class="infobox-center">{{{history}}}</div>
 
</div>
 
</div>
 +
}}<!--
 +
 +
--></div>
 +
</div><!--
 +
 +
SMW
 +
 +
-->{{#set:
 +
|has id={{{id|{{PAGENAME}}}}}
 +
|has pagename={{PAGENAME}}
 +
|has name={{#if:{{{romanized_name|}}}|{{{romanized_name|}}}|{{{name|}}}}}
 +
|has image={{#if:{{{image|}}}|File:{{{image}}}}}
 +
|has nationality={{{country|}}}
 +
|has region={{Player region|{{{country|}}}}}
 +
|has team page={{{teampage|{{{team|}}}}}}
 +
|has clan={{{clan|}}}
 +
|has sponsor={{{sponsor|}}}
 +
|has achievements={{{achievements|}}}
 +
<!-- |has history={{{history|}}} -->
 +
 +
|has site={{{site|}}}
 +
 +
|has non-romanized name={{#if:{{{romanized_name|}}}|{{{name|}}}|}}
 +
|has dual-citizenship={{#if:{{{country2|}}}|{{#if:{{{country|}}}|true|false}}|false}}
 +
|has second nationality={{{country2|}}}
 +
|has status={{#if:{{{status|}}}|{{{status|}}}|Unknown}}
 
}}
 
}}
</div>
 
</div>
 
}}-->
 
 
</includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>
 
</includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>

Revision as of 06:43, 29 March 2017

Documentation (view - edit)

My team
Infobox placeholder.png
2on2 team Information
Short team:
ABCD
Color:
  4    13 
Flag:
TBD
Created:
2016
Status:
Active
Sponsor:
Dreamhack
Earnings (approx):
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
}}