Difference between revisions of "Template:Documentation"

From QWiki
*>Exile
(New page: <!-- Automatically add {{template sandbox notice}} when on a /sandbox page. -->{{#ifeq: {{SUBPAGENAME}} | sandbox | <div style="clear: both;"></div>{{template sandbox notice}} }}<!-- A...)
 
(Created page with "{{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...")
Line 1: Line 1:
<!--
+
{{Infobox player
  Automatically add {{template sandbox notice}} when on a /sandbox page.
+
|id=GeT_RiGhT
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
+
|image=
| <div style="clear: both;"></div>{{template sandbox notice}}
+
|name=Christopher Alesund
}}<!--
+
|romanized_name=
  Automatically add {{pp-template}} to protected templates.
+
|team= Ninjas in Pyjamas
-->{{template other
+
|team_history={{TH|2007 - 2007 |Begrip}}
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
+
{{TH|2007 - 2007 |Ninjas in Pyjamas}}
  | {{pp-template}}
+
{{TH|2001 - 2001 |Lemondogs}}
  | {{#if: {{PROTECTIONLEVEL:edit}}
+
{{TH|2007-09-28 - 2007-10-28 |SK Gaming}}
    | {{pp-template}}
+
{{TH|2007-10-28 - 2008-02-23 |Meet Your Makers}}
    | <!--Not protected, or only semi-move-protected-->
+
{{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}}
  Start of green doc box.
+
{{TH|2012 - ''Present'' |Ninjas in Pyjamas}}
-->{{documentation/core2
+
|ids=
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
+
|country=Sweden
| heading-style = {{{heading-style|}}}
+
|status=Active
| content = {{{content|}}}
+
|role=rifler
| link box = {{{link box|}}}   <!--So "link box=off" works-->
+
|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}}
 +
}}
  
<!--Some namespaces must have the /doc, /sandbox and /testcases
+
This template produces an Infobox on a player page.
    in talk space-->
 
| docspace =
 
  {{#switch: {{SUBJECTSPACE}}
 
  | {{ns:0}}
 
  | {{ns:File}}
 
  | {{ns:MediaWiki}}
 
  | {{ns:Category}} = {{TALKSPACE}}
 
  | #default = {{SUBJECTSPACE}}
 
  }}
 
  
| 1 = {{{1|}}}  <!--Other docname, if fed-->
+
== Example ==
  
<!--The namespace is added in /core2-->
+
The code:
| template page =
+
<pre>
  {{#switch: {{SUBPAGENAME}}
+
{{Infobox player
  | sandbox
+
|id=GeT_RiGhT
  | testcases = {{BASEPAGENAME}}
+
|image=
  | #default = {{PAGENAME}}
+
|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}}
 +
}}
 +
</pre>
  
}}<!--End of green doc box--><noinclude>
+
==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''' = <nowiki>{{Birth date and age|YYYY|MM|DD}}</nowiki>
 +
* '''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 [http://weibo.com/u/3144657364 Jim]
 +
* '''tencent''' = Username on Tencent Weibo. igaming links to [http://t.qq.com/igaming 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 Tournaments|premier tournament]] wins or other achievements (MVP, All-Kill, Awards). Use [[Template:LeagueIconSmall]] and link to the specific event. For example: "<nowiki>{{LeagueIconSmall/gsl|link=2012 Global StarCraft II League Season 5}}</nowiki>" to produce: {{LeagueIconSmall/gsl|link=2012 Global StarCraft II League Season 5}}
 +
* '''prize_money''' = Prize money using the template [[Template:PM]]. For example: <nowiki>{{PM|YYYY|amount}}</nowiki>
 +
* '''team_history''' = Team History. Use [[Template:TH]]. For example: "<nowiki>{{TH|2010-09-07 - '''Present'''|Evil Geniuses}}</nowiki>
 +
* '''retired''' = The date the player has retired. Leave blank if still active
  
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
<noinclude>[[Category:Template Documentation Pages]]</noinclude>
</noinclude>
+
 
 +
==Copy / Paste==
 +
<pre style="display: inline-block;">
 +
{{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}}
 +
}}
 +
</pre>

Revision as of 20:15, 6 November 2016

Click here to upload a photo
Player Information
Name:
Christopher Alesund
Born:
May 29, 1990 (1990-05-29) (age 34)
Role:
rifler
Country:
Status:
Active
Years Active (Player):
2003-Present
Team:
Ninjas in Pyjamas
Links

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: Template:LeagueIconSmall/gsl
  • 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}}
}}