Difference between revisions of "Template:Infobox player"
From CS Codex
(5 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
Image | Image | ||
− | --> | + | -->{{#if:{{{image|}}}| |
<div> | <div> | ||
− | <div class="infobox-image">[[File:{{ | + | <div class="infobox-image">[[File:{{{image}}}|center|600px]]</div> |
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 139: | Line 139: | ||
-->{{#if:{{{team|}}}| | -->{{#if:{{{team|}}}| | ||
<div> | <div> | ||
− | <div class="infobox-cell-2 infobox-description">Team:</div> | + | <div class="infobox-cell-2 infobox-description">Team(s):</div> |
<div class="infobox-cell-2">{{#ifexist:{{{teamlink|{{{team}}}}}}|[[{{{teamlink|{{{team}}}}}}|{{{team}}}]]|{{{team}}}}}{{#if:{{{team2|}}}|<br>[[{{{team2link|{{{team2}}}}}}|{{{team2}}}]]}}</div> | <div class="infobox-cell-2">{{#ifexist:{{{teamlink|{{{team}}}}}}|[[{{{teamlink|{{{team}}}}}}|{{{team}}}]]|{{{team}}}}}{{#if:{{{team2|}}}|<br>[[{{{team2link|{{{team2}}}}}}|{{{team2}}}]]}}</div> | ||
</div> | </div> | ||
Line 152: | Line 152: | ||
| awp | | awp | ||
| awper = [[:Category:AWPers|{{#vardefineecho:role|AWPer}}]] | | awper = [[:Category:AWPers|{{#vardefineecho:role|AWPer}}]] | ||
− | | analyst = [[:Category:Analysts|{{#vardefineecho:role|Analyst}}]] | + | | analyst = [[:Category:Analysts]] ([[:Category:Analysts|{{#vardefineecho:role|Analyst}}]]) |
| observer = [[:Category:Observer|{{#vardefineecho:role|Observer}}]] | | observer = [[:Category:Observer|{{#vardefineecho:role|Observer}}]] | ||
| host = [[:Category:Host|{{#vardefineecho:role|Host}}]] | | host = [[:Category:Host|{{#vardefineecho:role|Host}}]] | ||
Line 163: | Line 163: | ||
| entryfragger = [[:Category:Riflers|Rifler]] ([[:Category:Entry fraggers|{{#vardefineecho:role|entry fragger}}]]) | | entryfragger = [[:Category:Riflers|Rifler]] ([[:Category:Entry fraggers|{{#vardefineecho:role|entry fragger}}]]) | ||
| expert = [[:Category:Expert|{{#vardefineecho:role|Expert}}]] | | expert = [[:Category:Expert|{{#vardefineecho:role|Expert}}]] | ||
− | |||
− | |||
− | |||
| rifle | | rifle | ||
| rifler = [[:Category:Riflers|{{#vardefineecho:role|Rifler}}]] | | rifler = [[:Category:Riflers|{{#vardefineecho:role|Rifler}}]] | ||
| coach = [[:Category:Coaches|{{#vardefineecho:role|Coach}}]] | | coach = [[:Category:Coaches|{{#vardefineecho:role|Coach}}]] | ||
− | |||
| caster = [[:Category:Casters|{{#vardefineecho:role|Caster}}]]}}<!-- | | caster = [[:Category:Casters|{{#vardefineecho:role|Caster}}]]}}<!-- | ||
-->{{#if:{{{role2|}}}|<br>{{#switch:{{{role2|}}} | -->{{#if:{{{role2|}}}|<br>{{#switch:{{{role2|}}} | ||
Line 185: | Line 181: | ||
| entryfragger = [[:Category:Riflers|Rifler]] ([[:Category:Entry fraggers|{{#vardefineecho:role2|entry fragger}}]]) | | entryfragger = [[:Category:Riflers|Rifler]] ([[:Category:Entry fraggers|{{#vardefineecho:role2|entry fragger}}]]) | ||
| expert = [[:Category:Expert|{{#vardefineecho:role2|Expert}}]] | | expert = [[:Category:Expert|{{#vardefineecho:role2|Expert}}]] | ||
− | |||
− | |||
− | |||
| rifle | | rifle | ||
| rifler = [[:Category:Riflers|{{#vardefineecho:role2|Rifler}}]] | | rifler = [[:Category:Riflers|{{#vardefineecho:role2|Rifler}}]] | ||
| coach = [[:Category:Coaches|{{#vardefineecho:role2|Coach}}]] | | coach = [[:Category:Coaches|{{#vardefineecho:role2|Coach}}]] | ||
− | |||
| caster = [[:Category:Casters|{{#vardefineecho:role2|Caster}}]]}}|}}</div> | | caster = [[:Category:Casters|{{#vardefineecho:role2|Caster}}]]}}|}}</div> | ||
</div> | </div> | ||
Line 211: | Line 203: | ||
<div class="infobox-cell-2 infobox-description">Sponsor:</div> | <div class="infobox-cell-2 infobox-description">Sponsor:</div> | ||
<div class="infobox-cell-2">{{{sponsor}}}</div> | <div class="infobox-cell-2">{{{sponsor}}}</div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 243: | Line 226: | ||
Games | Games | ||
− | -->{{#if:{{{cs | + | -->{{#if:{{{cs|}}} {{{css|}}} {{{csgo|}}}| |
<div> | <div> | ||
<div class="infobox-cell-2 infobox-description">Games:</div> | <div class="infobox-cell-2 infobox-description">Games:</div> | ||
− | <div class="infobox-cell-2">{{#if: {{{cs|}}} | ''[[Counter-Strike]]''{{#if: | + | <div class="infobox-cell-2">{{#if: {{{cs|}}} | ''[[Counter-Strike]]''{{#if: {{{css|}}} {{{csgo|}}} | <br> }}}}<!-- |
− | + | -->{{#if: {{{css|}}} | ''[[Counter-Strike: Source|Source]]''{{#if: {{{csgo|}}} | <br> }}}}<!-- | |
− | -->{{#if: {{{css|}}} | ''[[Counter-Strike: Source|Source]]''{{#if: | + | -->{{#if: {{{csgo|}}} | ''[[Counter-Strike: Global Offensive|Global Offensive]]''{{#if: {{{cs2|}}} | <br> }}}}<!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{cs2|}}} | ''[[Counter-Strike 2]]''}}</div> |
− | -->{{#if: {{{ | ||
</div> | </div> | ||
}}<!-- | }}<!-- | ||
Line 256: | Line 238: | ||
Icons | Icons | ||
− | -->{{#if:{{{site|}}} {{{tlstream|}}} {{{twitch|}}} {{{own3d|}}} {{{azubu|}}} {{{stream | + | -->{{#if:{{{site|}}} {{{tlstream|}}} {{{twitch|}}} {{{own3d|}}} {{{azubu|}}} {{{stream|}}} {{{youtube|}}} {{{twitter|}}} {{{facebook|}}} {{{instagram|}}} {{{weibo|}}} {{{gplus|}}} {{{tlprofile|}}} {{{reddit|}}} {{{fanclub|}}} {{{vk|}}} {{{esea|}}} {{{esl|}}} {{{faceit|}}} {{{steam|}}} {{{steam2|}}} {{{sk|}}} {{{cevo|}}} {{{playlist|}}}| |
<div> | <div> | ||
<div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Links</div> | <div class="infobox-header wiki-backgroundcolor-light infobox-header-2">Links</div> | ||
Line 264: | Line 246: | ||
--> {{#if:{{{site|}}}|[{{{site}}} <i class="lp-icon lp-home"></i>]}}<!-- | --> {{#if:{{{site|}}}|[{{{site}}} <i class="lp-icon lp-home"></i>]}}<!-- | ||
--> {{#if:{{{tlstream|}}}|[http://www.teamliquid.net/video/streams/{{{tlstream}}} <i class="lp-icon lp-tlstream"></i>]}}<!-- | --> {{#if:{{{tlstream|}}}|[http://www.teamliquid.net/video/streams/{{{tlstream}}} <i class="lp-icon lp-tlstream"></i>]}}<!-- | ||
− | --> {{#if:{{{twitch|}}}|[ | + | --> {{#if:{{{twitch|}}}|[http://www.twitch.tv/{{{twitch}}} <i class="lp-icon lp-twitch"></i>]}}<!-- |
--> {{#if:{{{stream|}}}|[{{{stream}}} <i class="lp-icon lp-stream"></i>]}}<!-- | --> {{#if:{{{stream|}}}|[{{{stream}}} <i class="lp-icon lp-stream"></i>]}}<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
--> {{#if:{{{youtube|}}}|[http://www.youtube.com/{{{youtube}}} <i class="lp-icon lp-youtube"></i>]}}<!-- | --> {{#if:{{{youtube|}}}|[http://www.youtube.com/{{{youtube}}} <i class="lp-icon lp-youtube"></i>]}}<!-- | ||
− | --> {{#if:{{{twitter|}}}|[ | + | --> {{#if:{{{twitter|}}}|[http://twitter.com/{{{twitter}}}/with_replies <i class="lp-icon lp-twitter"></i>]}}<!-- |
--> {{#if:{{{facebook|}}}|[http://facebook.com/{{{facebook}}} <i class="lp-icon lp-facebook"></i>]}}<!-- | --> {{#if:{{{facebook|}}}|[http://facebook.com/{{{facebook}}} <i class="lp-icon lp-facebook"></i>]}}<!-- | ||
--> {{#if:{{{instagram|}}}|[http://www.instagram.com/{{{instagram}}} <i class="lp-icon lp-instagram"></i>]}}<!-- | --> {{#if:{{{instagram|}}}|[http://www.instagram.com/{{{instagram}}} <i class="lp-icon lp-instagram"></i>]}}<!-- | ||
--> {{#if:{{{gplus|}}}|[http://plus.google.com/{{{gplus}}} <i class="lp-icon lp-google-plus"></i>]}}<!-- | --> {{#if:{{{gplus|}}}|[http://plus.google.com/{{{gplus}}} <i class="lp-icon lp-google-plus"></i>]}}<!-- | ||
--> {{#if:{{{vk|}}}|[http://www.vk.com/{{{vk}}} <i class="lp-icon lp-vkontakte"></i>]}}<!-- | --> {{#if:{{{vk|}}}|[http://www.vk.com/{{{vk}}} <i class="lp-icon lp-vkontakte"></i>]}}<!-- | ||
− | |||
--> {{#if:{{{tlprofile|}}}|[http://www.teamliquid.net/forum/profile.php?user={{{tlprofile}}} <i class="lp-icon lp-tlprofile"></i>]}}<!-- | --> {{#if:{{{tlprofile|}}}|[http://www.teamliquid.net/forum/profile.php?user={{{tlprofile}}} <i class="lp-icon lp-tlprofile"></i>]}}<!-- | ||
--> {{#if:{{{reddit|}}}|[http://www.reddit.com/user/{{{reddit}}} <i class="lp-icon lp-reddit"></i>]}}<!-- | --> {{#if:{{{reddit|}}}|[http://www.reddit.com/user/{{{reddit}}} <i class="lp-icon lp-reddit"></i>]}}<!-- | ||
Line 283: | Line 259: | ||
--> {{#if:{{{esl|}}}|[http://play.eslgaming.com/counterstrike/csgo/player/{{{esl}}} <i class="lp-icon lp-esl"></i>]}}<!-- | --> {{#if:{{{esl|}}}|[http://play.eslgaming.com/counterstrike/csgo/player/{{{esl}}} <i class="lp-icon lp-esl"></i>]}}<!-- | ||
--> {{#if:{{{faceit|}}}|[http://www.faceit.com/en/players/{{{faceit}}} <i class="lp-icon lp-faceit"></i>]}}<!-- | --> {{#if:{{{faceit|}}}|[http://www.faceit.com/en/players/{{{faceit}}} <i class="lp-icon lp-faceit"></i>]}}<!-- | ||
− | |||
− | |||
− | |||
--> {{#if:{{{steam|}}}|[http://steamcommunity.com/id/{{{steam}}} <i class="lp-icon lp-steam"></i>]}}<!-- | --> {{#if:{{{steam|}}}|[http://steamcommunity.com/id/{{{steam}}} <i class="lp-icon lp-steam"></i>]}}<!-- | ||
--> {{#if:{{{steam2|}}}|[http://steamcommunity.com/profiles/{{{steam2}}} <i class="lp-icon lp-steam"></i>]}}<!-- | --> {{#if:{{{steam2|}}}|[http://steamcommunity.com/profiles/{{{steam2}}} <i class="lp-icon lp-steam"></i>]}}<!-- | ||
--> {{#if:{{{sk|}}}|[http://sk-gaming.com/member/{{{sk}}} <i class="lp-icon lp-skgaming"></i>]}}<!-- | --> {{#if:{{{sk|}}}|[http://sk-gaming.com/member/{{{sk}}} <i class="lp-icon lp-skgaming"></i>]}}<!-- | ||
+ | --> {{#if:{{{cevo|}}}|[https://cevo.com/member/{{{cevo}}} <i class="lp-icon lp-cevo"></i>]}}<!-- | ||
--> {{#if:{{{fanclub|}}}|[{{{fanclub}}} <i class="lp-icon lp-fanclub"></i>]}}<!-- | --> {{#if:{{{fanclub|}}}|[{{{fanclub}}} <i class="lp-icon lp-fanclub"></i>]}}<!-- | ||
--> {{#if:{{{playlist|}}}|[{{{playlist}}} <i class="lp-icon lp-music"></i>]}}<!-- | --> {{#if:{{{playlist|}}}|[{{{playlist}}} <i class="lp-icon lp-music"></i>]}}<!-- | ||
Line 338: | Line 312: | ||
--></div> | --></div> | ||
− | |||
</div><!-- | </div><!-- | ||
Categories | Categories | ||
− | |||
{{#if:{{{id|}}}||[[Category:InfoboxIncomplete]]}} | {{#if:{{{id|}}}||[[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|}}}||[[Category:Players with no social media links]]}}<!-- To add to a hidden category to find players without social media links. | -->{{#if:{{{twitter|}}}{{{facebook|}}}{{{gplus|}}}||[[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:{{{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:{{{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:{{{steam|}}}{{{steam2|}}}||[[Category:Players without a steam profile]]}}<!-- To add to a hidden category to find players without a Steam Profile linked. | -->{{#if:{{{steam|}}}{{{steam2|}}}||[[Category:Players without a steam profile]]}}<!-- To add to a hidden category to find players without a Steam Profile linked. | ||
-->{{#if:{{{status|}}}||[[Category:Players without a status]]}}<!-- To add to a hidden category to find players without an activity status listed. | -->{{#if:{{{status|}}}||[[Category:Players without a status]]}}<!-- To add to a hidden category to find players without an activity status listed. | ||
− | |||
− | |||
− | |||
-->{{#switch:{{{role|}}} | -->{{#switch:{{{role|}}} | ||
|awp | |awp | ||
Line 365: | Line 335: | ||
|rifler=[[Category:Riflers]] | |rifler=[[Category:Riflers]] | ||
|coach=[[Category:Coaches]] | |coach=[[Category:Coaches]] | ||
− | |||
|caster=[[Category:Casters]] | |caster=[[Category:Casters]] | ||
|#default =}}<!-- | |#default =}}<!-- | ||
Line 380: | Line 349: | ||
|rifler=[[Category:Riflers]] | |rifler=[[Category:Riflers]] | ||
|coach=[[Category:Coaches]] | |coach=[[Category:Coaches]] | ||
− | |||
|caster=[[Category:Casters]] | |caster=[[Category:Casters]] | ||
|#default =}}<!-- | |#default =}}<!-- | ||
Line 392: | Line 360: | ||
}}[[Category:Players]] | }}[[Category:Players]] | ||
{{#if: {{{cs|}}} | [[Category:CS Players]] }} | {{#if: {{{cs|}}} | [[Category:CS Players]] }} | ||
− | |||
{{#if: {{{css|}}} | [[Category:CSS Players]] }} | {{#if: {{{css|}}} | [[Category:CSS Players]] }} | ||
− | |||
{{#if: {{{csgo|}}} | [[Category:CSGO Players]] }} | {{#if: {{{csgo|}}} | [[Category:CSGO Players]] }} | ||
− | {{#if: {{{ | + | {{#if: {{{cs2|}}} | [[Category:CS2 Players]] }} |
+ | {{#if: {{{cs|}}} {{{css|}}} {{{csgo|}}} {{{cs2|}}} || [[Category:Gameless Players]]}}<!-- | ||
--><!-- | --><!-- | ||
SMW | SMW | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--></includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude> | --></includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude> |
Latest revision as of 20:46, 1 November 2023
Documentation (view - edit)
GeT_RiGhT
Player Information
Name:
Christopher Alesund
Birth:
May 29, 1990
Country:
Status:
Active
Years Active (Player):
2003-Present
Team(s):
Ninjas in Pyjamas
Role(s):
Links
Prize Money
2008
$10,000
2009
$168,400
2010
$89,200
2011
$77,200
2012
$94,500
2012
$115,900
Total
$555,200
History
2007 - 2007
2007 - 2007
2001 - 2001
2007-09-28 - 2007-10-28
2007-10-28 - 2008-02-23
2008-02-23 - 2008-03-23
2008-03-27 - 2008-06-19
2009-01-19 - 2010-12-07
2010-12-07 - 2010-XX-XX
2012 - Present
This template produces an Infobox on a player page.
Example
The code:
{{Infobox player |id=GeT_RiGhT |image= |name=Christopher Alesund |romanized_name= |team= Ninjas in Pyjamas |team_history={{TH|2007 - 2007 |Begrip}} {{TH|2007 - 2007 |Ninjas in Pyjamas}} {{TH|2001 - 2001 |Lemondogs}} {{TH|2007-09-28 - 2007-10-28 |SK Gaming}} {{TH|2007-10-28 - 2008-02-23 |Meet Your Makers}} {{TH|2008-02-23 - 2008-03-23 |SK Gaming}} {{TH|2008-03-27 - 2008-06-19 |Blank}} {{TH|2009-01-19 - 2010-12-07 |Fnatic}} {{TH|2010-12-07 - 2010-XX-XX |SK Gaming}} {{TH|2012 - ''Present'' |Ninjas in Pyjamas}} |ids= |country=Sweden |status=Active |role=rifler |years_active= 2003-''Present'' |years_active_manager= |birth_date={{Birth date and age|1990|5|29}} |fanclub= |twitch=OfficialGeTRiGhT |twitter=GeT_RiGhTcs |facebook=OfficialGetright |achievements= |prize_money= {{PM|2008|$10,000}} {{PM|2009|$168,400}} {{PM|2010|$89,200}} {{PM|2011|$77,200}} {{PM|2012|$94,500}} {{PM|2012|$115,900}} {{PM|Total|$555,200}} }}
Parameters
These are the variables in the Player template:
- id = Main ID
- image = Picture
- caption = caption
- name = Real Name (If needed, use romanized_name for romanization)
- romanized_name = Romanized Real Name
- birth_date = {{Birth date and age|YYYY|MM|DD}}
- country = Country
- country2 = Secound country (If needed)
- team = Current Team
- teamlink = Link to current team's page if different from name (eg MVP_(team))
- clan = Current Clan
- role = The player's role in the team (rifler, entryfragger, support, lurker, awp)
- role2 = Additional role (if needed)
- sponsor = Player's personal sponsor
- ids = Alternative IDs
- site = Player's Homepage
- tlstream = Stream Name on TeamLiquid.net
- twitch = Username on Twitch
- azubu = Username on Azubu.tv
- stream = Link to stream (if not on Twitch or Own3D.tv)
- youtube = YouTube Channel Name
- twitter = Username on Twitter
- facebook = Username on Facebook
- weibo = User ID on Sina Weibo. 3144657364 links to Jim
- tencent = Username on Tencent Weibo. igaming links to igaming
- gplus = Username on Google Plus
- tlprofile = Username on TeamLiquid.net
- reddit = Username on Reddit.com
- fanclub = TeamLiquid.net Fanclub
- playlist = A playlist of the music the person plays on stream
- achievements = List of premier tournament wins or other achievements (MVP, All-Kill, Awards). Use Template:LeagueIconSmall and link to the specific event. For example: "{{LeagueIconSmall/gsl|link=2012 Global StarCraft II League Season 5}}" to produce:
- prize_money = Prize money using the template Template:PM. For example: {{PM|YYYY|amount}}
- team_history = Team History. Use Template:TH. For example: "{{TH|2010-09-07 - '''Present'''|Evil Geniuses}}
- retired = The date the player has retired. Leave blank if still active
Copy / Paste
{{Infobox player |id= |image= |caption= |name= |romanized_name= |birth_date= {{Birth date and age|YYYY|MM|DD}} |country= |team= |clan= |role= |sponsor= |ids= |site= |tlstream= |twitch= |azubu= |stream= |youtube= |twitter= |facebook= |weibo= |tencent= |gplus= |tlprofile= |reddit= |fanclub= |playlist= |achievements= |team_history= |retired= |prize_money= {{PM|YYYY|amount}} }}