Template:F1Laps2022
Example lap chart
[edit source]{{F1Laps2022|GBR}}
<timeline> Preset = TimeVertical_OneBar_UnitYear ImageSize = width:250 height:400 PlotArea = bottom:20 left:40 Period = from:0 till:52 ScaleMajor = start:0 increment:5 ScaleMinor = start:1 increment:1
Colors =
id:canvas value:rgb(0.937,0.937,0.937) id:linemark value:gray(0.8) id:linemark2 value:gray(0.9)
BackgroundColors = canvas:canvas
PlotData =
mark:(line,linemark) from:start till:1 color:orange shift:(20,-5) text:Max Verstappen (Lap 1) from:1 till:9 color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Laps 2–9) from:9 till:12 color:orange shift:(20,-5) text:Max Verstappen (Laps 10–12) from:12 till:20 color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Laps 13–20) from:20 till:25 color:blue shift:(20,-5) text:Charles Leclerc (Laps 21–25) from:25 till:33 color:white shift:(20,-5) text:Lewis Hamilton (Laps 26–33) from:33 till:38 color:blue shift:(20,-5) text:Charles Leclerc (Laps 34–38) from:38 till:39 color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Lap 39) from:39 till:42 color:blue shift:(20,-5) text:Charles Leclerc (Laps 40–42) from:42 till:end color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Laps 43–52)</timeline>
| Grand Prix | Abbreviation | Ref. |
|---|---|---|
| 2022 Bahrain Grand Prix | BHR | [1] |
| 2022 Saudi Arabian Grand Prix | SAU | [2] |
| 2022 Australian Grand Prix | AUS | [3] |
| 2022 Emilia Romagna Grand Prix | EMI | [4] |
| 2022 Miami Grand Prix | MIA | [5] |
| 2022 Spanish Grand Prix | ESP | [6] |
| 2022 Monaco Grand Prix | MON | [7] |
| 2022 Azerbaijan Grand Prix | AZE | [8] |
| 2022 Canadian Grand Prix | CAN | [9] |
| 2022 British Grand Prix | GBR | [10] |
| 2022 Austrian Grand Prix | AUT | [11] |
| 2022 French Grand Prix | FRA | [12] |
| 2022 Hungarian Grand Prix | HUN | [13] |
| 2022 Belgian Grand Prix | BEL | [14] |
| 2022 Dutch Grand Prix | NED | [15] |
| 2022 Italian Grand Prix | ITA | [16] |
| 2022 Singapore Grand Prix | SIN | [17] |
| 2022 Japanese Grand Prix | JPN | [18] |
| 2022 United States Grand Prix | USA | [19] |
| 2022 Mexico City Grand Prix | MXC | [20] |
| 2022 São Paulo Grand Prix | SAP | [21] |
| 2022 Abu Dhabi Grand Prix | ABU | [22] |
References
[edit source]- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
- ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
| Edit-copy green with red question mark | This template's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help add, expand, or improve it. |
Usage
[edit source]{{F1Laps2022|GBR}}
The code above can be used for the Infobox Grand Prix race report as | Lapchart = {{F1Laps2022|GBR}}
It will then show a chart of race leaders as can be seen in picture below.
<timeline> Preset = TimeVertical_OneBar_UnitYear ImageSize = width:250 height:400 PlotArea = bottom:20 left:40 Period = from:0 till:52 ScaleMajor = start:0 increment:5 ScaleMinor = start:1 increment:1
Colors =
id:canvas value:rgb(0.937,0.937,0.937) id:linemark value:gray(0.8) id:linemark2 value:gray(0.9)
BackgroundColors = canvas:canvas
PlotData =
mark:(line,linemark) from:start till:1 color:orange shift:(20,-5) text:Max Verstappen (Lap 1) from:1 till:9 color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Laps 2–9) from:9 till:12 color:orange shift:(20,-5) text:Max Verstappen (Laps 10–12) from:12 till:20 color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Laps 13–20) from:20 till:25 color:blue shift:(20,-5) text:Charles Leclerc (Laps 21–25) from:25 till:33 color:white shift:(20,-5) text:Lewis Hamilton (Laps 26–33) from:33 till:38 color:blue shift:(20,-5) text:Charles Leclerc (Laps 34–38) from:38 till:39 color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Lap 39) from:39 till:42 color:blue shift:(20,-5) text:Charles Leclerc (Laps 40–42) from:42 till:end color:yellow shift:(20,-5) text:Carlos Sainz Jr. (Laps 43–52)</timeline>