Difference between revisions of "Template:Driver/doc"

From LFS Manual
Jump to navigationJump to search
m
Line 4: Line 4:
  
 
For indicating podium positions in colored table cells, see templates {{tl|code=1|1st}}, {{tl|code=1|2nd}}, {{tl|code=1|3rd}}.
 
For indicating podium positions in colored table cells, see templates {{tl|code=1|1st}}, {{tl|code=1|2nd}}, {{tl|code=1|3rd}}.
 +
 +
== Usage ==
 +
<pre>
 +
{{Driver
 +
|1            = nickname
 +
|2            = lfsw username
 +
|laptime      =
 +
|streak        =
 +
}}
 +
</pre>
 +
 +
== Parameters ==
 +
{| class="wikitable"
 +
|+ Infobox track parameters and basic guidelines
 +
! scope="col" | Parameter
 +
! scope="col" | Explanation
 +
! scope="col" width="271px" | Example values
 +
|-
 +
! scope="row" | 1
 +
| Driver nickname. Unnamed parameter.
 +
| {{code|Average Joe}}
 +
|-
 +
! scope="row" | 2
 +
| Driver LFSW username. Unnamed parameter.
 +
| {{code|avgjoe123}}
 +
|-
 +
! scope="row" | laptime
 +
| In the context of pole positions and fastest laps, laptime of driver. Appears before the driver name.
 +
| {{code|1:25.32}}
 +
|-
 +
! scope="row" | streak
 +
| When used as a table cell, highlight streak. One of the following: start, end.
 +
| {{code|start}}, {{code|end}}
 +
|}
  
 
=== Examples ===
 
=== Examples ===

Revision as of 16:49, 7 January 2025

Information icon4.png This is a documentation subpage for Template:Driver.

It may contain usage information, categories and other content that is not part of the original page.

Formats a driver name, username and laptime. It can be used in both plain text and table cells. Two optional parameters specify the driver's name and their username, respectively. If the |laptime= parameter is defined, it gets put in front of the driver info, separated with a vertical line (pipe) symbol (|).

For indicating podium positions in colored table cells, see templates {{1st}}, {{2nd}}, {{3rd}}.

Usage

{{Driver
|1             = nickname
|2             = lfsw username
|laptime       = 
|streak        = 
}}

Parameters

Infobox track parameters and basic guidelines
Parameter Explanation Example values
1 Driver nickname. Unnamed parameter. Average Joe
2 Driver LFSW username. Unnamed parameter. avgjoe123
laptime In the context of pole positions and fastest laps, laptime of driver. Appears before the driver name. 1:25.32
streak When used as a table cell, highlight streak. One of the following: start, end. start, end

Examples

Markup Renders as
{{Driver|Average Joe|avgjoe123}}

Average Joe (avgjoe123)

Markup Renders as
{{Driver|Average Joe|avgjoe123|laptime=1:24.75}}

1:24.75 | Average Joe (avgjoe123)