Difference between revisions of "Template:Player"

From QWiki
*>Soma
m
 
m (css to center flag and name)
 
(102 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- write a brief player introduction below and remove this line -->
+
<includeonly><!--
brief player introduction.
 
<!-- 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.  -->
 
== Information ==
 
{{Player-info
 
| realname = John Doe
 
| birthyear = 1900
 
| birthmonth = January
 
| birthday = 15
 
| nationality = Swedish
 
| shortnationality = se
 
| currentclan = full clan name
 
| clannationality = se
 
| adminof =
 
| aka = secondarynick
 
| foundquake = 1997
 
| 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 ==
+
If flag is set - use an image link to display it.
* [[Image:flag_q.gif]] [[full clan name]]
+
-->{{#if:{{{flag|}}}|<span style="white-space:nowrap;vertical-align:baseline;position:relative;bottom:2px;">{{flag/{{lc:{{{flag}}}}}}}&nbsp;</span>|<span style="white-space:nowrap;vertical-align:baseline;">{{flag/tbd}}&nbsp;</span>}}<!--
* [[Image:flag_q.gif]] [[full clan name]]
 
  
== Achievements ==
+
Checking if there is a link= variable. If there is use it, if not load the correct link from the player link list. If abbr link=abbr, don't link but underline name and show content of abbr= on hover.
<!-- This can include personal and clan / team achievements as well as notable contributions to the scene -->
+
--><span style="white-space: pre">{{#if:{{{link|}}}|
<!-- '''2006''' [[Image:flag_???.gif]] [[clan]] - 4on4 Champions of [[EQL Season 4]] - Division 2 --->
+
{{#switch: {{{link}}}
== Quotes ==
+
|false={{{1}}}
??
+
|true=[[{{{1}}}]]
 +
|abbr={{abbr|{{{1|}}}|{{{abbr}}}}}
 +
|[[{{{link}}}|{{{1}}}]]}}
 +
|{{#if:{{{1|TBD}}}|[[{{{1|TBD}}}]]|{{abbr|TBD|To Be Decided}}}}
 +
|[[{{{1}}}]]}}</span><!--
  
== External links ==
+
</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
{{chtv}}
 
<!-- NOTE: please remove the {{player-stub}} tag below if you feel that everything noteworthy is covered in the entry -->
 
{{player-stub}}
 
 
 
[[Category:Players]]
 
<!-- NOTE: please change the correct country below so that you can be seen in the right category -->
 
[[Category:Swedish/Finnish/Russian/??? Players]]
 
 
 
__NOTOC__
 

Latest revision as of 20:37, 14 November 2024

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)
TBD TBD - 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.