Template:F1 stats/doc

From Simple English Wikipedia, the free encyclopedia

F1 stats = Build Formula One race statistics.

This template may be used to enter the F1 race statistics. It will set the background color, italics for fastest lap, and bold for pole position.

Parameters[change source]

  • |first
    • Unnamed parameter, identifies what type of entry will be made.
      • driver updates the entry on the driver's page.
      • stats updates the entries on the Formula One season page.
  • |race
    • Grand Prix race name three letter code.
      • gbr for British Grand Prix, etc.
  • |pos=
    • The driver's finishing position.
  • |pole=
    • Driver won the pole position.
      • yes or no. Defaults to no.
  • |fast=
    • Driver set the fastest lap.
      • yes or no. Defaults to no.
  • |class=
    • Did not finish the Grand Prix, but was classified. Completed over 90% of the race distance.
      • yes or no. Defaults to no.

Usage[change source]

  • Basic parameters
    • {{F1 stats|driver|race=|pos=}}
    • {{F1 stats|stats|race=|pos=}}
  • Full parameters
    • {{F1 stats|driver|race=|pos=|pole=|fast=|class=}}
    • {{F1 stats|stats|race=|pos=|pole=|fast=|class=}}

Examples[change source]

{{F1 stats|driver|race=gbr|pos=4|pole=yes|fast=yes}} gives:

GBR
4


{{F1 stats|driver|race=gbr|pos=17|class=yes}} gives:

GBR
17


{{F1 stats|driver|race=gbr|pos=Ret}} gives:

GBR
Ret

{{F1 stats|stats|race=gbr|pos=1}} gives:

1


{{F1 stats|stats|race=gbr|pos=1|pole=yes|fast=yes}} gives:

1


{{F1 stats|stats|race=gbr|pos=17|class=yes}} gives:

17


Other templates[change source]

This template calls other sub-templates, {{F1 stats background}} and {{F1 stats race}}.