Jump to content

Template talk:National football squad start/sandbox

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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 1GK David James (1970-08-01)1 August 1970 (aged 39) 50 England Portsmouth
2 2DF Glen Johnson (1984-08-23)23 August 1984 (aged 25) 22 England Liverpool
3 2DF Ashley Cole (1980-12-20)20 December 1980 (aged 29) 78 England Chelsea
4 3MF Steven Gerrard (1980-05-30)30 May 1980 (aged 30) 80 England Liverpool
5 2DF Michael Dawson (1983-11-18)18 November 1983 (aged 26) 0 England Tottenham Hotspur
6 2DF John Terry (1980-12-07)7 December 1980 (aged 29) 60 England Chelsea
7 3MF Aaron Lennon (1987-04-16)16 April 1987 (aged 23) 17 England Tottenham Hotspur
8 3MF Frank Lampard (1978-06-20)20 June 1978 (aged 31) 78 England Chelsea
9 4FW Peter Crouch (1981-01-30)30 January 1981 (aged 29) 38 England Tottenham Hotspur
10 4FW Wayne Rooney (1985-10-24)24 October 1985 (aged 24) 60 England Manchester United
11 3MF Joe Cole (1981-11-08)8 November 1981 (aged 28) 54 England Chelsea
12 1GK Robert Green (1980-01-18)18 January 1980 (aged 30) 10 England West Ham United
13 2DF Stephen Warnock (1981-12-12)12 December 1981 (aged 28) 1 England Aston Villa
14 3MF Gareth Barry (1981-02-23)23 February 1981 (aged 29) 36 England Manchester City
15 2DF Matthew Upson (1979-04-18)18 April 1979 (aged 31) 19 England West Ham United
16 3MF James Milner (1986-01-04)4 January 1986 (aged 24) 8 England Aston Villa
17 3MF Shaun Wright-Phillips (1981-10-25)25 October 1981 (aged 28) 31 England Manchester City
18 2DF Jamie Carragher (1978-01-28)28 January 1978 (aged 32) 36 England Liverpool
19 4FW Jermain Defoe (1982-10-07)7 October 1982 (aged 27) 39 England Tottenham Hotspur
20 2DF Ledley King (1980-10-12)12 October 1980 (aged 29) 20 England Tottenham Hotspur
21 4FW Emile Heskey (1978-01-11)11 January 1978 (aged 32) 58 England Aston Villa
22 3MF Michael Carrick (1981-07-28)28 July 1981 (aged 28) 22 England Manchester United
23 1GK Joe Hart (1987-04-19)19 April 1987 (aged 23) 3 England 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 1GK David James (1970-08-01)1 August 1970 (aged 39) 50 England Portsmouth
2 2DF Glen Johnson (1984-08-23)23 August 1984 (aged 25) 22 England Liverpool
3 2DF Ashley Cole (1980-12-20)20 December 1980 (aged 29) 78 England Chelsea
4 3MF Steven Gerrard (1980-05-30)30 May 1980 (aged 30) 80 England Liverpool
5 2DF Michael Dawson (1983-11-18)18 November 1983 (aged 26) 0 England Tottenham Hotspur
6 2DF John Terry (1980-12-07)7 December 1980 (aged 29) 60 England Chelsea
7 3MF Aaron Lennon (1987-04-16)16 April 1987 (aged 23) 17 England Tottenham Hotspur
8 3MF Frank Lampard (1978-06-20)20 June 1978 (aged 31) 78 England Chelsea
9 4FW Peter Crouch (1981-01-30)30 January 1981 (aged 29) 38 England Tottenham Hotspur
10 4FW Wayne Rooney (1985-10-24)24 October 1985 (aged 24) 60 England Manchester United
11 3MF Joe Cole (1981-11-08)8 November 1981 (aged 28) 54 England Chelsea
12 1GK Robert Green (1980-01-18)18 January 1980 (aged 30) 10 England West Ham United
13 2DF Stephen Warnock (1981-12-12)12 December 1981 (aged 28) 1 England Aston Villa
14 3MF Gareth Barry (1981-02-23)23 February 1981 (aged 29) 36 England Manchester City
15 2DF Matthew Upson (1979-04-18)18 April 1979 (aged 31) 19 England West Ham United
16 3MF James Milner (1986-01-04)4 January 1986 (aged 24) 8 England Aston Villa
17 3MF Shaun Wright-Phillips (1981-10-25)25 October 1981 (aged 28) 31 England Manchester City
18 2DF Jamie Carragher (1978-01-28)28 January 1978 (aged 32) 36 England Liverpool
19 4FW Jermain Defoe (1982-10-07)7 October 1982 (aged 27) 39 England Tottenham Hotspur
20 2DF Ledley King (1980-10-12)12 October 1980 (aged 29) 20 England Tottenham Hotspur
21 4FW Emile Heskey (1978-01-11)11 January 1978 (aged 32) 58 England Aston Villa
22 3MF Michael Carrick (1981-07-28)28 July 1981 (aged 28) 22 England Manchester United
23 1GK Joe Hart (1987-04-19)19 April 1987 (aged 23) 3 England 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)[reply]



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 1GK David James (1970-08-01)1 August 1970 (aged 39) 53 0 England Portsmouth
12 1GK Robert Green (1980-01-18)18 January 1980 (aged 30) 11 0 England West Ham United
23 1GK Joe Hart (1987-04-19)19 April 1987 (aged 23) 3 0 England Manchester City
3 2DF Ashley Cole (1980-12-20)20 December 1980 (aged 29) 82 0 England Chelsea
6 2DF John Terry (1980-12-07)7 December 1980 (aged 29) 64 6 England Chelsea
18 2DF Jamie Carragher (1978-01-28)28 January 1978 (aged 32) 38 0 England Liverpool
2 2DF Glen Johnson (1984-08-23)23 August 1984 (aged 25) 26 1 England Liverpool
20 2DF Ledley King (1980-10-12)12 October 1980 (aged 29) 21 2 England Tottenham Hotspur
15 2DF Matthew Upson (1979-04-18)18 April 1979 (aged 31) 21 2 England West Ham United
13 2DF Stephen Warnock (1981-12-12)12 December 1981 (aged 28) 1 0 England Aston Villa
5 2DF Michael Dawson (1983-11-18)18 November 1983 (aged 26) 0 0 England Tottenham Hotspur
4 3MF Steven Gerrard (1980-05-30)30 May 1980 (aged 30) 84 17 England Liverpool
8 3MF Frank Lampard (1978-06-20)20 June 1978 (aged 31) 82 20 England Chelsea
11 3MF Joe Cole (1981-11-08)8 November 1981 (aged 28) 56 10 England Chelsea
14 3MF Gareth Barry (1981-02-23)23 February 1981 (aged 29) 39 2 England Manchester City
17 3MF Shaun Wright-Phillips (1981-10-25)25 October 1981 (aged 28) 34 6 England Manchester City
22 3MF Michael Carrick (1981-07-28)28 July 1981 (aged 28) 22 0 England Manchester United
7 3MF Aaron Lennon (1987-04-16)16 April 1987 (aged 23) 19 0 England Tottenham Hotspur
16 3MF James Milner (1986-01-04)4 January 1986 (aged 24) 11 0 England Aston Villa
10 4FW Wayne Rooney (1985-10-24)24 October 1985 (aged 24) 64 25 England Manchester United
21 4FW Emile Heskey (1978-01-11)11 January 1978 (aged 32) 62 7 England Aston Villa
19 4FW Jermain Defoe (1982-10-07)7 October 1982 (aged 27) 43 12 England Tottenham Hotspur
9 4FW Peter Crouch (1981-01-30)30 January 1981 (aged 29) 40 21 England 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)[reply]



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)[reply]

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)[reply]