Jump to content

Template:Infobox football biography/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎Usage: whitespace
update param names
Line 34: Line 34:
| nationalcaps(goals)1 =
| nationalcaps(goals)1 =
| medaltemplates =
| medaltemplates =
| pcupdate =
| club-update =
| ntupdate =
| nationalteam-update =
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 93: Line 93:
| manageryears1 =
| manageryears1 =
| managerclubs1 =
| managerclubs1 =
| pcupdate =
| club-update =
| ntupdate =
| ntupdate =
}}
}}
Line 143: Line 143:
; {{{manageryears1}}}, {{{manageryears2}}}... {{{manageryears20}}}: A list of years to accompany the above clubs.
; {{{manageryears1}}}, {{{manageryears2}}}... {{{manageryears20}}}: A list of years to accompany the above clubs.
; {{{medaltemplates}}}: Olympic medal templates can be added here. See {{tl|MedalOlympics}} for a list of templates. ''MedalTop'' and ''MedalBottom'' are not needed.
; {{{medaltemplates}}}: Olympic medal templates can be added here. See {{tl|MedalOlympics}} for a list of templates. ''MedalTop'' and ''MedalBottom'' are not needed.
; {{{pcupdate}}}: A timestamp of the last time the player's infobox career statistics were updated (not needed if the player has retired).
; {{{club-update}}}: A timestamp of the last time the player's infobox career statistics were updated (not needed if the player has retired).
; {{{ntupdate}}}: A timestamp of the last time the player's infobox national statistics were updated (not needed for former players).
; {{{ntupdate}}}: A timestamp of the last time the player's infobox national statistics were updated (not needed for former players).


Line 195: Line 195:
{{medalCountry|Templatia}}
{{medalCountry|Templatia}}
{{medalBronze|FIFA Template Cup|2001}}
{{medalBronze|FIFA Template Cup|2001}}
| pcupdate = ~~~~~
| club-update = ~~~~~
| ntupdate = ~~~~~
| nationalteam-update = ~~~~~
}}
}}
</pre>
</pre>
Line 241: Line 241:
{{medalCountry|Templatia}}
{{medalCountry|Templatia}}
{{medalBronze|FIFA Template Cup|2001}}
{{medalBronze|FIFA Template Cup|2001}}
| pcupdate = 11:07, 28 January 2009 (UTC)
| club-update = 11:07, 28 January 2009 (UTC)
| ntupdate = 11:07, 28 January 2009 (UTC)
| nationalteam-update = 11:07, 28 January 2009 (UTC)


}}
}}

Revision as of 09:26, 10 April 2009

{{Infobox Football biography 2}} is intended to provide a quick overview of a football player's or manager's details to enable a reader to extract the most oft-needed information without trawling through the article proper. It is most appropriately used for professional players and managers and should not be leveraged for amateurs, no matter their profile.

This is a fork of {{Infobox Football biography}} with the club appearances split into individual attributes for accessibility reasons.

Usage

Note: all the field names ending in 1 should be repeated for each team, e.g. youthyears1 and youthclubs1 should be followed by youthyears2 and youthclubs2 and so on, as needed.

For current players

{{Infobox Football biography 2
| playername           = 
| image                = 
| fullname             = 
| dateofbirth          = 
| cityofbirth          = 
| countryofbirth       = 
| height               = 
| position             = 
| currentclub          = 
| clubnumber           = 
| youthyears1          = 
| youthclubs1          = 
| years1               = 
| clubs1               = 
| caps(goals)1         = 
| nationalyears1       = 
| nationalteam1        = 
| nationalcaps(goals)1 = 
| medaltemplates       = 
| club-update          = 
| nationalteam-update  = 
}}

For former players

{{Infobox Football biography 2
| playername           = 
| image                = 
| fullname             = 
| dateofbirth          = 
| cityofbirth          = 
| countryofbirth       = 
| dateofdeath          = 
| cityofdeath          = 
| countryofdeath       = 
| height               = 
| position             = 
| youthyears1          = 
| youthclubs1          = 
| years1               = 
| clubs1               = 
| caps(goals)1         = 
| nationalyears1       = 
| nationalteam1        = 
| nationalcaps(goals)1 = 
| medaltemplates       =
}}

For players who have become managers

