Difference between revisions of "Template:Infobox F1 driver/doc"

From blackwiki
Jump to navigation Jump to search
imported>LOL
m (→‎Syntax: "{{F1 driver"→"{{Infobox F1 driver")
imported>DH85868993
(new calendar year update)
 
(101 intermediate revisions by 28 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 +
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
  
==Syntax==
+
==Usage==
: Example: [[Fernando Alonso]]
+
{{parameter names example
 +
|name|image|image_size|alt|caption|birth_name|birth_date|birth_place|death_date|death_place|nationality|years|teams|team|2021 Team|2022 Team|car_number|races|championships|wins|podiums|points|poles|fastest_laps|first_race|first_win|last_win|last_race|last_position|last_season|bf1_years|bf1_races|bf1_championships|bf1_wins|bf1_podiums|bf1_points|bf1_poles|bf1_fastest_laps|website|signature|signature_size|signature_alt|module1|module2|module3|module4|module5|updated}}<pre style=overflow:auto; white-space:pre;>
 +
{{Infobox F1 driver
 +
|name              =
 +
|image            =
 +
|image_size        =
 +
|alt              =
 +
|caption          =
 +
|birth_name        =
 +
|birth_date        =
 +
|birth_place      =
 +
|death_date        =
 +
|death_place      =
 +
|nationality      =
 +
|years            =
 +
|teams            =  <!-- or |team =    See "Teams field" section below -->
 +
|2021 Team        =
 +
|car_number        = 
 +
|races            =  <!-- number of races *entered* optionally followed by number of starts in brackets, e.g. 75 (74 starts) -->
 +
|championships    =
 +
|wins              =
 +
|podiums          =
 +
|points            =
 +
|poles            =
 +
|fastest_laps      =
 +
|first_race        = <!-- first race *entered* -->
 +
|first_win        =
 +
|last_win          =
 +
|last_race        = <!-- last (or, for current drivers, latest) race *entered* -->
 +
|last_season      = <!-- last *completed* season in which the driver competed -->
 +
|last_position    = <!-- championship position and points scored in that season -->
 +
|bf1_years        =
 +
|bf1_races        =
 +
|bf1_championships =
 +
|bf1_wins          =
 +
|bf1_podiums      =
 +
|bf1_points        =
 +
|bf1_poles        =
 +
|bf1_fastest_laps  =
 +
|website          =
 +
|signature        =
 +
|signature_size    =
 +
|module            =
 +
|module2          =
 +
|module3          =
 +
|module4          =
 +
|module5          =
 +
|updated          =
 +
}}</pre>{{-}}
 +
 
 +
For filling in the updated parameter, use <code><nowiki>{{subst:Date}}</nowiki></code> or <code><nowiki>{{subst:Date|2=mdy}}</nowiki></code>.
 +
 
 +
== Examples ==
 +
 
 +
=== Sebastian Vettel ===
 +
{{Infobox F1 driver
 +
| name            = [[Sebastian Vettel]]
 +
| image          = Sebastian Vettel 2015 Malaysia podium 2.jpg
 +
| caption        = Vettel in 2015
 +
| nationality    = {{flagicon|DEU}} German
 +
| birth_date      = {{birth date and age|1987|7|3|df=y}}
 +
| birth_place    = [[Heppenheim]], [[West Germany]]
 +
| 2021 Team      = [[Aston Martin F1 Team|Aston Martin]]-[[Mercedes AMG High Performance Powertrains|Mercedes]]
 +
| car_number      = 5
 +
| races          = {{F1stat|VET|entries}} ({{F1stat|VET|starts}} starts)
 +
| championships  = 4 ({{F1|2010}}, {{F1|2011}}, {{F1|2012}}, {{F1|2013}})
 +
| wins            = {{F1stat|VET|wins}}
 +
| podiums        = {{F1stat|VET|podiums}}
 +
| points          = {{F1stat|VET|careerpoints}}
 +
| poles          = {{F1stat|VET|poles}}
 +
| fastest_laps    = {{F1stat|VET|fastestlaps}}
 +
| first_race      = [[2007 United States Grand Prix]]
 +
| first_win      = [[2008 Italian Grand Prix]]
 +
| last_win        = [[2018 Belgian Grand Prix]]
 +
| last_race      = {{Latest F1GP}}
 +
| last_season    = 2018
 +
| last_position  = 2nd (320 pts)
 +
}}<pre style=overflow:auto; white-space:pre;>
 +
{{Infobox F1 driver
 +
| name            = Sebastian Vettel
 +
| image          = Sebastian Vettel 2015 Malaysia podium 2.jpg
 +
| caption        = Vettel in 2015
 +
| nationality    = {{flagicon|DEU}} German
 +
| birth_date      = {{birth date and age|1987|7|3|df=y}}
 +
| birth_place    = [[Heppenheim]], [[West Germany]]
 +
| 2021 Team      = [[Aston Martin F1 Team|Aston Martin]]-[[Mercedes AMG High Performance Powertrains|Mercedes]]
 +
| car_number      = 5
 +
| races          = {{F1stat|VET|entries}} ({{F1stat|VET|starts}} starts)
 +
| championships  = 4 ({{F1|2010}}, {{F1|2011}}, {{F1|2012}}, {{F1|2013}})
 +
| wins            = {{F1stat|VET|wins}}
 +
| podiums        = {{F1stat|VET|podiums}}
 +
| points          = {{F1stat|VET|careerpoints}}
 +
| poles          = {{F1stat|VET|poles}}
 +
| fastest_laps    = {{F1stat|VET|fastestlaps}}
 +
| first_race      = [[2007 United States Grand Prix]]
 +
| first_win      = [[2008 Italian Grand Prix]]
 +
| last_win        = [[2018 Belgian Grand Prix]]
 +
| last_race      = {{Latest F1GP}}
 +
| last_season    = 2018
 +
| last_position  = 2nd (320 pts)
 +
}}</pre>{{-}}
 +
 
 +
=== Ayrton Senna ===
 +
{{Infobox F1 driver
 +
| name            = [[Ayrton Senna]]
 +
| image          = Ayrton Senna Imola 1989 Cropped.jpg
 +
| caption        = Senna at the [[1989 San Marino Grand Prix]]
 +
| birth_name      = Ayrton Senna da Silva
 +
| birth_date      = {{birth date|1960|3|21|df=y}}
 +
| birth_place    = [[São Paulo]], Brazil
 +
| death_date      = {{death date and age|1994|5|1|1960|3|21|df=y}}
 +
| death_place    = [[Bologna]], Italy
 +
| nationality    = {{BRA}}ian
 +
| years          = {{F1|1984}}–{{F1|1994}}
 +
| teams          = [[Toleman]], [[Team Lotus|Lotus]], [[McLaren (racing)|McLaren]], [[WilliamsF1|Williams]]
 +
| races          = 162 (161 starts)
 +
| championships  = 3 ({{F1|1988}}, {{F1|1990}}, {{F1|1991}})
 +
| wins            = 41
 +
| podiums        = 80
 +
| points          = 610 (614)
 +
| poles          = 65
 +
| fastest_laps    = 19
 +
| first_race      = [[1984 Brazilian Grand Prix]]
 +
| first_win      = [[1985 Portuguese Grand Prix]]
 +
| last_win        = [[1993 Australian Grand Prix]]
 +
| last_race      = [[1994 San Marino Grand Prix]]
 +
}}<pre style=overflow:auto; white-space:pre;>
 +
{{Infobox F1 driver
 +
| name            = Ayrton Senna
 +
| image          = Ayrton Senna Imola 1989 Cropped.jpg
 +
| caption        = Senna at the [[1989 San Marino Grand Prix]]
 +
| birth_name      = Ayrton Senna da Silva
 +
| birth_date      = {{birth date|1960|3|21|df=y}}
 +
| birth_place    = [[São Paulo]], Brazil
 +
| death_date      = {{death date and age|1994|5|1|1960|3|21|df=y}}
 +
| death_place    = [[Bologna]], Italy
 +
| nationality    = {{BRA}}ian
 +
| years          = {{F1|1984}}–{{F1|1994}}
 +
| teams          = [[Toleman]], [[Team Lotus|Lotus]], [[McLaren (racing)|McLaren]], [[WilliamsF1|Williams]]
 +
| races          = 162 (161 starts)
 +
| championships  = 3 ({{F1|1988}}, {{F1|1990}}, {{F1|1991}})
 +
| wins            = 41
 +
| podiums        = 80
 +
| points          = 610 (614)
 +
| poles          = 65
 +
| fastest_laps    = 19
 +
| first_race      = [[1984 Brazilian Grand Prix]]
 +
| first_win      = [[1985 Portuguese Grand Prix]]
 +
| last_win        = [[1993 Australian Grand Prix]]
 +
| last_race      = [[1994 San Marino Grand Prix]]
 +
}}</pre>{{-}}
 +
 
 +
==First/Last race==
 +
The First/Last race fields should contain the first/last races for which the driver was *entered*, even if they didn't actually start the race.
 +
 
 +
==Teams field==
 +
The "Teams" field should be populated with a list of the ''chassis makes'' the driver drove, rather than a list of ''teams'' for which they drove. So, Alain Prost's infobox contains "Teams: [[McLaren]], [[Renault in Formula One|Renault]], [[Scuderia Ferrari|Ferrari]], [[Williams F1|Williams]]", rather than "Teams: [[McLaren|Marlboro Team McLaren]], [[Renault in Formula One|Equipe Renault Elf]], [[McLaren|Marlboro McLaren International]], [[McLaren|Honda Marlboro McLaren]], [[Scuderia Ferrari]], [[Williams F1|Canon Williams Renault]]". The main rationale for this is to keep the information in the infobox concise, noting that the team names are listed in the driver's F1 results table.
 +
 
 +
==BF1 fields==
 +
The "BF1" fields contain details of the driver's participation in  the [[British Formula One Championship]].
 +
 
 +
==Updates==
 +
Following the final race of the season, the "YYYY Team" field for the following season is added but the existing field for the just-completed season is retained until the end of the calendar year.
 +
 
 +
On 1 January, the "YYYY Team" field for the previous season is replaced with a hidden placeholder for the season following the new season (e.g. on 1 January 2018, the 2017 field was replaced with a placeholder for 2019). The placeholder is employed to avoid editors "helpfully" renumbering the fields to close up the gaps, only for the fields to have to be renumbered again at the end of the season.
 +
 
 +
== Use as a child template ==
 +
{{Infobox person module documentation|Infobox F1 driver| Years          | Team(s)        | Races          | Championships  }}
 +
 
 +
The template may also be used as a subsection of {{tl|Infobox racing driver}} as follows:
 
<pre>
 
<pre>
{{Infobox F1 driver
+
{{Infobox racing driver
| Name          = Fernando Alonso
+
| image          =
| Image         = Fernando Alonso 2008.jpg
+
| caption         =
| Caption      = Alonso at the [[2008 Canadian Grand Prix]]
+
| nationality    =
| Nationality  = {{flagicon|ESP}} [[Spain|Spanish]]
+
| birth_name      =
| 2009 Car number = TBA |
+
| birth_date      =
| 2009 Team      = [[Renault F1|Renault]]
+
| birth_place    =
| Races        = 123 (122 starts)
+
| titles          =
| Championships = 2 ([[2005 Formula One season|2005]], [[2006 Formula One season|2006]])
+
| title years    =
| Wins          = 21
+
| record template1 =
| Podiums      = 52
+
  {{Infobox F1 driver|child=yes
| Poles         = 17
+
  | Years         =
| Fastest laps = 11
+
  | Team(s)      =  
| First race    = [[2001 Australian Grand Prix]]
+
  | Races        =
| First win    = [[2003 Hungarian Grand Prix]]
+
  | Championships =
| Last win      = [[2008 Japanese Grand Prix]]
+
   }}
| Last race    = [[2008 Brazilian Grand Prix]]
 
| Last season   = 2008
 
| Last position = 5th (61 pts)
 
| Points        = 551
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 30: Line 196:
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
  
<includeonly>
+
== Tracking category ==
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
* {{clc|Pages using infobox F1 driver with unknown parameters}}
 +
 
 +
<includeonly>{{Basepage subpage|
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Formula One infobox templates|F1 driver]]
 
[[Category:Formula One infobox templates|F1 driver]]
 
[[Category:Racecar driver infobox templates|F1 driver]]
 
[[Category:Racecar driver infobox templates|F1 driver]]
 
+
[[Category:Biographical templates usable as a module|F1 driver]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
[[Category:Infobox templates with module parameter|F1 driver]]
[[cs:Šablona:Infobox Pilot F1]]
+
[[Category:Infobox templates with updated parameter]]
[[mk:Шаблон:Возач Ф1]]
+
[[Category:Templates that add a tracking category]]
[[id:Templat:Pembalap F1]]
+
}}</includeonly>
[[ja:Template:F1ドライバー]]
 
[[ms:Templat:Infobox F1 driver]]
 
[[no:Mal:F1 fører]]
 
[[pt:Predefinição:F1drive]]
 
[[ru:Шаблон:Пилот Формулы-1]]
 
</includeonly>
 

Latest revision as of 02:23, 1 January 2021

Usage

Template:Parameter names example

{{Infobox F1 driver
 |name              = 
 |image             = 
 |image_size        = 
 |alt               = 
 |caption           = 
 |birth_name        = 
 |birth_date        = 
 |birth_place       = 
 |death_date        = 
 |death_place       = 
 |nationality       = 
 |years             = 
 |teams             =  <!-- or |team =     See "Teams field" section below -->
 |2021 Team         =
 |car_number        =  
 |races             =  <!-- number of races *entered* optionally followed by number of starts in brackets, e.g. 75 (74 starts) -->
 |championships     = 
 |wins              = 
 |podiums           = 
 |points            = 
 |poles             = 
 |fastest_laps      = 
 |first_race        = <!-- first race *entered* -->
 |first_win         =
 |last_win          =
 |last_race         = <!-- last (or, for current drivers, latest) race *entered* -->
 |last_season       = <!-- last *completed* season in which the driver competed -->
 |last_position     = <!-- championship position and points scored in that season -->
 |bf1_years         = 
 |bf1_races         = 
 |bf1_championships = 
 |bf1_wins          = 
 |bf1_podiums       = 
 |bf1_points        = 
 |bf1_poles         = 
 |bf1_fastest_laps  = 
 |website           =
 |signature         = 
 |signature_size    = 
 |module            = 
 |module2           = 
 |module3           = 
 |module4           = 
 |module5           = 
 |updated           = 
}}

For filling in the updated parameter, use {{subst:Date}} or {{subst:Date|2=mdy}}.

Examples

Sebastian Vettel

Sebastian Vettel
Sebastian Vettel 2015 Malaysia podium 2.jpg
Vettel in 2015
Born (1987-07-03) 3 July 1987 (age 38)
Heppenheim, West Germany
Formula One World Championship career
NationalityGermany German
TeamScript error: No such module "If empty".
2021 teamAston Martin-Mercedes
Car number5
Entries258 (257 starts)
Championships4 (2010, 2011, 2012, 2013)
Wins53
Podiums121
Career points3018
Pole positions57
Fastest laps38
First entry2007 United States Grand Prix
First win2008 Italian Grand Prix
Last win2018 Belgian Grand Prix
Last entry2020 Abu Dhabi Grand Prix
2018 position2nd (320 pts)
{{Infobox F1 driver
| name            = Sebastian Vettel
| image           = Sebastian Vettel 2015 Malaysia podium 2.jpg
| caption         = Vettel in 2015
| nationality     = {{flagicon|DEU}} German
| birth_date      = {{birth date and age|1987|7|3|df=y}}
| birth_place     = [[Heppenheim]], [[West Germany]]
| 2021 Team       = [[Aston Martin F1 Team|Aston Martin]]-[[Mercedes AMG High Performance Powertrains|Mercedes]]
| car_number      = 5
| races           = {{F1stat|VET|entries}} ({{F1stat|VET|starts}} starts)
| championships   = 4 ({{F1|2010}}, {{F1|2011}}, {{F1|2012}}, {{F1|2013}})
| wins            = {{F1stat|VET|wins}}
| podiums         = {{F1stat|VET|podiums}}
| points          = {{F1stat|VET|careerpoints}}
| poles           = {{F1stat|VET|poles}}
| fastest_laps    = {{F1stat|VET|fastestlaps}}
| first_race      = [[2007 United States Grand Prix]]
| first_win       = [[2008 Italian Grand Prix]]
| last_win        = [[2018 Belgian Grand Prix]]
| last_race       = {{Latest F1GP}}
| last_season     = 2018
| last_position   = 2nd (320 pts)
}}

Ayrton Senna

Ayrton Senna
Ayrton Senna Imola 1989 Cropped.jpg
BornAyrton Senna da Silva
(1960-03-21)21 March 1960
São Paulo, Brazil
Died1 May 1994(1994-05-01) (aged 34)
Bologna, Italy
Formula One World Championship career
NationalityFile:Flag of Brazil.svg Brazilian
Active years19841994
TeamsScript error: No such module "If empty".
Entries162 (161 starts)
Championships3 (1988, 1990, 1991)
Wins41
Podiums80
Career points610 (614)
Pole positions65
Fastest laps19
First entry1984 Brazilian Grand Prix
First win1985 Portuguese Grand Prix
Last win1993 Australian Grand Prix
Last entry1994 San Marino Grand Prix
{{Infobox F1 driver
| name            = Ayrton Senna
| image           = Ayrton Senna Imola 1989 Cropped.jpg
| caption         = Senna at the [[1989 San Marino Grand Prix]]
| birth_name      = Ayrton Senna da Silva
| birth_date      = {{birth date|1960|3|21|df=y}}
| birth_place     = [[São Paulo]], Brazil
| death_date      = {{death date and age|1994|5|1|1960|3|21|df=y}}
| death_place     = [[Bologna]], Italy
| nationality     = {{BRA}}ian
| years           = {{F1|1984}}–{{F1|1994}}
| teams           = [[Toleman]], [[Team Lotus|Lotus]], [[McLaren (racing)|McLaren]], [[WilliamsF1|Williams]]
| races           = 162 (161 starts)
| championships   = 3 ({{F1|1988}}, {{F1|1990}}, {{F1|1991}})
| wins            = 41
| podiums         = 80
| points          = 610 (614)
| poles           = 65
| fastest_laps    = 19
| first_race      = [[1984 Brazilian Grand Prix]]
| first_win       = [[1985 Portuguese Grand Prix]]
| last_win        = [[1993 Australian Grand Prix]]
| last_race       = [[1994 San Marino Grand Prix]]
}}

First/Last race

The First/Last race fields should contain the first/last races for which the driver was *entered*, even if they didn't actually start the race.

Teams field

The "Teams" field should be populated with a list of the chassis makes the driver drove, rather than a list of teams for which they drove. So, Alain Prost's infobox contains "Teams: McLaren, Renault, Ferrari, Williams", rather than "Teams: Marlboro Team McLaren, Equipe Renault Elf, Marlboro McLaren International, Honda Marlboro McLaren, Scuderia Ferrari, Canon Williams Renault". The main rationale for this is to keep the information in the infobox concise, noting that the team names are listed in the driver's F1 results table.

BF1 fields

The "BF1" fields contain details of the driver's participation in the British Formula One Championship.

Updates

Following the final race of the season, the "YYYY Team" field for the following season is added but the existing field for the just-completed season is retained until the end of the calendar year.

On 1 January, the "YYYY Team" field for the previous season is replaced with a hidden placeholder for the season following the new season (e.g. on 1 January 2018, the 2017 field was replaced with a placeholder for 2019). The placeholder is employed to avoid editors "helpfully" renumbering the fields to close up the gaps, only for the fields to have to be renumbered again at the end of the season.

Use as a child template

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.

{{Infobox person
| name = 
| image = 
| caption = 
| birth_date = 
| birth_place = 
| <!-- etc. -->
| module = 
  {{Infobox F1 driver | child=yes <!-- or embed=yes or subbox=yes -->
  |  Years            = 
  |  Team(s)          = 
  |  Races            = 
  |  Championships    = 
  | <!-- etc. -->
  }}
}}

The template may also be used as a subsection of {{Infobox racing driver}} as follows:

{{Infobox racing driver
| image           =
| caption         =
| nationality     =
| birth_name      =
| birth_date      =
| birth_place     =
| titles          =
| title years     =
| record template1 =
  {{Infobox F1 driver|child=yes
  | Years         =
  | Team(s)       =  
  | Races         =
  | Championships =
  }}
}}

Microformat

Template:UF-hcard-person

Tracking category