Template:F1 race position/doc

Important: When changing the template's output please remember to update F1 driver results legend 6 and F1 driver results legend 5. This template has a sandbox page at Template:F1 race position/sandbox

Usage
Use this template to display pole position and/or fastest lap markers. Usage is as follows:




 * The first unnamed parameter must be the race position to display (N),
 * To include a pole position marker, include pole as either the second or third unnamed parameters,
 * To include a fastest lap marker, include fast as either the second or third unnamed parameters,
 * All other named and unnamed parameters are ignored.

You can use p as a synonym for pole. Likewise, you can use f as a synonym for fast, along with fastlap or fastestlap.

Important: When using the template, place F1 driver results legend 6 or F1 driver results legend 5 where appropriate and replace any existing driver results legend/keys where necessary.

Pole position only
All of the following will display a race position with just the pole position marker (e.g. "").


 * pole is present as the second unnamed parameter.
 * pole is present as the second unnamed parameter.


 * p as a synonym for pole is present as the second unnamed parameter.
 * p as a synonym for pole is present as the second unnamed parameter.


 * p is present as the third unnamed parameter. The second unnamed parameter has a value abc, which being unrecognized does nothing.
 * p is present as the third unnamed parameter. The second unnamed parameter has a value abc, which being unrecognized does nothing.


 * p is present as the second unnamed parameter. The named parameters param1 and param2 are ignored.
 * p is present as the second unnamed parameter. The named parameters param1 and param2 are ignored.


 * p is present as both the second and third unnamed parameters. Duplication makes no difference.
 * p is present as both the second and third unnamed parameters. Duplication makes no difference.

Fastest lap only
All of the following will display a race position with just the fastest lap marker (e.g. "").


 * fast is present as the second unnamed parameter.
 * fast is present as the second unnamed parameter.


 * f as a synonym for fast is present as the second unnamed parameter.
 * f as a synonym for fast is present as the second unnamed parameter.


 * fastlap is present as the third unnamed parameter. The second unnamed parameter has a value xyz, which being unrecognized does nothing.
 * fastlap is present as the third unnamed parameter. The second unnamed parameter has a value xyz, which being unrecognized does nothing.


 * fastestlap is present as the second unnamed parameter. The named parameters param1 and param2 are ignored.
 * fastestlap is present as the second unnamed parameter. The named parameters param1 and param2 are ignored.


 * f is present as both the second and third unnamed parameters. Duplication makes no difference.
 * f is present as both the second and third unnamed parameters. Duplication makes no difference.

Pole position and fastest lap
All of the following will display a race position with both the pole position and fastest lap markers (e.g. "").


 * pole is present as the second unnamed parameter and fast is present as the third unnamed parameter.
 * pole is present as the second unnamed parameter and fast is present as the third unnamed parameter.


 * The order in which p and f appear makes no difference, as long as they are present as the second and third unnamed parameters.
 * The order in which p and f appear makes no difference, as long as they are present as the second and third unnamed parameters.


 * p is present as the second unnamed parameter and fast is present as the third unnamed parameter. The named parameter param is ignored.
 * p is present as the second unnamed parameter and fast is present as the third unnamed parameter. The named parameter param is ignored.

Errors
The following are either errors or will not do as you expect:


 * This will only display the pole position marker since f is the fourth unnamed parameter here. The third unnamed parameter is xyz, which being unrecognized does nothing.
 * This will only display the pole position marker since f is the fourth unnamed parameter here. The third unnamed parameter is xyz, which being unrecognized does nothing.


 * The race position has been neglected. This will interpret "p" as the race position and then only find f. This will this display "" (fastest lap only), when "" was intended (pole position and fastest lap).
 * The race position has been neglected. This will interpret "p" as the race position and then only find f. This will this display "" (fastest lap only), when "" was intended (pole position and fastest lap).


 * The pole position and fastest lap markers are not set by a named parameter. Here, p is a named parameter, and all named parameters are ignored.
 * The pole position and fastest lap markers are not set by a named parameter. Here, p is a named parameter, and all named parameters are ignored.