{{Infobox Football biography 2
| playername           = 
| image                = 
| fullname             = 
| dateofbirth          = 
| cityofbirth          = 
| countryofbirth       = 
| dateofdeath          = 
| cityofdeath          = 
| countryofdeath       = 
| height               = 
| position             = 
| currentclub          = 
| youthyears1          = 
| youthclubs1          = 
| years1               = 
| clubs1               = 
| caps(goals)1         = 
| nationalyears1       = 
| nationalteam1        = 
| nationalcaps(goals)1 = 
| medaltemplates       =
| manageryears1        = 
| managerclubs1        =  
| club-update          =
| ntupdate             =
}}

For managers who have not been players

{{Infobox Football biography 2
| playername           = 
| image                = 
| fullname             = 
| dateofbirth          = 
| cityofbirth          = 
| countryofbirth       = 
| dateofdeath          = 
| cityofdeath          = 
| countryofdeath       = 
| currentclub          = 
| manageryears1        = 
| managerclubs1        = 
}}

Parameters

All parameters are optional.

{{{playername}}}
The commonly used name of the player. If this is omitted, it will be inferred from the title of the article.
{{{fullname}}}
The player's complete name.
{{{image}}}
A picture of the player, ideally on the pitch in the strip of his most recent team (or the team the player is most well-known for, in the case of retirees).
{{{dateofbirth}}}
The player's date of birth - this should not be wikilinked. The format should be the same as the format used in the text; if a template is used to add the date, be sure to use the approprate parameters to format the date correctly.
{{{cityofbirth}}}
The location of the player's birth.
{{{countryofbirth}}}
The country of the player's birth.
{{{height}}}
The player's height in the units most common within the country he plays. (see Units of measurement)
{{{position}}}
The player's most common position (as a player). If a player is known for playing in multiple roles then the author should elect which is the most significant and explain the point more fully within the article.
{{{currentclub}}}
The club for which the player currently plays, or is employed by. If the player now works in a non-playing role at the club, add this after the club in brackets. For retired players not employed by any club or federation, leave blank.
{{{clubnumber}}}
The shirt number of the player at his current club.
{{{youthclubs1}}}, {{{youthclubs2}}}... {{{youthclubs20}}}
A list of youth clubs that the player has been a member of, one per attribute, earliest to latest.
{{{youthyears1}}}, {{{youthyears2}}}... {{{youthyears20}}}
A list of years that the player has been at each youth club, one per attribute, earliest to latest.
{{{years1}}}, {{{years2}}}... {{{years20}}}
A list of years that the player has been contracted at each professional club, one per attribute, earliest to latest.
{{{clubs1}}}, {{{clubs2}}}... {{{clubs20}}}
A list of professional clubs that the player has been contracted at, one per attribute, earliest to latest.
{{{caps(goals)1}}}, {{{caps(goals)2}}}... {{{caps(goals)20}}}
A list of appearances and (goals) that the player has been awarded in league competition only for each professional club (note: Playoff matches are not counted as league matches by most statistical sources (e.g. Soccerbase and the Sky Sports (Rothmans) Football Yearbook, so they should not be included in this infobox), one per attribute, earliest to latest. Use {{0}} with these fields, so that the rows align together.
{{{nationalyears1}}}, {{{nationalyears2}}}... {{{nationalyears20}}}
A list of years that the player has been a participant in each national team, one per attribute, earliest to latest.
{{{nationalteam1}}}, {{{nationalteam2}}}... {{{nationalteam20}}}
A list of international teams that the player has been a member of, including non-senior teams such as U21, one per attribute, earliest to latest.
{{{nationalcaps(goals)1}}}, {{{nationalcaps(goals)2}}}... {{{nationalcaps(goals)20}}}
A list of appearances and (goals) that the player has been awarded in all competitions and friendlies for each national team, one per attribute, earliest to latest. Again, {{0}} can be used.
{{{managerclubs1}}}, {{{managerclubs2}}}... {{{managerclubs20}}}
A list of clubs that the person has served with in the capacity of team manager. Please do not list positions other than team manager (such as assistant or coach positions, or director of football roles where this role is not considered managerial) unless that position is a significant part of the person's career; this will apply primarily to those with significant or perhaps primary experience in management. Clubs listed can be both local and national and should be restricted to those ordinarily considered notable in themselves.
{{{manageryears1}}}, {{{manageryears2}}}... {{{manageryears20}}}
A list of years to accompany the above clubs.
{{{medaltemplates}}}
Olympic medal templates can be added here. See {{MedalOlympics}} for a list of templates. MedalTop and MedalBottom are not needed.
{{{club-update}}}
A timestamp of the last time the player's infobox career statistics were updated (not needed if the player has retired).
{{{ntupdate}}}
A timestamp of the last time the player's infobox national statistics were updated (not needed for former players).

Example

Input Output
{{Infobox Football biography 2
| playername           = Tim Template
| image                = [[Image:Soccer goalkeeper.jpg|180px|Tim Template]]
| fullname             = Tim Tenerife Template
| dateofbirth          = {{birth date and age|1975|1|1}}
| cityofbirth          = Template City
| countryofbirth       = Templatia
| height               = 5 ft 11 in (1.80 m)
| position             = [[Striker]]
| currentclub          = Template City F.C.
| clubnumber           = 9
| youthyears1          = 1985–1987
| youthyears2          = 1988–1991
| youthclubs1          = Template Juniors
| youthclubs2          = Template Youth
| years1               = 1992–1998
| years2               = 1999–2000
| years3               = 2001
| years4               = 2002–
| clubs1               = Template United F.C.
| clubs2               = Template Rangers
| clubs3               = → Example F.C. (loan)
| clubs4               = Template City F.C.
| caps(goals)1         = {{0}}75 (26)
| caps(goals)2         = {{0}}32 (11)
| caps(goals)3         = {{0}}15 {{0}}(7)
| caps(goals)4         = 113 (46)
| nationalyears1       = 1991
| nationalyears2       = 1996–1998
| nationalyears3       = 1999–
| nationalteam1        = Examplia U16
| nationalteam2        = Templatia U21
| nationalteam3        = Templatia
| nationalcaps(goals)1 = {{0}}{{0}}1 {{0}}(0)
| nationalcaps(goals)2 = {{0}}{{0}}8 {{0}}(2)
| nationalcaps(goals)3 = {{0}}46 (13)
| medaltemplates       = {{medalCountry|Template City F.C.}}
                         {{medalGold|Template League|2003}}
                         {{medalSilver|Template Cup|2004}}
                         {{medalCountry|Templatia}}
                         {{medalBronze|FIFA Template Cup|2001}}
| club-update          = ~~~~~
| nationalteam-update  = ~~~~~
}}
Infobox football biography/doc
Tim Template
Personal information
Full name Tim Tenerife Template
Height 5 ft 11 in (1.80 m)
Position(s) Striker
Team information
Current team
Template City F.C.
Number 9
Youth career
1985–1987 Template Juniors
1988–1991 Template Youth
Senior career*
Years Team Apps (Gls)
1992–1998 Template United F.C.
1999–2000 Template Rangers
2001 → Example F.C. (loan)
2002– Template City F.C.
International career
1991 Examplia U16
1996–1998 Templatia U21
1999– Templatia
Medal record
Representing Template City F.C.
Gold medal – first place Template League 2003
Silver medal – second place Template Cup 2004
Representing Templatia
Bronze medal – third place FIFA Template Cup 2001
*Club domestic league appearances and goals, correct as of 11:07, 28 January 2009 (UTC)
‡ National team caps and goals, correct as of 11:07, 28 January 2009 (UTC)

Style guide

Try to always consider that an infobox exists to support an article and provide a quick synopsis of important facts. This becomes vital when considering that the amount of space available within an infobox is significantly less than that available outside of it.

As per the manual of style entry on linking, years should not be linked as they do not provide much benefit to the user.

As per the manual of style the player's height should be in the units most common within the country he plays. Units should be abbreviated in the infobox and spelt out in the article text. Use standard abbreviations when using symbols such as metre is m, centimetre is cm, inch is in (not " or ″), foot is ft (not ' or ′). Put a non-breaking space (&nbsp;) between the value and the unit symbol, for example 1.98&nbsp;m not 1.98m. Do not append an s for plurals of unit abbreviations. For example, kg, in, yd, lb not kgs, ins, yds, lbs.

Ideally, measurements should be presented using the {{convert}} template, which automatically converts units between formats and handles the presentation of units. In this case, use the |abbr=on flag to ensure that units are presented in their short forms.

Some examples of correct usage:

  • 2.00 m
  • 5 ft 10 in (1.78 m)
  • 1.78 m (5 ft 10 in)

and using {{convert}}:

  • {{convert|5|ft|10|in|abbr=on}} produces 5 ft 10 in (1.78 m)
  • {{convert|1.78|m|abbr=on}} produces 1.78 m (5 ft 10 in)

If providing a total row for goals scored, enter the Total in a new years column - do not add it in the clubs column.

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.