Template:Football season player stats/doc

Parameters
All parameters are optional, but date and country are highly recommended.


 * country: The three letter FIFA country code of the country that the club plays in. For instance, for a club playing in English competitions, enter ENG.
 * date: Date for which the statistics are correct. Enter the date into this parameter exactly as you wish that date to be displayed. For instance, |date=26 December 2009 produces

Correct as of 26 December 2009.


 * number: If set, this parameter adds a column for player squad numbers. If the parameter is left blank, the column will not appear.
 * cup2: If set, this parameter adds columns for appearances and goals in a country's second cup competition, where applicable. If left blank, the columns will not appear.
 * continent: If set, this parameter adds columns for appearances and goals in continental competition(s), where applicable. If left blank, the columns will not appear.
 * playoff: If set, this parameter adds columns for appearances and goals if the club participates in a playoff system. If left blank, the columns will not appear.
 * other: This optional parameter should only be used for appearances in competitions not covered by any of the above, for instance the Community Shield or Football League Trophy in England. If set, it adds columns for appearances and goals in "other" competitions. If left blank, the columns will not appear.
 * nopics: If set, this parameter will remove the colours from the key, and replace [[Image:Yellow card.svg|13px|alt=A yellow card]] and [[Image:Red card.svg|13px|alt=A red card]] with Y and R respectively. If left blank, the colour and images will be used.
 * nosubs: This optional parameter should be used if you do not intend to differentiate between starting appearances and substitute appearances. Setting this parameter will remove the line "Starting appearances are listed first, followed by substitute appearances in parentheses where applicable."
 * nokey: set this parameter to disable the key altogether. Not recommended unless you intend to use an alternative key.

Sample output
Produces:


 * }

Produces:


 * }

Names
To sort players by their surnames, use sortname. Here are a few examples: Scott Loach Don Cowie Your Cat
 * Players whose name is their Wikipedia article, such as Scott Loach, would be entered as
 * Players whose Wikipedia article isn't their name, such as Don Cowie (footballer) would be entered as
 * Players who do not have a Wikipedia article, such as Your Cat, can be redlinked with

Alternatively, you may choose not to link them at all, by entering Your Cat

Numbers between one and nine
If a single-digit number does not sort correctly, use sort. For example, if a player has scored 4 goals, but the table sorts him above someone who has scored 23 goals, use 4.

Substitute appearances
To sort players who have made substitute appearances correctly, you will need to use sort. If a player has started five matches, and made three further substitute appearances, we want the sort function to know he has played eight games. This can be achieved by entering: 5(3)

which will display 5(3), but sort correctly.

Advanced sorting ("cheating")
If you want to ensure that players who have played the same number of games but have made more starts sort higher, you will need to "cheat" using sort. For example, Player A has started 14 games and made 3 sub appearances, Player B has started 17 games, and Player C has started 2 and made 15 sub appearances. The sort key can be used like this:

Creating a table that sorts like this:

Demonstration
This real-life example data is based on Watford statistics prior to their fixture on 26 December 2009, and brings together all of the concepts explained in this documentation.

