Difference between revisions of "Template:Player"

From QWiki
*>XantoM
m (Removed CHTV link.)
(Created page with "<includeonly><!-- Starting with checking if the hidden sort variable is set if so it'll go into a switch to output the right variable as hidden. -->{{#if:{{{hs|}}}|{{HiddenSor...")
Line 1: Line 1:
<!-- write a brief player introduction below and remove this line -->
+
<includeonly><!--
brief player introduction.
+
Starting with checking if the hidden sort variable is set if so it'll go into a switch to output the right variable as hidden.
<!-- Below, you see an entry for a Swedish Player. If you want to adjust the entry for, let's say, a Finnish player, exchange 'Swedish' with 'Finnish' and 'se' with 'fi'. foundquake is the year in which  the player started playing QuakeWorld. If some of the information is unknown about the player, ie secondary nick or cfg colours, leave the field blank. -->
+
-->{{#if:{{{hs|}}}|{{HiddenSort|{{#switch:{{lc:{{{hs}}}}}
== Information ==
+
    |race = {{{race|}}}
<!-- DO NOT EVER REMOVE ANY OF THE BELOW FIELDS IN THE TEMPLATE!! -->
+
    |name = {{{1|}}}
{{Player-info
+
    |flag = {{{flag/}}}
| realname = John Doe
+
    |{{{hs}}}}}}}}}<!--
| birthyear = 1900
 
| birthmonth = January
 
| birthday = 15
 
| nationality = Swedish
 
| shortnationality = se
 
| currentclan = full clan name
 
| clannationality = se
 
| adminof =
 
| aka = secondarynick
 
| foundquake = 1997
 
| retired = 2008
 
| color1 = 4
 
| color2 = 3
 
| favmap = [[dm2]]
 
}}
 
<!--
 
Additional info can include these or anything else you can come up with, simply remove the comment arrows
 
-->
 
<!-- * '''Trivia:''' -->
 
<!-- * '''Playing since:''' -->
 
<!-- * '''Other games:''' -->
 
  
== Clan history ==
+
Checking to see if flag variable is set and if so using an image link to display it.
* [[Image:flag_q.gif]] [[full clan name]]
+
-->{{#if:{{{flag|}}}|{{flag/{{lc:{{{flag}}}}}}}&nbsp;}}<!--
* [[Image:flag_q.gif]] [[full clan name]]
 
  
== Achievements ==
+
Checking if race is entered, if so using the RaceIconSmall template.
<!-- This can include personal and clan / team achievements as well as notable contributions to the scene -->
+
-->{{#if:{{{race|}}}|{{RaceIconSmall|{{{race}}}}}&nbsp;}}<!--
<!-- '''2006''' [[Image:flag_???.gif]] [[clan]] - 4on4 Champions of [[EQL Season 4]] - Division 2 --->
 
== Quotes ==
 
??
 
  
== External links ==
+
Checking if there is a link= variable. If there is use it, if not load the correct link from the player link list.
<!-- NOTE: please remove the {{player-stub}} tag below if you feel that everything noteworthy is covered in the entry -->
+
--><span style="white-space: pre">{{#if:{{{link|}}}|
{{player-stub}}
+
{{#switch: {{{link}}}
 
+
|false={{{1}}}
[[Category:Players]]
+
|true=[[{{{1}}}]]
<!-- NOTE: please change the correct country below so that you can be seen in the right category -->
+
|[[{{{link}}}|{{{1}}}]]}}
[[Category:Swedish/Finnish/Russian/??? Players]]
+
|{{#if:{{{1|}}}|[[{{{1}}}]]|}}}}</span><!--
 
+
--></includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
__NOTOC__
 

Revision as of 21:52, 18 December 2016

Documentation (view - edit)

Used for players and teams.

Example

This code:

{{player|Hib|flag=fi}}
{{player|}}
{{player|Kylo Ren|flag=se|link=shaka}}
{{player|Team Brazil|flag=br|link=abbr|abbr=GT, mur & lit}}
{{player|Ihasnowikipage|flag=us|link=false}}

Returns this:

Finland Hib - default (name as link)
- empty player with abbr To Be Decided.
Sweden Kylo Ren - custom link
Brazil Team Brazil - no link but abbreviation (abbr)
United States Ihasnowikipage - link=false

Usage

|
Name of the player.
|flag=
Country flag using two letter ISO code. Leave empty for TBD.
|link=
Put a link to another page (not equal to the name), or:
false
Player's name is not linked.
abbr
Player's name gets a dashed underline, hover to read content. Requires |abbr= to be none-empty.
|abbr=
Abbreviation text that will display on hover, could be an array of players that a team consist of. Requires |link=abbr to be set.