Difference between revisions of "Template:Infobox F1 driver"

From blackwiki
Jump to navigation Jump to search
(iw)
imported>X201
(Clean up duplicate template arguments using findargdups Please use preview when editing templates)
 
(205 intermediate revisions by 52 users not shown)
Line 1: Line 1:
{| class="toccolours vcard" style="clear:right; float:right; width:24em; margin-left:1em; text-align:left; font-size:90%;"
+
{{Infobox
|-
+
|child      = {{#if:{{{embed|}}}|yes}}{{{child|}}}
 +
|subbox      = {{{subbox|}}}
 +
|bodyclass  = biography vcard
 +
|headerstyle = background-color:gainsboro;
 +
|bodystyle  = width:24em;
 +
|title      = {{{name|{{{Name|}}}}}}|titleclass=fn
 +
|image      = {{#invoke:InfoboxImage|InfoboxImage|sizedefault=frameless
 +
|image      = {{{image|{{{Image|}}}}}}
 +
|size       = {{{image_size|}}}
 +
|upright    = {{{upright|{{{image_upright|1}}}}}}
 +
|alt        = {{{alt|}}}}}
 +
|caption    = {{{caption|}}}
 +
|label1      = Born
 +
| data1      = {{br separated entries|{{{birth_name|}}}|{{{birth_date|}}}|{{{birth_place|}}} }}
 +
|label2      = Died
 +
| data2      = {{br separated entries|{{{death_date|}}}|{{{death_place|}}} }}
  
<!-------------------------------------Personal details------------------------------------->
+
<!-- Formula One career -->
{{#if:{{{Name|}}}       |<!--then:-->
+
|header3    = {{#if:{{{years|{{{Years|}}}}}}{{{team|{{{Team|}}}}}}{{{teams|{{{Teams|{{{Team(s)|}}}}}}}}}{{{current_team|{{{current team|{{{Current team|{{{2021 Team|{{{2022 Team|}}}}}}}}}}}}}}} {{{car_number|{{{car number|{{{Car number|}}}}}}}}}{{{races|{{{Races|}}}}}}{{{championships|{{{Championships|}}}}}}{{{wins|{{{Wins|}}}}}}{{{podiums|{{{Podiums|}}}}}}{{{points|{{{Points|}}}}}}{{{poles|{{{Poles|}}}}}}{{{fastest_laps|{{{fastest laps|{{{Fastest laps|}}}}}}}}}{{{first_race|{{{first race|{{{First race|}}}}}}}}}{{{first_win|{{{first win|{{{First win|}}}}}}}}}{{{last_win|{{{last win|{{{Last win|}}}}}}}}}{{{last_race|{{{last race|{{{Last race|}}}}}}}}}{{{last_position|{{{last position|{{{Last position|}}}}}}}}}{{{last_season|{{{last season|{{{Last season|}}}}}}}}}|[[Formula One]] World Championship career}}
{{!}}colspan="2" class="fn" style="text-align:center; font-size:140%; font-weight:bold;"{{!}} {{{Name}}}
+
|label4      = [[FIA Super Licence#Nationality of drivers|Nationality]]
}}
+
| data4      = {{{nationality|{{{Nationality|}}}}}}
|-
+
|label5      = Active&nbsp;years
{{#if:{{{Image|}}}       |<!--then:-->
+
| data5      = {{{years|{{{Years|}}}}}}
{{!}}colspan="2" style="text-align:center;"{{!}} [[Image:{{{Image|}}}|{{{image-size|200px}}}]]
+
|label6      = {{#if:{{{teams|{{{Teams|{{{Team(s)|}}}}}}}}}|Teams|Team}}
}}
+
| data6      = {{if empty|{{{teams|{{{Teams|{{{Team(s)|}}}}}}}}}|{{{team|{{{Team|}}}}}}}}
|-
+
|label7      = Engines
{{#if:{{{Caption|}}}    |<!--then:-->
+
| data7      = {{{engines|{{{Engines|}}}}}}
{{!}}colspan="2" style="text-align:center;"{{!}} {{{Caption}}}
+
|class8      = org
}}
+
|label8      = {{CURRENTYEAR}} team
|- style="vertical-align:top;"
+
| data8      = {{{current_team|{{{current team|{{{Current team|}}}}}}}}}
{{#if:{{{Nationality|}}} |<!--then:-->
+
|label9      = 2021 team
! Nationality
+
| data9      = {{{2021 Team|}}}
{{!}} {{{Nationality}}}
+
|label10    = 2022 team
}}<!--
+
| data10    = {{{2022 Team|}}}
 +
|label11    = Car number
 +
| data11    = {{{car_number|{{{car number|{{{Car number|}}}}}}}}}
 +
|label12    = Entries
 +
| data12    = {{{races|{{{Races|}}}}}}
 +
|label13    = [[List of Formula One World Drivers' Champions|Championships]]
 +
| data13    = {{{championships|{{{Championships|}}}}}}
 +
|label14    = [[List of Formula One Grand Prix winners|Wins]]
 +
| data14    = {{{wins|{{{Wins|}}}}}}
 +
|label15    = Podiums
 +
| data15    = {{{podiums|{{{Podiums|}}}}}}
 +
|label16    = Career points
 +
| data16    = {{{points|{{{Points|}}}}}}
 +
|label17    = [[List of Formula One polesitters|Pole position]]s
 +
| data17    = {{{poles|{{{Poles|}}}}}}
 +
|label18    = [[List of Formula One drivers who set a fastest lap|Fastest lap]]s
 +
| data18    = {{{fastest_laps|{{{fastest laps|{{{Fastest laps|}}}}}}}}}
 +
|label19     = First entry
 +
| data19    = {{{first_race|{{{first race|{{{First race|}}}}}}}}}
 +
|label20    = First win
 +
| data20    = {{{first_win|{{{first win|{{{First win|}}}}}}}}}
 +
|label21    = Last win
 +
| data21    = {{{last_win|{{{last win|{{{Last win|}}}}}}}}}
 +
|label22    = Last entry
 +
| data22    = {{{last_race|{{{last race|{{{Last race|}}}}}}}}}
 +
|label23    = {{#if:{{{last_position|{{{last position|{{{Last position|}}}}}}}}}|[[{{{last_season|{{{last season|{{{Last season|}}}}}}}}} Formula One World Championship|{{{last_season|{{{last season|{{{Last season|}}}}}}}}}]] position}}
 +
| data23    = {{{last_position|{{{last position|{{{Last position|}}}}}}}}}
  
<!-----------------------------------------F1 career---------------------------------------->
+
<!-- British Formula One career -->
{{#if:{{{Years<includeonly>|</includeonly>}}} |<!--then:-->
+
|header24    = {{#if:{{{bf1_years|{{{bf1 years|{{{BF1 Years|}}}}}}}}}{{{bf1_races|{{{bf1 races|{{{BF1 Races|}}}}}}}}}{{{bf1_championships|{{{bf1 championships|{{{BF1 Championships|}}}}}}}}}{{{bf1_wins|{{{bf1 wins|{{{BF1 Wins|}}}}}}}}}{{{bf1_podiums|{{{bf1 podiums|{{{BF1 Podiums|}}}}}}}}}{{{bf1_points|{{{bf1 points|{{{BF1 Points|}}}}}}}}}{{{bf1_poles|{{{bf1 poles|{{{BF1 Poles|}}}}}}}}}{{{bf1_fastest_laps|{{{bf1 fastest laps|{{{BF1 Fastest laps|}}}}}}}}}|[[British Formula One Championship]] career}}
{{!-}}
+
|label25    = Active years
{{#if:{{{Name|}}}{{{Image|}}}{{{Nationality|}}} |<!--then:-->
+
| data25    = {{{bf1_years|{{{bf1 years|{{{BF1 Years|}}}}}}}}}
{{!}}colspan="2" style="padding:3pt 0;"{{!}} <hr/>
+
|label26    = Races
}}
+
| data26    = {{{bf1_races|{{{bf1 races|{{{BF1 Races|}}}}}}}}}
{{!-}}
+
|label27    = Championships
{{!}}colspan="2" style="background:#eee; text-align:center; font-size:110%;"{{!}} '''[[Formula One]] World Championship career'''
+
| data27    = {{{bf1_championships|{{{bf1 championships|{{{BF1 Championships|}}}}}}}}}
{{!-}} style="vertical-align:top;"
+
|label28    = Wins
! Active years
+
| data28    = {{{bf1_wins|{{{bf1 wins|{{{BF1 Wins|}}}}}}}}}
{{!}} {{{Years}}}
+
|label29    = Podium finishes
{{!-}} style="vertical-align:top;"
+
| data29    = {{{bf1_podiums|{{{bf1 podiums|{{{BF1 Podiums|}}}}}}}}}
! Teams
+
|label30    = Career points
{{!}} {{{Team(s)|}}}{{{Teams|<noinclude>{{{Teams}}}</noinclude>}}}
+
| data30    = {{{bf1_points|{{{bf1 points|{{{BF1 Points|}}}}}}}}}
{{!-}} style="vertical-align:top;"
+
|label31    = [[Pole position]]s
! Races
+
| data31    = {{{bf1_poles|{{{bf1 poles|{{{BF1 Poles|}}}}}}}}}
{{!}} {{{Races}}}
+
|label32    = [[Fastest lap]]s
{{!-}} style="vertical-align:top;"
+
| data32    = {{{bf1_fastest_laps|{{{bf1 fastest laps|{{{BF1 Fastest laps|}}}}}}}}}
! [[List of Formula One World Drivers' Champions|Championships]]
+
|label33    = Signature
{{!}} {{{Championships|0}}}
+
| data33    = {{#invoke:InfoboxImage|InfoboxImage|sizedefault=85px
{{!-}} style="vertical-align:top;"
+
|image      = {{{signature|}}}
! Wins
+
|size        = {{{signature_size|}}}
{{!}} {{{Wins|0}}}
+
|alt        = {{{signature alt|{{{signature_alt|}}}}}}}}
{{!-}} style="vertical-align:top;"
+
|label39    = Website
!style="white-space:nowrap;"{{!}} Podium finishes{{spaces|3}}
+
|data39      = {{{website|{{{homepage|{{{URL|{{{url|}}}}}}}}}}}}
{{!}} {{{Podiums|0}}}
+
| data34    = {{{module|{{{module1|{{{record template1|{{{career template1|}}}}}}}}}}}}
{{!-}} style="vertical-align:top;"
+
| data35    = {{{module2|{{{record template2|{{{career template2|}}}}}}}}}
{{#if:{{{Points|}}}     |<!--then:-->
+
| data36    = {{{module3|{{{record template3|{{{career template3|}}}}}}}}}
! Career points
+
| data37    = {{{module4|{{{record template4|{{{career template4|}}}}}}}}}
{{!}} {{{Points}}}
+
| data38    = {{{module5|{{{record template5|{{{career template5|}}}}}}}}}
}}
+
|below      = {{#if:{{{updated|{{{Updated|}}}}}}|Last updated on: {{{updated|{{{Updated|}}}}}}.}}
{{!-}} style="vertical-align:top;"
 
! [[Pole position]]s
 
{{!}} {{{Poles|0}}}
 
{{!-}} style="vertical-align:top;"
 
! [[Fastest lap]]s
 
{{!}} {{{Fastest laps|0}}}
 
{{!-}} style="vertical-align:top;"
 
! First race
 
{{!}} {{{First race}}}
 
{{!-}} style="vertical-align:top;"
 
{{#if:{{{First win|}}}   |<!--then:-->
 
! First win
 
{{!}} {{{First win}}}
 
}}
 
{{!-}} style="vertical-align:top;"
 
{{#if:{{{Last win|}}}   |<!--then:-->
 
! Last win
 
{{!}} {{{Last win}}}
 
}}
 
{{!-}} style="vertical-align:top;"
 
! Last race
 
{{!}} {{{Last race}}}
 
 
}}<!--
 
}}<!--
 
+
-->{{#invoke:Check for unknown parameters | check | ignoreblank = y | unknown = {{Main other|[[Category:Pages using infobox F1 driver with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview = Page using [[Template:Infobox F1 driver]] with unknown parameter "_VALUE_" | embed | child | subbox | name | Name | image | Image | image_size | upright | image_upright | alt | caption | birth_name | birth_date | birth_place | death_date | death_place | nationality | Nationality | years | Years | teams | Teams | Team(s) | team | Team | engines | Engines | current_team | current team | Current team | 2021 Team | 2022 Team | car_number | car number | Car number | races | Races | championships | Championships | wins | Wins | podiums | Podiums | points | Points | poles | Poles | fastest_laps | fastest laps | Fastest laps | first_race | first race | First race | first_win | first win | First win | last_win | last win | Last win | last_race | last race | Last race | last_position | last position | Last position | last_season | last season | Last season | bf1_years | bf1 years | BF1 Years | bf1_races | bf1 races | BF1 Races | bf1_championships | bf1 championships | BF1 Championships | bf1_wins | bf1 wins | BF1 Wins | bf1_podiums | bf1 podiums | BF1 Podiums | bf1_points | bf1 points | BF1 Points | bf1_poles | bf1 poles | BF1 Poles | bf1_fastest_laps | bf1 fastest laps | BF1 Fastest laps | signature | signature_size | signature alt | signature_alt | website | module | module1 | module2 | module3 | module4 | module5 | record template1 | record template2 | record template3 | record template4 | record template5 | career template1 | career template2 | career template3 | career template4 | career template5 | updated | Updated
<!----------------------------------------BF1 career---------------------------------------->
+
}}<noinclude>
{{#if:{{{BF1 Years<includeonly>|</includeonly>}}} |<!--then:-->
+
{{Documentation}}<!-- place category and language links on the /doc sub-page, not here -->
{{!-}}
 
{{#if:{{{Years<includeonly>|</includeonly>}}} |<!--then:-->
 
{{!}}colspan="2" style="padding:3pt 0;"{{!}} <hr/>
 
}}
 
{{!-}}
 
{{!}}colspan="2" style="background:#eee; text-align:center; font-size:110%;"{{!}} '''[[British Formula One Series]] career'''
 
{{!-}} style="vertical-align:top;"
 
! Active years
 
{{!}} {{{BF1 Years}}}
 
{{!-}} style="vertical-align:top;"
 
! Races
 
{{!}} {{{BF1 Races}}}
 
{{!-}} style="vertical-align:top;"
 
! Championships
 
{{!}} {{{BF1 Championships|0}}}
 
{{!-}} style="vertical-align:top;"
 
! Wins
 
{{!}} {{{BF1 Wins|0}}}
 
{{!-}} style="vertical-align:top;"
 
!style="white-space:nowrap;"{{!}} Podium finishes{{spaces|3}}
 
{{!}} {{{BF1 Podiums|0}}}
 
{{!-}} style="vertical-align:top;"
 
{{#if:{{{BF1 Points|}}} |<!--then:-->
 
! Career points
 
{{!}} {{{BF1 Points}}}
 
}}
 
{{!-}} style="vertical-align:top;"
 
! [[Pole position]]s
 
{{!}} {{{BF1 Poles|0}}}
 
{{!-}} style="vertical-align:top;"
 
! [[Fastest lap|Fastest laps]]
 
{{!}} {{{BF1 Fastest laps|0}}}
 
{{!-}} style="vertical-align:top;"
 
}}
 
|}<noinclude>{{clear}}
 
<br/>{{template doc}}
 
 
 
 
 
<!--Categories-->
 
[[Category:Formula One infoboxes|F1 driver, Former]]
 
[[Category:People infobox templates|F1 driver, Former]]
 
 
 
<!--Other languages-->
 
[[sl:Predloga:Infopolje bivši dirkač F1]]
 
[[fi:Malline:Formula 1 -kuljettaja B]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 19:29, 10 February 2021

TeamScript error: No such module "If empty".

[[Category:Infobox templates|Template:Remove first word]]

50px Template documentation[view] [edit] [history] [purge]

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)
[[Category:Infobox templates|Template:Remove first word]]
{{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
Nationality 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
[[Category:Infobox templates|Template:Remove first word]]
{{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