Template:Infobox Player/doc: Difference between revisions

From Hattrick
Jump to navigationJump to search
Lleida (talk | contribs)
mNo edit summary
Lleida (talk | contribs)
mNo edit summary
Line 54: Line 54:
; matchesu20, goalsu20, matchesnational, goalsnational: same statistics for U-20 and National Team
; matchesu20, goalsu20, matchesnational, goalsnational: same statistics for U-20 and National Team
;seasonscoachx, countryteamcoachx, teamcoachx: can be used like "Senior Career" if player has become a coach.
;seasonscoachx, countryteamcoachx, teamcoachx: can be used like "Senior Career" if player has become a coach.
== Example ==
{{Infobox Player
|                playername = Ed Cant
|                  playerid = 2931777
|                    image = Ed Cant (2931777).png
|                  fullname = Edward Cant
|                  nickname = Cant
|                birthyear = 1996
|                birthmonth = 10
|                  birthday = 3
|                  country = Canada
|                  position = [[Coach]], former [[forward]]
|              currentteam = {{Flagicon|COL}} [[Once Toques]]
|
|          countryyouthteam = CAN
|                youthteam = Edmonton Vikings
|
|                  seasons1 = 3 (15) - 6 (18)
|              countryteam1 = CAN
|                    team1 = Edmonton Vikings
|                  matches1 = 51
|                    goals1 = 30
|
|                  seasons2 = 7 (19) - 13 (25)
|              countryteam2 = CAN
|                    team2 = Barrington Barons
|                  matches2 = 96
|                    goals2 = 124
|
|                  seasons3 = 13 (25) - 15 (27)
|              countryteam3 = ESP
|                    team3 = Dark Moor
|                  matches3 = 33
|                    goals3 = 23
|
|                  seasons4 = 14 (27) - 16 (29)
|              countryteam4 = BEL
|                    team4 = squadra goaletta
|                  matches4 = 31
|                    goals4 = 19
|
|                  seasons5 = 17 (29) - 20 (32)
|              countryteam5 = PER
|                    team5 = Sport Alianza
|                  matches5 = 35
|                    goals5 = 6
|
|                  seasons6 = 21 (33) - 24 (36)
|              countryteam6 = COL
|                    team6 = Once Toques
|                  matches6 = 41
|                    goals6 = 42
|                 
|              totalmatches = 287
|                totalgoals = 244
|
|                matchesu20 = 13
|                  goalsu20 =
|          matchesnational = 10
|            goalsnational =
|
|            seasonscoach1 = 24 (36) - 31 (43)
|        countryteamcoach1 = COL
|                teamcoach1 = Once Toques
}}
Infobox Player of [[Ed Cant]].
<noinclude>
<noinclude>
[[Category:Template documentation]]
[[Category:Template documentation]]

Revision as of 11:52, 1 March 2012

Usage

{{Infobox Player
|                playername =
|                  playerid =
|                     image = <!--Just the name of the file, nothing else!-->
|                  fullname =
|                  nickname =
|                 birthyear = 
|                birthmonth = 
|                  birthday =
|                   country =
|                  position =
|               currentteam =
|
|          countryyouthteam =
|                 youthteam =
|
|                  seasons1 = 
|              countryteam1 = 
|                     team1 = 
|                  matches1 = 
|                    goals1 = 
|
|                  seasonsx = <!--If you want to add more teams, then this will be "seasons2", "countryteam2" and so on-->
|              countryteamx = 
|                     teamx = 
|                  matchesx = 
|                    goalsx = 
|
|                matchesu20 =
|                  goalsu20 =
|           matchesnational =
|             goalsnational =
|
|             seasonscoach1 = <!--If you want to add more teams, then this will be "seasonscoach2" and so on-->
|         countryteamcoach1 = 
|                teamcoach1 =
}}

Parameters

Almost all of the parameters are optional and will show in the template only when given a non-empty value.

playername
The name of the player.
playerid
The id number of the player in Hattrick.
image
Address to the image. It only works with images uploaded to htwiki. Use the name of the file, nothing else.
fullname
Full, long name of the player.
nickname
Nickname of the player.
birthyear, birthmonth, birthday
Use this to put player "hattrick" age. It is recommended to test first Template:Age because you have to know player's date of birth. This template automatically updates player to "hattrick" age.
country
The country of the player.
position
The position where the player is most lined up.
currentteam
Team of the player.
youthteam
Name of the youth team where the player was promoted.
seasonsx, countryteamx, teamx, matchesx, goalsx
Information about the player in every team he has played. For every team end this group of parameters with the same number (1,2,3...).
matchesu20, goalsu20, matchesnational, goalsnational
same statistics for U-20 and National Team
seasonscoachx, countryteamcoachx, teamcoachx
can be used like "Senior Career" if player has become a coach.