User:QuickNick/R/ProfitRaces

|-{{#if:{{{5|}}} | {{#vardefine:$count|{{#expr:{{#var:$count}}+1}}}}{{#vardefine:$event | {{Events | {{{5}}} }} }}{{#ifeq: {{#var:$event}} | Formula E | {{#vardefine:$eventLink | {{#var:$event}} (Event) }} | {{#vardefine:$eventLink | {{#var:$event}} }} }}{{#if:{{{6|}}} | {{#vardefine:$track | {{EventTracks | {{{6}}} }} }} }}{{#if:{{{S|}}} | {{#vardefine:$variant | {{EventTrackVariants | {{{S}}} }} }} }}{{#if:{{{D|}}} | {{#vardefine:$daytime | {{TimeVariant | {{{D}}} }} }} }} ! style="background-color: #56758D; color: white; " data-sort-value={{#var:$count}} | {{#if: {{{1|}}} | {{{1}}} | ? }} ! style="background-color: #56758D; " | {{#if: {{{2|}}} | }}}|{{!}}{{{ALT}}}}} | ? }} ! style="background-color: #56758D; color: white; " | {{#if:{{{3|}}} | {{{3}}} {{{4}}} | ? }} ! style="background-color: #56758D; color: white; line-height:9px;" data-sort-value="{{#var:$event}}" | {{#if:{{{5|}}} | {{#var:$event}}  | ? }} {{#var:$daytime}} | #default = ({{#var:$daytime}}) }} }}{{#if:{{{S|}}} | {{#var:$variant}} }}{{#if:{{{R|}}} | Rolling Start }}{{#if:{{{B|}}} | Battery {{{B}}}% }} }} | ? }} {{#if:{{{PR|}}} | {{#ifeq:{{{PR}}} | ? | ? | {{FormatPR | {{{PR}}} }} }} | — }} {{FormatNo{{{8}}}}} {{FormatNo{{{8}}}}} /lap
 * style="border-right: 1px solid transparent;" | {{#if:{{{6|}}} | {{#var:$track}} | ? }}{{#if:{{{D|}}} | {{#switch: {{#var:$track}} | Formula E Hong Kong Circuit =
 * style="border-right: 1px solid transparent;"| {{#if: {{{5|}}} | {{#switch: {{#var:$event}}
 * Elimination
 * Endurance = Differs
 * None
 * Autocross
 * Speed Snap
 * Drag Race = —
 * Time Trial
 * Speed Record
 * Hunter = 1
 * #default = {{#if:{{{L|}}} | {{#ifeq:{{{L}}} | ? | ? | {{FormatNo | {{{L}}} }} }} | 1}}
 * style="border-right: 1px solid transparent;" | {{#if: {{{7|}}} | {{#switch: {{#var:$event}}
 * Autocross
 * Speed Snap
 * Drag Race
 * Time Trial = {{FormatR$|{{{7}}}}}
 * Endurance = {{FormatR$|{{{7}}}}} /lap

{{FormatNo{{{8}}}}} }} | ? }} {{FormatNo{{{10}}}}} {{FormatNo{{{10}}}}} /lap
 * #default = {{FormatR$|{{{7}}}}}
 * style="border-right: 1px solid transparent;" | {{#if: {{{9|}}} | {{#switch: {{#var:$event}}
 * Autocross
 * Speed Snap
 * Drag Race
 * Time Trial = {{FormatR$|{{{9}}}}}
 * Endurance = {{FormatR$|{{{9}}}}} /lap

{{FormatNo{{{10}}}}} }} | ? }}
 * #default = {{FormatR$|{{{9}}}}}