Template talk:National football squad start/sandbox
Example
[edit]Below you now find examples of all the most commonly used "National football squad" template versions, that are available (or proposed to soon become available), for showing a current/seasonal/tournament related national team. Please check and try out all 4 examples, and then post your opinion if we should crown only one of them as a future common standard for all Wikipedia articles, at this discussion page: National football squad start
Example 1: England World Cup Team -shown by the unsortable version {{{nat fs start}}}
[edit]No. | Pos. | Player | Date of birth (age) | Caps | Club |
---|---|---|---|---|---|
1 | GK | David James | 1 August 1970 (aged 39) | 50 | Portsmouth |
2 | DF | Glen Johnson | 23 August 1984 (aged 25) | 22 | Liverpool |
3 | DF | Ashley Cole | 20 December 1980 (aged 29) | 78 | Chelsea |
4 | MF | Steven Gerrard | 30 May 1980 (aged 30) | 80 | Liverpool |
5 | DF | Michael Dawson | 18 November 1983 (aged 26) | 0 | Tottenham Hotspur |
6 | DF | John Terry | 7 December 1980 (aged 29) | 60 | Chelsea |
7 | MF | Aaron Lennon | 16 April 1987 (aged 23) | 17 | Tottenham Hotspur |
8 | MF | Frank Lampard | 20 June 1978 (aged 31) | 78 | Chelsea |
9 | FW | Peter Crouch | 30 January 1981 (aged 29) | 38 | Tottenham Hotspur |
10 | FW | Wayne Rooney | 24 October 1985 (aged 24) | 60 | Manchester United |
11 | MF | Joe Cole | 8 November 1981 (aged 28) | 54 | Chelsea |
12 | GK | Robert Green | 18 January 1980 (aged 30) | 10 | West Ham United |
13 | DF | Stephen Warnock | 12 December 1981 (aged 28) | 1 | Aston Villa |
14 | MF | Gareth Barry | 23 February 1981 (aged 29) | 36 | Manchester City |
15 | DF | Matthew Upson | 18 April 1979 (aged 31) | 19 | West Ham United |
16 | MF | James Milner | 4 January 1986 (aged 24) | 8 | Aston Villa |
17 | MF | Shaun Wright-Phillips | 25 October 1981 (aged 28) | 31 | Manchester City |
18 | DF | Jamie Carragher | 28 January 1978 (aged 32) | 36 | Liverpool |
19 | FW | Jermain Defoe | 7 October 1982 (aged 27) | 39 | Tottenham Hotspur |
20 | DF | Ledley King | 12 October 1980 (aged 29) | 20 | Tottenham Hotspur |
21 | FW | Emile Heskey | 11 January 1978 (aged 32) | 58 | Aston Villa |
22 | MF | Michael Carrick | 28 July 1981 (aged 28) | 22 | Manchester United |
23 | GK | Joe Hart | 19 April 1987 (aged 23) | 3 | Birmingham City |
Example 2: England World Cup Team -shown by the sortable version {{{nat fs start/sandbox}}}
[edit]This version is an exact duplication of Example 1, except that it now include sortable coloumns.
No. | Pos. | Player | Date of birth (age) | Caps | Club |
---|---|---|---|---|---|
1 | GK | David James | 1 August 1970 (aged 39) | 50 | Portsmouth |
2 | DF | Glen Johnson | 23 August 1984 (aged 25) | 22 | Liverpool |
3 | DF | Ashley Cole | 20 December 1980 (aged 29) | 78 | Chelsea |
4 | MF | Steven Gerrard | 30 May 1980 (aged 30) | 80 | Liverpool |
5 | DF | Michael Dawson | 18 November 1983 (aged 26) | 0 | Tottenham Hotspur |
6 | DF | John Terry | 7 December 1980 (aged 29) | 60 | Chelsea |
7 | MF | Aaron Lennon | 16 April 1987 (aged 23) | 17 | Tottenham Hotspur |
8 | MF | Frank Lampard | 20 June 1978 (aged 31) | 78 | Chelsea |
9 | FW | Peter Crouch | 30 January 1981 (aged 29) | 38 | Tottenham Hotspur |
10 | FW | Wayne Rooney | 24 October 1985 (aged 24) | 60 | Manchester United |
11 | MF | Joe Cole | 8 November 1981 (aged 28) | 54 | Chelsea |
12 | GK | Robert Green | 18 January 1980 (aged 30) | 10 | West Ham United |
13 | DF | Stephen Warnock | 12 December 1981 (aged 28) | 1 | Aston Villa |
14 | MF | Gareth Barry | 23 February 1981 (aged 29) | 36 | Manchester City |
15 | DF | Matthew Upson | 18 April 1979 (aged 31) | 19 | West Ham United |
16 | MF | James Milner | 4 January 1986 (aged 24) | 8 | Aston Villa |
17 | MF | Shaun Wright-Phillips | 25 October 1981 (aged 28) | 31 | Manchester City |
18 | DF | Jamie Carragher | 28 January 1978 (aged 32) | 36 | Liverpool |
19 | FW | Jermain Defoe | 7 October 1982 (aged 27) | 39 | Tottenham Hotspur |
20 | DF | Ledley King | 12 October 1980 (aged 29) | 20 | Tottenham Hotspur |
21 | FW | Emile Heskey | 11 January 1978 (aged 32) | 58 | Aston Villa |
22 | MF | Michael Carrick | 28 July 1981 (aged 28) | 22 | Manchester United |
23 | GK | Joe Hart | 19 April 1987 (aged 23) | 3 | Birmingham City |
Note: The template:birth date and age doesnt feature a hidden sortkey, to allow a possible arrange of the listed birth dates according to year-month-day. Thus, this coloumn remain unsorted in the squad table above. TheBigJagielka (talk) 14:01, 18 November 2010 (UTC)
Example 3: England World Cup Team -shown by the unsortable version {{{nat fs g start}}}
[edit]This version include a hidden note for all editors (shown as a part of the written command in the template code, the moment they click the EDIT link), that they have the task to always pre-sort the squad list in the order of: 1=Position (GK-DF-MF-FW), 2=Caps (descending), 3=Last name (ascending). Finally the version also differ from the previous two versions with the additional Goals coloumn, and by adding a thin blue indicative line between the four group of positions (to help both editors and readers to comply and understand with the concept of a pre-sorted table).
No. | Pos. | Player | Date of birth (age) | Caps | Goals | Club | ||
---|---|---|---|---|---|---|---|---|
1 | GK | David James | 1 August 1970 (aged 39) | 53 | 0 | Portsmouth | ||
12 | GK | Robert Green | 18 January 1980 (aged 30) | 11 | 0 | West Ham United | ||
23 | GK | Joe Hart | 19 April 1987 (aged 23) | 3 | 0 | Manchester City | ||
3 | DF | Ashley Cole | 20 December 1980 (aged 29) | 82 | 0 | Chelsea | ||
6 | DF | John Terry | 7 December 1980 (aged 29) | 64 | 6 | Chelsea | ||
18 | DF | Jamie Carragher | 28 January 1978 (aged 32) | 38 | 0 | Liverpool | ||
2 | DF | Glen Johnson | 23 August 1984 (aged 25) | 26 | 1 | Liverpool | ||
20 | DF | Ledley King | 12 October 1980 (aged 29) | 21 | 2 | Tottenham Hotspur | ||
15 | DF | Matthew Upson | 18 April 1979 (aged 31) | 21 | 2 | West Ham United | ||
13 | DF | Stephen Warnock | 12 December 1981 (aged 28) | 1 | 0 | Aston Villa | ||
5 | DF | Michael Dawson | 18 November 1983 (aged 26) | 0 | 0 | Tottenham Hotspur | ||
4 | MF | Steven Gerrard | 30 May 1980 (aged 30) | 84 | 17 | Liverpool | ||
8 | MF | Frank Lampard | 20 June 1978 (aged 31) | 82 | 20 | Chelsea | ||
11 | MF | Joe Cole | 8 November 1981 (aged 28) | 56 | 10 | Chelsea | ||
14 | MF | Gareth Barry | 23 February 1981 (aged 29) | 39 | 2 | Manchester City | ||
17 | MF | Shaun Wright-Phillips | 25 October 1981 (aged 28) | 34 | 6 | Manchester City | ||
22 | MF | Michael Carrick | 28 July 1981 (aged 28) | 22 | 0 | Manchester United | ||
7 | MF | Aaron Lennon | 16 April 1987 (aged 23) | 19 | 0 | Tottenham Hotspur | ||
16 | MF | James Milner | 4 January 1986 (aged 24) | 11 | 0 | Aston Villa | ||
10 | FW | Wayne Rooney | 24 October 1985 (aged 24) | 64 | 25 | Manchester United | ||
21 | FW | Emile Heskey | 11 January 1978 (aged 32) | 62 | 7 | Aston Villa | ||
19 | FW | Jermain Defoe | 7 October 1982 (aged 27) | 43 | 12 | Tottenham Hotspur | ||
9 | FW | Peter Crouch | 30 January 1981 (aged 29) | 40 | 21 | Tottenham Hotspur |
Note: The fact that the squad table is pre-sorted by the editors according to position+caps, mean that it will appear to most readers, as already being listed in a structured and well sorted way, which the majority would find no need to further sort. Danish Expert (talk) 04:12, 25 November 2010 (UTC)
Example 4: England World Cup Team -shown by the sortable version with a new age layout {{{nat fs g2 start}}}
[edit]This version is an exact duplication of Example 3.
Except that it now also feature a sort option for most of the coloumns, and include a changed data format with "Age" listed by year (instead of Birth date+Age).
{{nat fs g2 start}} <!-- To be pre-sorted by editors according to: 1=Position (GK-DF-MF-FW), 2=Caps (descending), 3=Last name (ascending) --> {{nat fs g2 player|no=1|pos=GK|name=[[David James (footballer, born 1970)|David James]]|age={{age|1970|8|1|2010|6|11}}|caps=53|goals=0|club=[[Portsmouth F.C.|Portsmouth]]|clubnat=ENG}} {{nat fs g2 player|no=12|pos=GK|name=[[Robert Green]]|age={{age|1980|1|18|2010|6|11}}|caps=11|goals=0|club=[[West Ham United F.C.|West Ham United]]|clubnat=ENG}} {{nat fs g2 player|no=23|pos=GK|name=[[Joe Hart]]|age={{age|1987|4|19|2010|6|11}}|caps=3|goals=0|club=[[Manchester City F.C.|Manchester City]]|clubnat=ENG}} |- ! colspan="1" bgcolor="#B0D3FB" align="left"| ! colspan="2" bgcolor="#B0D3FB" align="left"|<span style="display:none">2</span> ! colspan="1" bgcolor="#B0D3FB" align="left"| ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> |- {{nat fs g2 player|no=3|pos=DF|name=[[Ashley Cole]]|age={{age|1980|12|20|2010|6|11}}|caps=82|goals=0|club=[[Chelsea F.C.|Chelsea]]|clubnat=ENG}} {{nat fs g2 player|no=6|pos=DF|name=[[John Terry]]|age={{age|1980|12|7|2010|6|11}}|caps=64|goals=6|club=[[Chelsea F.C.|Chelsea]]|clubnat=ENG}} {{nat fs g2 player|no=18|pos=DF|name=[[Jamie Carragher]]|age={{age|1978|1|28|2010|6|11}}|caps=38|goals=0|club=[[Liverpool F.C.|Liverpool]]|clubnat=ENG}} {{nat fs g2 player|no=2|pos=DF|name=[[Glen Johnson]]|age={{age|1984|8|23|2010|6|11}}|caps=26|goals=1|club=[[Liverpool F.C.|Liverpool]]|clubnat=ENG}} {{nat fs g2 player|no=20|pos=DF|name=[[Ledley King]]|age={{age|1980|10|12|2010|6|11}}|caps=21|goals=2|club=[[Tottenham Hotspur F.C.|Tottenham Hotspur]]|clubnat=ENG}} {{nat fs g2 player|no=15|pos=DF|name=[[Matthew Upson]]|age={{age|1979|4|18|2010|6|11}}|caps=21|goals=2|club=[[West Ham United F.C.|West Ham United]]|clubnat=ENG}} {{nat fs g2 player|no=13|pos=DF|name=[[Stephen Warnock]]|age={{age|1981|12|12|2010|6|11}}|caps=1|goals=0|club=[[Aston Villa F.C.|Aston Villa]]|clubnat=ENG}} {{nat fs g2 player|no=5|pos=DF|name=[[Michael Dawson (footballer)|Michael Dawson]]|age={{age|1983|11|18|2010|6|11}}|caps=0|goals=0|club=[[Tottenham Hotspur F.C.|Tottenham Hotspur]]|clubnat=ENG}} |- ! colspan="1" bgcolor="#B0D3FB" align="left"| ! colspan="2" bgcolor="#B0D3FB" align="left"|<span style="display:none">4</span> ! colspan="1" bgcolor="#B0D3FB" align="left"| ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> |- {{nat fs g2 player|no=4|pos=MF|name=[[Steven Gerrard]] |age={{age|1980|5|30|2010|6|11}}|caps=84|goals=17|club=[[Liverpool F.C.|Liverpool]]|clubnat=ENG}} {{nat fs g2 player|no=8|pos=MF|name=[[Frank Lampard]] |age={{age|1978|6|20|2010|6|11}}|caps=82|goals=20|club=[[Chelsea F.C.|Chelsea]]|clubnat=ENG}} {{nat fs g2 player|no=11|pos=MF|name=[[Joe Cole]]|age={{age|1981|11|8|2010|6|11}}|caps=56|goals=10|club=[[Chelsea F.C.|Chelsea]]|clubnat=ENG}} {{nat fs g2 player|no=14|pos=MF|name=[[Gareth Barry]]|age={{age|1981|2|23|2010|6|11}}|caps=39|goals=2|club=[[Manchester City F.C.|Manchester City]]|clubnat=ENG}} {{nat fs g2 player|no=17|pos=MF|name=[[Shaun Wright-Phillips]]|age={{age|1981|10|25|2010|6|11}}|caps=34|goals=6|club=[[Manchester City F.C.|Manchester City]]|clubnat=ENG}} {{nat fs g2 player|no=22|pos=MF|name=[[Michael Carrick]]|age={{age|1981|7|28|2010|6|11}}|caps=22|goals=0|club=[[Manchester United F.C.|Manchester United]]|clubnat=ENG}} {{nat fs g2 player|no=7|pos=MF|name=[[Aaron Lennon]]|age={{age|1987|4|16|2010|6|11}}|caps=19|goals=0|club=[[Tottenham Hotspur F.C.|Tottenham Hotspur]]|clubnat=ENG}} {{nat fs g2 player|no=16|pos=MF|name=[[James Milner]]|age={{age|1986|1|4|2010|6|11}}|caps=11|goals=0|club=[[Aston Villa F.C.|Aston Villa]]|clubnat=ENG}} |- ! colspan="1" bgcolor="#B0D3FB" align="left"| ! colspan="2" bgcolor="#B0D3FB" align="left"|<span style="display:none">6</span> ! colspan="1" bgcolor="#B0D3FB" align="left"| ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> ! colspan="1" bgcolor="#B0D3FB" align="left"|<span style="display:none">-1</span> |- {{nat fs g2 player|no=10|pos=FW|name=[[Wayne Rooney]]|age={{age|1985|10|24|2010|6|11}}|caps=64|goals=25|club=[[Manchester United F.C.|Manchester United]]|clubnat=ENG}} {{nat fs g2 player|no=21|pos=FW|name=[[Emile Heskey]]|age={{age|1978|1|11|2010|6|11}}|caps=62|goals=7|club=[[Aston Villa F.C.|Aston Villa]]|clubnat=ENG}} {{nat fs g2 player|no=19|pos=FW|name=[[Jermain Defoe]]|age={{age|1982|10|7|2010|6|11}}|caps=43|goals=12|club=[[Tottenham Hotspur F.C.|Tottenham Hotspur]]|clubnat=ENG}} {{nat fs g2 player|no=9|pos=FW|name=[[Peter Crouch]]|age={{age|1981|1|30|2010|6|11}}|caps=40|goals=21|club=[[Tottenham Hotspur F.C.|Tottenham Hotspur]]|clubnat=ENG}} {{nat fs end}}
Note: The sort option indeed add some extra value to the squad table. But if a reader decide to use one of the provided sort options in the squad table above, the blue thin lines from the pre-sorted table will suddenly start also to become sorted, with a computed value of 0. However, this appear to be the only drawback of providing the additional sort option to the reader. This minor "layout problem" can of course easily be avoided, in case we decide not to add any blue thin lines in the pre-sorted table; but on the other hand, these lines also tend to serve a purpose of improving the "layout value" of the pre-sorted table (which most readers anyway will stick with, during their read of the table). So for now, the blue thin lines remain as a visible part of the squad table listed above. Danish Expert (talk) 04:12, 25 November 2010 (UTC)
Update: I just implemented a smart little workaround to the layout of the squad table, so that the blue thin lines no longer jump around in a random way, but now are getting sorted in a logical way by each coloumn. This mean that they now follow the correct position order, when sorted by that coloumn. Otherwise the 3 lines now posses a value of -1 for the other coloumns, so that those coloumns now always will sort them with the lowest value in the table. Danish Expert (talk) 13:42, 25 November 2010 (UTC)