Difference between revisions of "Template:Infobox player"
From QWiki
m (Fixing error with Team2) |
m (Rearranging Infobox lines for better readability) |
||
| Line 27: | Line 27: | ||
</div><!-- | </div><!-- | ||
| − | + | Alternate IDs | |
| − | -->{{#if:{{{ | + | -->{{#if:{{{ids|}}}| |
<div> | <div> | ||
| − | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">Nicknames:</div> |
| − | <div class="infobox-cell-2">{{ | + | <div class="infobox-cell-2">{{{ids}}}</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
| − | + | Nicknames | |
| − | -->{{#if:{{{ | + | -->{{#if:{{{nicknames|}}}| |
<div> | <div> | ||
| − | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">Nicknames:</div> |
| − | <div class="infobox-cell-2"> | + | <div class="infobox-cell-2">{{{nicknames}}}</div> |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
| Line 85: | Line 67: | ||
-->{{#if:{{{birth_date|}}}| | -->{{#if:{{{birth_date|}}}| | ||
<div> | <div> | ||
| − | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">Born:</div> |
<div class="infobox-cell-2">{{{birth_date}}}</div> | <div class="infobox-cell-2">{{{birth_date}}}</div> | ||
</div> | </div> | ||
| Line 99: | Line 81: | ||
}}<!-- | }}<!-- | ||
| − | + | Team Roles | |
| + | |||
| + | -->{{#if:{{{role|}}}| | ||
| + | <div> | ||
| + | <div class="infobox-cell-2 infobox-description">Current Role(s):</div> | ||
| + | <div class="infobox-cell-2">{{{role}}}</div> | ||
| + | </div> | ||
| + | }}<!-- | ||
| + | |||
| + | Covid | ||
| + | |||
| + | -->{{#if:{{{hadcovid|}}}| | ||
| + | <div> | ||
| + | <div class="infobox-cell-2 infobox-description">Had Covid:</div> | ||
| + | <div class="infobox-cell-2">{{{hadcovid}}}</div> | ||
| + | </div> | ||
| + | }}<!-- | ||
| + | |||
| + | Sponsor | ||
| + | |||
| + | -->{{#if:{{{sponsor|}}}| | ||
| + | <div> | ||
| + | <div class="infobox-cell-2 infobox-description">Sponsor:</div> | ||
| + | <div class="infobox-cell-2">{{{sponsor}}}</div> | ||
| + | </div> | ||
| + | }}<!-- | ||
| + | |||
| + | Color | ||
| + | |||
| + | -->{{#if:{{{color|}}}| | ||
| + | <div> | ||
| + | <div class="infobox-cell-2 infobox-description">Color:</div> | ||
| + | <div class="infobox-cell-2">{{Qwcolor{{#explode:{{{color}}}| |0}}}} {{Qwcolor{{#explode:{{{color}}}| |1}}}}</div> | ||
| + | </div> | ||
| + | }}<!-- | ||
| + | |||
| + | Favourite map 1on1 | ||
| + | |||
| + | -->{{#if:{{{favmap1on1|}}}| | ||
| + | <div> | ||
| + | <div class="infobox-cell-2 infobox-description">Map 1on1:</div> | ||
| + | <div class="infobox-cell-2">[[{{{favmap1on1}}}]]</div> | ||
| + | </div> | ||
| + | }}<!-- | ||
| + | |||
| + | Favourite map 2on2 | ||
| + | |||
| + | -->{{#if:{{{favmap2on2|}}}| | ||
| + | <div> | ||
| + | <div class="infobox-cell-2 infobox-description">Map 2on2:</div> | ||
| + | <div class="infobox-cell-2">[[{{{favmap2on2}}}]]</div> | ||
| + | </div> | ||
| + | }}<!-- | ||
| + | |||
| + | Favourite map 4on4 | ||
| − | -->{{#if:{{{ | + | -->{{#if:{{{favmap4on4|}}}| |
<div> | <div> | ||
| − | <div class="infobox-cell-2 infobox-description"> | + | <div class="infobox-cell-2 infobox-description">Map 4on4:</div> |
| − | <div class="infobox-cell-2">{{{ | + | <div class="infobox-cell-2">[[{{{favmap4on4}}}]]</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
| Line 114: | Line 150: | ||
<div class="infobox-cell-2 infobox-description">Country:</div> | <div class="infobox-cell-2 infobox-description">Country:</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:{{{country}}}}}}} [[:Category:{{{country}}}{{!}}{{{country}}}]]{{#if:{{{country2|}}}|<br>{{flag/{{lc:{{{country2}}}}}}} [[:Category:{{{country2}}}{{!}}{{{country2}}}]]}}</div> | ||
| + | </div> | ||
| + | }}<!-- | ||
| + | |||
| + | First spawn | ||
| + | |||
| + | -->{{#if:{{{spawned|}}}| | ||
| + | <div> | ||
| + | <div class="infobox-cell-2 infobox-description">First spawned:</div> | ||
| + | <div class="infobox-cell-2">{{{spawned}}}</div> | ||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
| Line 159: | Line 204: | ||
<div class="infobox-cell-2 infobox-description">Clan:</div> | <div class="infobox-cell-2 infobox-description">Clan:</div> | ||
<div class="infobox-cell-2">{{#ifexist:{{{clan}}}|[[{{{clan}}}]]|{{{clan}}}}}</div> | <div class="infobox-cell-2">{{#ifexist:{{{clan}}}|[[{{{clan}}}]]|{{{clan}}}}}</div> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
| Line 186: | Line 213: | ||
<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> | </div> | ||
}}<!-- | }}<!-- | ||
Revision as of 10:48, 19 March 2021
Documentation (view - edit)
Terminator
Player Information
Nicknames:
RoboCop, The_Terminat0r
Name:
Jan Long
Born:
May 27, 1981
Died:
May 31, 2020
Current Role(s):
Commander
Had Covid:
Yes
Sponsor:
Danske Bank
Color:
4 3
Map 1on1:
Map 2on2:
Map 4on4:
First spawned:
2001
Status:
Active
Years Active (Player):
2001-Present
Years Active (admin):
2011-2012
Team:
Clan:
Links
History
This template produces an Infobox on a player page.
Parameters
These are the variables in the Player template:
- image = Picture
- ids = Alternative nicknames
- name = Real Name
- birth_date = {{Birth date and age|YYYY|MM|DD}}
- death_date = Date of death
- role = Player, Caster, or whatever you want
- hadcovid = Yes/No, if the player had Covid-19
- sponsor = Player's personal sponsor
- color = QW colors. Insert two values (0-13) separated by space.
- favmap1on1 = Favourite 1on1 map
- favmap2on2 = Favourite 2on2 map
- favmap4on4 = Favourite 4on4 map
- country = Country
- country2 = Secound country (if needed)
- spawned = Started playing YYYY
- status = Active or Inactive
- years_active = YYYY - YYYY
- years_active_admin = YYYY - YYYY
- team = Current Team
- clan = Current Clan
- twitch = Username on Twitch
- youtube = YouTube channel name
- history = Team History. Use {{TH}}.
- team_history_list = full team history in linked form for Semantic Mediawiki property, please keep as text. Note "team_history_list" does to output back into the Player page, but solely to gather this parameter.
Example
The following code was used to create the infobox on this page.
{{Infobox player
|id=Terminator
|image=Infobox placeholder.png
|ids=RoboCop, The_Terminat0r
|name=Jan Long
|birth_date={{Birth date and age|1981|5|27}}
|death_date=May 31, 2020
|role=Commander
|hadcovid=Yes
|sponsor=Danske Bank
|color=4 3
|favmap1on1=aerowalk
|favmap2on2=dm6
|favmap4on4=e1m2
|country=Denmark
|country2=Italy
|spawned=2001
|status=Active
|years_active=2001-'''Present'''
|years_active_admin=2011-2012
|team={{Team|Team Denmark|flag=dk}}
|team2={{Team|Danske Bank|link=abbr|abbr=Royal Bank of Denmark|flag=dk}}
|clan=Zetor
|twitch=suddendeathTV
|youtube=tvsuddendeath
|history=
{{TH|2009 – '''Present'''|Star Alliance}}
{{TH|2003 – 2008|Earthquake}}
{{TH|2001|Paranoia}}
{{TH|1999 – 2001|Zetor}}
}}
Copy / Paste
{{Infobox player
|id=
|image=
|ids=
|name=
|birth_date=
|death_date=
|role=
|hadcovid=
|sponsor=
|color=
|favmap1on1=
|favmap2on2=
|favmap4on4=
|country=
|country2=
|spawned=
|status=
|years_active=
|years_active_admin=
|team=
|team2=
|clan=
|twitch=
|youtube=
|history=
{{TH|YYY-MM-DD – YYYY-MM-DD|First team}}
{{TH|YYY-MM-DD – YYYY-MM-DD|Second team}}
{{TH|YYY-MM-DD – YYYY-MM-DD|Third team}}
}}