Difference between revisions of "Template:Infobox player"

From QWiki
m
m (Clean out unecessary smw stuff)
Line 250: Line 250:
 
{{#if:{{{id|}}}|[[Category:InfoboxComplete]]|[[Category:InfoboxIncomplete]]}}
 
{{#if:{{{id|}}}|[[Category:InfoboxComplete]]|[[Category:InfoboxIncomplete]]}}
 
{{#if:{{{image|}}}|{{#ifeq:{{{image|}}}|PlayerImagePlaceholder.png|[[Category:Players with no profile picture]]}}|[[Category:Players with no profile picture]]}}<!-- To add to a hidden category to find players without profile images.
 
{{#if:{{{image|}}}|{{#ifeq:{{{image|}}}|PlayerImagePlaceholder.png|[[Category:Players with no profile picture]]}}|[[Category:Players with no profile picture]]}}<!-- To add to a hidden category to find players without profile images.
-->{{#if:{{{twitter|}}}{{{facebook|}}}{{{gplus|}}}{{{vk|}}}{{{weibo|}}}{{{tencent|}}}||[[Category:Players with no social media links]]}}<!-- To add to a hidden category to find players without social media links.
 
-->{{#if:{{{fanclub|}}}||[[Category:Players without a fanpage]]}}<!-- To add to a hidden category to find players without a fanclub.
 
-->{{#if:{{{status|}}}||[[Category:Players without a status]]}}<!-- To add to a hidden category to find players without an activity status listed.
 
-->{{#if:{{{birth_date|}}}||[[Category:People with an unknown birth date]]}}<!-- To add to a hidden category to find players, shoutcasters and managers with an unknown birth date.
 
 
-->{{#if:{{{country|}}}|{{#ifeq:{{localisation|{{{country}}}}}|error
 
-->{{#if:{{{country|}}}|{{#ifeq:{{localisation|{{{country}}}}}|error
 
|[[Category:Unrecognised Country{{!}}{{{country}}}]]
 
|[[Category:Unrecognised Country{{!}}{{{country}}}]]
Line 277: Line 273:
 
|has sponsor={{{sponsor|}}}
 
|has sponsor={{{sponsor|}}}
 
|has achievements={{{achievements|}}}
 
|has achievements={{{achievements|}}}
|has mmr={{{mmr|}}}
 
|has mmr date={{{mmrdate|}}}
 
 
<!-- |has history={{{history|}}} -->
 
<!-- |has history={{{history|}}} -->
  
 
|has site={{{site|}}}
 
|has site={{{site|}}}
 
|has stream={{{stream|}}}
 
|has stream={{{stream|}}}
|has musical playlist={{{playlist|}}}
 
|has fanclub page={{{fanclub|}}}
 
  
|has tl stream={{#if:{{{tlstream|}}}|http://www.teamliquid.net/stream/{{{tlstream}}}}}
 
 
|has twitch stream={{#if:{{{twitch|}}}|http://www.twitch.tv/{{{twitch}}}}}
 
|has twitch stream={{#if:{{{twitch|}}}|http://www.twitch.tv/{{{twitch}}}}}
|has own3d stream={{#if:{{{own3d|}}}|http://www.own3d.tv/{{{own3d}}}}}
 
 
|has youtube channel={{#if:{{{youtube|}}}|http://www.youtube.com/{{{youtube}}}}}
 
|has youtube channel={{#if:{{{youtube|}}}|http://www.youtube.com/{{{youtube}}}}}
 
|has twitter={{#if:{{{twitter|}}}|http://twitter.com/{{{twitter}}}}}
 
|has twitter={{#if:{{{twitter|}}}|http://twitter.com/{{{twitter}}}}}
 
|has facebook={{#if:{{{facebook|}}}|http://facebook.com/{{{facebook}}}}}
 
|has facebook={{#if:{{{facebook|}}}|http://facebook.com/{{{facebook}}}}}
|has google plus={{#if:{{{gplus|}}}|http://plus.google.com/{{{gplus}}}}}
 
|has tl profile={{#if:{{{tlprofile|}}}|http://www.teamliquid.net/forum/profile.php?user={{{tlprofile}}}}}
 
|has reddit profile={{#if:{{{reddit|}}}|http://www.reddit.com/user/{{{reddit}}}}}
 
  
 
|has non-romanized name={{#if:{{{romanized_name|}}}|{{{name|}}}|}}
 
|has non-romanized name={{#if:{{{romanized_name|}}}|{{{name|}}}|}}

Revision as of 12:13, 9 October 2020

Documentation (view - edit)

[e][h] Terminator
Player Information
Name:
Jan Long
Birth:
May 27, 1981 (1981-05-27) (age 43)
Died:
May 31, 2020
First spawned:
2001
Country:
Status:
Active
Years Active (Player):
2001-Present
Team:
[[Denmark Team Denmark |Denmark Team Denmark]]
[[Denmark Danske Bank|Denmark Danske Bank]]
Clan:
Sponsor:
Danske Bank
Alternate IDs:
RoboCop, The_Terminat0r
Current Role(s):
Commander
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}}
}}