Template:F1Laps2022/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:F1Laps2022. It may contain usage information, categories and other content that is not part of the original template page. |
| 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>