Difference between revisions of "Template:Driver"
From LFS Manual
Jump to navigationJump to search (Created page with "<includeonly>style="vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}"|{{#if:{{{laptime|}}}|{{{laptime|}}} | }} {{#if:{{{1|}}}|'''{{{1|}}}'''}} {{#if:{{{2|}...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>style="vertical-align: middle; text-align: {{{align|center}}}; {{{ | + | <includeonly>{{#switch:{{{streak}}} |
+ | |start=style="vertical-align: middle; text-align: {{{align|center}}}; border-top: 2px solid; border-left: 2px solid; border-right: 2px solid;"{{!}} | ||
+ | |end=style="vertical-align: middle; text-align: {{{align|center}}}; border-bottom: 2px solid; border-left: 2px solid; border-right: 2px solid;"{{!}} | ||
+ | }}{{#if:{{{laptime|}}}|{{{laptime|}}}<nowiki> | </nowiki>}}{{#if:{{{1|}}}|{{{1|}}}}} {{#if:{{{2|}}}|({{{2|}}})}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 17:29, 16 June 2024
Template documentation
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}}
.
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) |