Output:


 * style="text-align:left;" |1|| style="text-align:left;" |GK|| style="text-align:left;" |Scott Loach
 * 22||0||0||0||0||0||22||0||1||0||
 * style="text-align:left;" |2|| style="text-align:left;" |DF|| style="text-align:left;" |Adrian Mariappa
 * 22||1||0||0||2||0||24||1||4||0||
 * style="text-align:left;" |3|| style="text-align:left;" |DF|| style="text-align:left;" |Jure Travner
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |4|| style="text-align:left;" |MF|| style="text-align:left;" |Scott Severin
 * 4(5)||0||0||0||1||1||style="background:#98FB98"|5(5)*||1||0||0||
 * style="text-align:left;" |5|| style="text-align:left;" |MF||style="background:#faecc8" align="left"|Henri Lansbury‡
 * 14(3)||2||0||0||0(1)||0||style="background:#98FB98"|14(4)*||2||2||0||
 * style="text-align:left;" |6|| style="text-align:left;" |DF|| style="text-align:left;" |Jay DeMerit
 * 7(1)||0||0||0||0||0||7(1)||0||0||0||
 * style="text-align:left;" |7|| style="text-align:left;" |MF|| style="text-align:left;" |Don Cowie
 * 18||1||0||0||2||0||20||1||0||0||
 * style="text-align:left;" |8|| style="text-align:left;" |MF|| style="text-align:left;" |Tommy Smith†
 * 4||2||0||0||1||0||5||2||0||0||
 * style="text-align:left;" |9|| style="text-align:left;" |FW|| style="text-align:left;" |Tamás Priskin†
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |10|| style="text-align:left;" |FW|| style="text-align:left;" |Danny Graham
 * 22||7||0||0||2||0||style="background:#98FB98"|24*||7||2||0||
 * style="text-align:left;" |11|| style="text-align:left;" |FW||style="background:#faecc8" align="left"|Heiðar Helguson‡
 * 6(2)||5||0||0||0||0||6(2)||5||2||0||
 * style="text-align:left;" |11|| style="text-align:left;" |MF|| style="text-align:left;" |Jobi McAnuff†
 * 3||0||0||0||1||0||4||0||0||0||
 * style="text-align:left;" |12|| style="text-align:left;" |DF|| style="text-align:left;" |Lloyd Doyley
 * 22||1||0||0||2||0||24||1||2||0||
 * style="text-align:left;" |13|| style="text-align:left;" |GK|| style="text-align:left;" |Jonathan North
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |14|| style="text-align:left;" |MF|| style="text-align:left;" |Ross Jenkins
 * 13||0||0||0||1||0||14||0||1||0||
 * style="text-align:left;" |15|| style="text-align:left;" |MF|| style="text-align:left;" |Jon Harley
 * 9(11)||1||0||0||0(1)||0||9(12)||1||3||0||
 * style="text-align:left;" |16|| style="text-align:left;" |GK|| style="text-align:left;" |Richard Lee
 * 0||0||0||0||2||0||2||0||0||0||
 * style="text-align:left;" |17|| style="text-align:left;" |DF|| style="text-align:left;" |Dale Bennett
 * 3||0||0||0||0||0||3||0||1||0||
 * style="text-align:left;" |18|| style="text-align:left;" |FW|| style="text-align:left;" |Will Hoskins
 * 2(4)||1||0||0||1||0||3(4)||0||0||0||
 * style="text-align:left;" |19|| style="text-align:left;" |FW|| style="text-align:left;" |Liam Henderson
 * 0(6)||0||0||0||0(1)||0||0(7)||0||0||0||
 * style="text-align:left;" |20|| style="text-align:left;" |MF||style="background:#faecc8" align="left"|Tom Cleverley‡
 * 19||7||0||0||1||0||style="background:#98FB98"|20*||7||3||0||
 * style="text-align:left;" |21|| style="text-align:left;" |MF|| style="text-align:left;" |Lewis Young
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |22|| style="text-align:left;" |DF||style="background:#faecc8" align="left"|Craig Cathcart‡
 * 12||0||0||0||0||0||style="background:#98FB98"|12*||0||0||0||
 * style="text-align:left;" |23|| style="text-align:left;" |DF|| style="text-align:left;" |Jordan Parkes
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |24|| style="text-align:left;" |DF|| style="text-align:left;" |Mike Williamson†
 * 4||1||0||0||2||1||6||2||0||0||
 * style="text-align:left;" |25|| style="text-align:left;" |FW|| style="text-align:left;" |Nathan Ellington¤
 * 2(15)||1||0||0||0(1)||0||2(16)||1||2||1||
 * style="text-align:left;" |26|| style="text-align:left;" |MF|| style="text-align:left;" |John-Joe O'Toole¤
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |27|| style="text-align:left;" |DF|| style="text-align:left;" |Mat Sadler
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |28|| style="text-align:left;" |MF|| style="text-align:left;" |John Eustace
 * 15(3)||0||0||0||2||0||17(3)||1||2||0||
 * style="text-align:left;" |29|| style="text-align:left;" |MF|| style="text-align:left;" |Michael Bryan
 * 0(3)||0||0||0||0||0||style="background:#98FB98"|0(3)*||0||0||0||
 * style="text-align:left;" |30|| style="text-align:left;" |MF|| style="text-align:left;" |Rob Kiernan
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |31|| style="text-align:left;" |FW|| style="text-align:left;" |Marvin Sordell
 * 1(2)||0||0||0||0(1)||1||style="background:#98FB98"|1(3)*||1||1||0||
 * style="text-align:left;" |32|| style="text-align:left;" |MF|| style="text-align:left;" |Billy Gibson¤
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |33|| style="text-align:left;" |DF|| style="text-align:left;" |Lee Hodson
 * 18||0||0||0||2||0||20||0||2||0||
 * style="text-align:left;" |34|| style="text-align:left;" |DF|| style="text-align:left;" |Eddie Oshodi
 * 0(1)||0||0||0||0||0||style="background:#98FB98"|0(1)*||0||0||0||
 * style="text-align:left;" |35|| style="text-align:left;" |GK|| style="text-align:left;" |Bo Antal
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |36|| style="text-align:left;" |FW|| style="text-align:left;" |Kurtney Brooks
 * 0||0||0||0||0(1)||0||style="background:#98FB98"|0(1)*||0||0||0||
 * style="text-align:left;" |37|| style="text-align:left;" |GK|| style="text-align:left;" |Jonathan Bond
 * 0||0||0||0||0||0||0||0||0||0||
 * }
 * 2(15)||1||0||0||0(1)||0||2(16)||1||2||1||
 * style="text-align:left;" |26|| style="text-align:left;" |MF|| style="text-align:left;" |John-Joe O'Toole¤
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |27|| style="text-align:left;" |DF|| style="text-align:left;" |Mat Sadler
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |28|| style="text-align:left;" |MF|| style="text-align:left;" |John Eustace
 * 15(3)||0||0||0||2||0||17(3)||1||2||0||
 * style="text-align:left;" |29|| style="text-align:left;" |MF|| style="text-align:left;" |Michael Bryan
 * 0(3)||0||0||0||0||0||style="background:#98FB98"|0(3)*||0||0||0||
 * style="text-align:left;" |30|| style="text-align:left;" |MF|| style="text-align:left;" |Rob Kiernan
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |31|| style="text-align:left;" |FW|| style="text-align:left;" |Marvin Sordell
 * 1(2)||0||0||0||0(1)||1||style="background:#98FB98"|1(3)*||1||1||0||
 * style="text-align:left;" |32|| style="text-align:left;" |MF|| style="text-align:left;" |Billy Gibson¤
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |33|| style="text-align:left;" |DF|| style="text-align:left;" |Lee Hodson
 * 18||0||0||0||2||0||20||0||2||0||
 * style="text-align:left;" |34|| style="text-align:left;" |DF|| style="text-align:left;" |Eddie Oshodi
 * 0(1)||0||0||0||0||0||style="background:#98FB98"|0(1)*||0||0||0||
 * style="text-align:left;" |35|| style="text-align:left;" |GK|| style="text-align:left;" |Bo Antal
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |36|| style="text-align:left;" |FW|| style="text-align:left;" |Kurtney Brooks
 * 0||0||0||0||0(1)||0||style="background:#98FB98"|0(1)*||0||0||0||
 * style="text-align:left;" |37|| style="text-align:left;" |GK|| style="text-align:left;" |Jonathan Bond
 * 0||0||0||0||0||0||0||0||0||0||
 * }
 * style="text-align:left;" |34|| style="text-align:left;" |DF|| style="text-align:left;" |Eddie Oshodi
 * 0(1)||0||0||0||0||0||style="background:#98FB98"|0(1)*||0||0||0||
 * style="text-align:left;" |35|| style="text-align:left;" |GK|| style="text-align:left;" |Bo Antal
 * 0||0||0||0||0||0||0||0||0||0||
 * style="text-align:left;" |36|| style="text-align:left;" |FW|| style="text-align:left;" |Kurtney Brooks
 * 0||0||0||0||0(1)||0||style="background:#98FB98"|0(1)*||0||0||0||
 * style="text-align:left;" |37|| style="text-align:left;" |GK|| style="text-align:left;" |Jonathan Bond
 * 0||0||0||0||0||0||0||0||0||0||
 * }
 * style="text-align:left;" |37|| style="text-align:left;" |GK|| style="text-align:left;" |Jonathan Bond
 * 0||0||0||0||0||0||0||0||0||0||
 * }