Template:Infobox Player/doc: Difference between revisions

From Hattrick
Jump to navigationJump to search
Jhattara (talk | contribs)
Undo revision 176487 by Lleida (Talk) that's there for a reason, let's just make it to player templates
Lleida (talk | contribs)
No edit summary
Line 1: Line 1:
WORKING ON IT! DON'T EDIT PLEASE!
==Usage==
==Usage==
<pre>
<pre>
{{infobox club
{{Infobox Player
| teamname =  
|               playername =
| teamid =  
|                 playerid =
| logouri =  
|                     image = <!--Just the name of the file, nothing else!-->
| manager =  
|                  fullname =
| fullname =  
|                  nickname =
| shortname =  
|                  country =
| nickname =  
|                  position =
| region =  
|               currentteam =
| country =  
|
| league =  
|          countryyouthteam =
| league-pos =  
|                 youthteam =
| league-pos-last =  
|
| arena =  
|                  seasons1 =  
| arena-capacity =  
|             countryteam1 =  
| coach =  
|                     team1 =  
| coach-nat =  
|                 matches1 =  
| fanclub =  
|                   goals1 =  
| fanclub-size =  
|
| founded =  
|                  seasonsx = <!--If you want to add more teams, then this will be "seasons2", "countryteam2" and so on-->
|              countryteamx =
|                    teamx =
|                  matchesx =
|                    goalsx =
|                 
|              totalmatches =  
|               totalgoals =  
|
|                matchesu20 =
|                 goalsu20 =
|           matchesnational =
|             goalsnational =
|
|            seasonscoach1 = <!--If you want to add more teams, then this will be "seasonscoach2", "countryteamcoach2" and so on-->
|        countryteamcoach1 =  
|               teamcoach1 =
}}
}}
</pre>
</pre>
== Parameters==
== Parameters==
Almost all of the parameters are optional and will show in the template only when given a non-empty value.
Almost all of the parameters are optional and will show in the template only when given a non-empty value.
;teamname: The name of the team.
;playername: The name of the player.
;teamid: The id number of the team in Hattrick.
;playerid: The id number of the player in Hattrick.
;logouri: Address to the logo image. It is recommendable to use images uploaded to htwiki and use the '''<nowiki>[[File:Filenam]]</nowiki>''' syntax.
;image: Address to the image. It only works with images uploaded to htwiki. Use the name of the file, nothing else.
;manager: Username of the manager. Use parameter '''htuser''' if you want to link directly to the manager's user page in HT-wiki.
;fullname: Full, long name of the player.
;fullname: Full, long name of the club.
;nickname: Nickname of the player.
;shortname: Short name of the club.
;country: The country of the player.
;nickname: Nickname of the club.
;position: The position where the player is most lined up.
;region: Region the club plays in.
;currentteam: Team of the player.
;country: The country the club plays in.
;youthteam: Name of the youth team where the player was promoted.
;league: The group the club plays in.
;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...).
;league-pos: The current position of the club in the group.
;totalmatches, totalgoals: when added all the teams, you can add up to all matches and goals.
;league-pos-last: The position the club finished after last season.
; matchesu20, goalsu20, matchesnational, goalsnational: same statistics for U-20 and National Team
;arena: Name of the arena the club plays in.
;seasonscoachx, countryteamcoachx, teamcoachx: can be used like "Senior Carreer" if player has become a coach.
;arena-capacity: The capacity of the club's arena.
;coach: Name of the coach training the club.
;coach-nat: Nationality of the coach.
;fanclub: Name of the club's fanclub.
;fanclub-size: Size of the club's fanclub.
;founded: When the club was founded.
 
==Alternative parameters==
;manager: can be replaced with '''htuser''' to directly link the user into his HT-wiki user page.


<noinclude>
<noinclude>

Revision as of 14:22, 26 October 2010

Usage

{{Infobox Player
|                playername =
|                  playerid =
|                     image = <!--Just the name of the file, nothing else!-->
|                  fullname =
|                  nickname =
|                   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 = 
|                  
|              totalmatches = 
|                totalgoals = 
|
|                matchesu20 =
|                  goalsu20 =
|           matchesnational =
|             goalsnational =
|
|             seasonscoach1 = <!--If you want to add more teams, then this will be "seasonscoach2", "countryteamcoach2" 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.
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...).
totalmatches, totalgoals
when added all the teams, you can add up to all matches and goals.
matchesu20, goalsu20, matchesnational, goalsnational
same statistics for U-20 and National Team
seasonscoachx, countryteamcoachx, teamcoachx
can be used like "Senior Carreer" if player has become a coach.