Difference between revisions of "Template:F1cstat/doc"

From blackwiki
Jump to navigation Jump to search
imported>Corvus tristis
imported>Carfan568
(Fixed examples)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
{{notice|At the end of the season [[Wikipedia:Substitution|subst]] this template into:
 
{{notice|At the end of the season [[Wikipedia:Substitution|subst]] this template into:
 
* [[List of Formula One constructors]]
 
* [[List of Formula One constructors]]
* [[List of Formula One Grand Prix winners (constructors)]]
 
 
* The constructor article
 
* The constructor article
 
* The engine supplier article
 
* The engine supplier article
Line 60: Line 59:
 
|starts
 
|starts
 
|Number of races started
 
|Number of races started
 +
|-
 +
|drivers
 +
|Number of drivers
 +
|-
 +
|totalentries
 +
|Number of individual entries
 
|-
 
|-
 
|poles
 
|poles
Line 84: Line 89:
 
|Current championship position
 
|Current championship position
 
|}
 
|}
 +
Note: seasonpoints and seasonposition designed specifically for the table cells and would not work outside the tables, if you need a season points outside the table you may use <code><nowiki>{{sum|F1cstat|constructor code|totalpoints|-(total number of points prior the current season)}}</nowiki></code>
  
 
===Usage===
 
===Usage===
<code><nowiki>{{</nowiki>F1stat|''three letter driver code''|''field''}}</code>
+
<code><nowiki>{{</nowiki>F1cstat|''three letter constructor code''|''field''}}</code>
  
 
;Examples
 
;Examples
<code><nowiki>{{</nowiki>F1stat|FER|entries}}</code> returns the total number of races that Ferrari entered
+
<code><nowiki>{{</nowiki>F1cstat|FER|entries}}</code> returns the total number of races that Ferrari entered
  
<code><nowiki>{{</nowiki>F1stat|MRC|wins}}</code> returns the total number of wins that Mercedes has scored all-time
+
<code><nowiki>{{</nowiki>F1cstat|MRC|wins}}</code> returns the total number of wins that Mercedes has scored all-time
  
<code><nowiki>{{</nowiki>F1stat|MCL|seasonpoints}}</code> returns the total number of points that McLaren scored this season
+
<code><nowiki>{{</nowiki>F1cstat|MCL|seasonpoints}}</code> returns the total number of points that McLaren scored this season
 
|}<includeonly>{{Sandbox other||
 
|}<includeonly>{{Sandbox other||
 
[[Category:Formula One templates]]
 
[[Category:Formula One templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 16:32, 8 September 2020

Constructor codes

Three letter code Constructor
ALR Alfa Romeo
ALT AlphaTauri
FER Ferrari
HAA Haas
MCL McLaren
MRC Mercedes
RAP Racing Point
RBR Red Bull Racing
REN Renault
WIL Williams

Statistics available

Field Description
Career totals
entries Number of races entered
starts Number of races started
drivers Number of drivers
totalentries Number of individual entries
poles Number of pole positions
wins Number of wins
podiums Number of podium finishes
fastestlaps Number of fastest laps
totalpoints Total number of points
Current season
seasonpoints Number of points this season
seasonposition Current championship position

Note: seasonpoints and seasonposition designed specifically for the table cells and would not work outside the tables, if you need a season points outside the table you may use {{sum|F1cstat|constructor code|totalpoints|-(total number of points prior the current season)}}

Usage

{{F1cstat|three letter constructor code|field}}

Examples

{{F1cstat|FER|entries}} returns the total number of races that Ferrari entered

{{F1cstat|MRC|wins}} returns the total number of wins that Mercedes has scored all-time

{{F1cstat|MCL|seasonpoints}} returns the total number of points that McLaren scored this season