Difference between revisions of "Template:Infobox player"

From QWiki
m (Adding favourite map 1on1/2on2/4on4 to Infobox player)
m (Removed beige header with [e][h] above player photo)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
  
--><div class="fo-nttax-infobox-wrapper infobox-{{{game|rocket}}}">
+
--><div class="fo-nttax-infobox-wrapper infobox-rocket" style="margin: 0px 0 10px 10px;">
<div class="fo-nttax-infobox wiki-bordercolor-light">
+
<div class="fo-nttax-infobox wiki-bordercolor-light" style="padding-top: 0px;border-top: 0;border-color: #e0e1d3;">
 
<div>
 
<div>
<div class="infobox-header wiki-backgroundcolor-light"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:Infobox_player|h]]<nowiki>]</nowiki></span>{{#ifexist:Template:TeamIcon/{{lc:{{{team}}}}}|{{TeamIcon/{{lc:{{{team}}}}}}}}} {{{id|{{PAGENAME}}}}} {{#ifexist:Template:TeamIcon/{{lc:{{{team2}}}}}|{{TeamIcon/{{lc:{{{team2}}}}}}}}}</div>
 
 
</div><!--
 
</div><!--
  
 
Image
 
Image
  
-->{{#if:{{{image|}}}|
+
-->
 
<div>
 
<div>
<div class="infobox-image">[[File:{{{image}}}|center|600px]]</div>
+
<div class="infobox-image">{{#if:{{{image|}}}|[[File:{{{image|}}}|center|600px]]|[[File:Infobox player.png|center|link=Special:Upload|Click here to upload a photo]]}}</div>
</div>
+
</div><!--
}}<!--
 
  
 
Caption
 
Caption
Line 27: Line 25:
 
</div><!--
 
</div><!--
  
Color
+
Alternate IDs
  
-->{{#if:{{{color|}}}|
+
-->{{#if:{{{ids|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Color:</div>
+
<div class="infobox-cell-2 infobox-description">Nicknames:</div>
<div class="infobox-cell-2">{{Qwcolor{{#explode:{{{color}}}| |0}}}} {{Qwcolor{{#explode:{{{color}}}| |1}}}}</div>
+
<div class="infobox-cell-2">{{{ids}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Favourite map 1on1
+
Nicknames
  
-->{{#if:{{{favmap1on1|}}}|
+
-->{{#if:{{{nicknames|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Map 1on1:</div>
+
<div class="infobox-cell-2 infobox-description">Nicknames:</div>
<div class="infobox-cell-2">[[{{{favmap1on1}}}]]</div>
+
<div class="infobox-cell-2">{{{nicknames}}}</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:{{{favmap4on4|}}}|
 
<div>
 
<div class="infobox-cell-2 infobox-description">Map 4on4:</div>
 
<div class="infobox-cell-2">[[{{{favmap4on4}}}]]</div>
 
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 85: Line 65:
 
-->{{#if:{{{birth_date|}}}|
 
-->{{#if:{{{birth_date|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Birth:</div>
+
<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 79:
 
}}<!--
 
}}<!--
  
First spawn
+
Team Roles
 +
 
 +
-->{{#if:{{{role|}}}|
 +
<div>
 +
<div class="infobox-cell-2 infobox-description">Role:</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:{{{spawned|}}}|
+
-->{{#if:{{{sponsor|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">First spawned:</div>
+
<div class="infobox-cell-2 infobox-description">Sponsor:</div>
<div class="infobox-cell-2">{{{spawned}}}</div>
+
<div class="infobox-cell-2">{{{sponsor}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Countries
+
Color
  
-->{{#if:{{{country|}}}|
+
-->{{#if:{{{color|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Country:</div>
+
<div class="infobox-cell-2 infobox-description">Color:</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">{{Qwcolor{{#explode:{{{color}}}| |0}}}} {{Qwcolor{{#explode:{{{color}}}| |1}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Status
+
Favourite map 1on1
  
-->{{#if:{{{status|}}}|
+
-->{{#if:{{{favmap1on1|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Status:</div>
+
<div class="infobox-cell-2 infobox-description">Map 1on1:</div>
<div class="infobox-cell-2">{{#ifexist:{{{status}}}|[[{{{status}}}]]|{{{status}}}}}</div>
+
<div class="infobox-cell-2">[[{{{favmap1on1}}}]]</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Years Active (Player)
+
Favourite map 2on2
  
-->{{#if:{{{years_active|}}}|
+
-->{{#if:{{{favmap2on2|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Years Active (Player):</div>
+
<div class="infobox-cell-2 infobox-description">Map 2on2:</div>
<div class="infobox-cell-2">{{#ifexist:{{{years_active}}}|[[{{{years_active}}}]]|{{{years_active}}}}}</div>
+
<div class="infobox-cell-2">[[{{{favmap2on2}}}]]</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Years Active (Org)
+
Favourite map 4on4
  
-->{{#if:{{{years_active_manage|}}}|
+
-->{{#if:{{{favmap4on4|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Years Active (Org):</div>
+
<div class="infobox-cell-2 infobox-description">Map 4on4:</div>
<div class="infobox-cell-2">{{#ifexist:{{{years_active_manage}}}|[[{{{years_active_manage}}}]]|{{{years_active_manage}}}}}</div>
+
<div class="infobox-cell-2">[[{{{favmap4on4}}}]]</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Current Team
+
Countries
  
-->{{#if:{{{team|}}}|
+
-->{{#if:{{{country|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Team:</div>
+
<div class="infobox-cell-2 infobox-description">Country:</div>
<div class="infobox-cell-2">[[{{{teamlink|{{{team}}} }}}|{{{team}}}]] {{#if:{{{team2|}}}|<br>[[{{{team2link|{{{team2}}}}}}|{{{team2}}}]]}}</div>
+
<div class="infobox-cell-2">{{flag/{{lc:{{{country}}}}}}} [[:Category:{{{country}}}{{!}}{{{country}}}]]{{#if:{{{country2|}}}|<br>{{flag/{{lc:{{{country2}}}}}}} [[:Category:{{{country2}}}{{!}}{{{country2}}}]]}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Current Clan
+
First spawn
  
-->{{#if:{{{clan|}}}|
+
-->{{#if:{{{spawned|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Clan:</div>
+
<div class="infobox-cell-2 infobox-description">First spawned:</div>
<div class="infobox-cell-2">{{#ifexist:{{{clan}}}|[[{{{clan}}}]]|{{{clan}}}}}</div>
+
<div class="infobox-cell-2">{{{spawned}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Covid
+
Status
  
-->{{#if:{{{hadcovid|}}}|
+
-->{{#if:{{{status|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Had Covid:</div>
+
<div class="infobox-cell-2 infobox-description">Status:</div>
<div class="infobox-cell-2">{{{hadcovid}}}</div>
+
<div class="infobox-cell-2">{{#ifexist:{{{status}}}|{{{status}}}|{{{status}}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Sponsor
+
Years Active (Player)
  
-->{{#if:{{{sponsor|}}}|
+
-->{{#if:{{{years_active|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Sponsor:</div>
+
<div class="infobox-cell-2 infobox-description">Years Active (Player):</div>
<div class="infobox-cell-2">{{{sponsor}}}</div>
+
<div class="infobox-cell-2">{{#ifexist:{{{years_active}}}|{{{years_active}}}|{{{years_active}}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Earnings
+
Years Active (Admin)
  
-->{{#vardefine:earnings|{{Total earnings of|{{#if:{{{earnings|}}}|{{{earnings}}}|{{PAGENAME}}}}|player}}}}{{#ifeq:{{#var:earnings}}|$0||
+
-->{{#if:{{{years_active_admin|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Approx. Total Earnings:</div>
+
<div class="infobox-cell-2 infobox-description">Years Active (admin):</div>
<div class="infobox-cell-2 ">{{#var:earnings}}</div>
+
<div class="infobox-cell-2">{{#ifexist:{{{years_active_admin}}}|{{{years_active_admin}}}|{{{years_active_admin}}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Alternate IDs
+
Current Team
  
-->{{#if:{{{ids|}}}|
+
-->{{#if:{{{team|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Alternate IDs:</div>
+
<div class="infobox-cell-2 infobox-description">Team:</div>
<div class="infobox-cell-2">{{{ids}}}</div>
+
<div class="infobox-cell-2">{{{team}}} {{#if:{{{team2|}}}|<br>{{{team2}}}|}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Nicknames
+
Current Clan
  
-->{{#if:{{{nicknames|}}}|
+
-->{{#if:{{{clan|}}}|
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Nicknames:</div>
+
<div class="infobox-cell-2 infobox-description">Clan:</div>
<div class="infobox-cell-2">{{{nicknames}}}</div>
+
<div class="infobox-cell-2">{{#ifexist:{{{clan}}}|[[{{{clan}}}]]|{{{clan}}}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
  
Team Roles
+
Earnings
  
-->{{#if:{{{role|}}}|
+
-->{{#vardefine:earnings|{{Total earnings of|{{#if:{{{earnings|}}}|{{{earnings}}}|{{PAGENAME}}}}|player}}}}{{#ifeq:{{#var:earnings}}|$0||
 
<div>
 
<div>
<div class="infobox-cell-2 infobox-description">Current Role(s):</div>
+
<div class="infobox-cell-2 infobox-description">Approx. Total Earnings:</div>
<div class="infobox-cell-2">{{{role}}}</div>
+
<div class="infobox-cell-2 ">{{#var:earnings}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
Line 294: Line 292:
 
|has nationality={{{country|}}}
 
|has nationality={{{country|}}}
 
|has region={{Player region|{{{country|}}}}}
 
|has region={{Player region|{{{country|}}}}}
|has team={{{team|}}}
+
<!--|has team={{{team|}}}-->
 
|has role={{{role|}}}
 
|has role={{{role|}}}
|has team page={{{teampage|{{{team|}}}}}}
+
<!--|has team page={{{teampage|{{{team|}}}}}}-->
|has clan={{{clan|}}}
+
<!--|has clan={{{clan|}}}-->
 
|has sponsor={{{sponsor|}}}
 
|has sponsor={{{sponsor|}}}
 
|has achievements={{{achievements|}}}
 
|has achievements={{{achievements|}}}

Latest revision as of 13:32, 23 March 2023

Documentation (view - edit)

Click here to upload a photo
Player Information
Nicknames:
RoboCop, The_Terminat0r
Name:
Jan Long
Born:
May 27, 1981 (1981-05-27) (age 43)
Died:
May 31, 2020
Role:
Commander
Had Covid:
Yes
Sponsor:
Danske Bank
Color:
  4     3  
Map 1on1:
Map 2on2:
Map 4on4:
Country:
First spawned:
2001
Status:
Active
Years Active (Player):
2001-Present
Years Active (admin):
2011-2012
Team:
Denmark Team Denmark
Denmark Danske Bank
Clan:
Links
History
2009 – Present
2003 – 2008
1999 – 2001

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