User:QuickNick/R/ProfitRaces3

|-{{#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}}} }} }} }} {{{4}}} | ? }} {{#var:$daytime}} | #default = ({{#var:$daytime}}) }} }}{{#if:{{{S|}}} | {{#var:$variant}} }}{{#if:{{{R|}}} | Rolling Start }}{{#if:{{{B|}}} | Battery {{{B}}}% }} {{#if:{{{L|}}} | {{#ifeq:{{{L}}} | ? | ? | {{FormatNo | {{{L}}} }} }} | - }}
 * 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}}}
 * style="background-color: #56758D; color: white; line-height:9px;" data-sort-value="{{#var:$event}}" | {{#if:{{{5|}}} | Event {{#var:$event}}.png {{#var:$event}} | ? }}
 * {{#if:{{{6|}}} | {{#var:$track}} | ? }}{{#if:{{{D|}}} | {{#switch: {{#var:$track}} | Formula E Hong Kong Circuit =

{{#if:{{{PR|}}} | {{#ifeq:{{{PR}}} | ? | ? | {{FormatPR | {{{PR}}} }} }} | — }}

{{#if:{{{7|}}} | {{{7}}} | — }}
 * {{#if: {{{8|}}} | {{FormatR$|{{{8}}}}}

{{FormatNo|{{{10}}}}} | ? }}
 * {{#if: {{{9|}}} | {{FormatNo|{{{9}}}}}

{{FormatNo|{{{11}}}}} | ? }} Most Profitable {| class="wikitable sortable" style="text-align: center; border: 2px solid #6C93B1; width: 100%;" ! style="background-color: #6C93B1; color: white; width: 32px;" data-sort-type="number" | Index
 * Index. Career index as per Series & Special Events.
 * Series. Series name. Links to Series page.
 * Tier. Tier & Event Number. Tier name.
 * Event. Event type.
 * Location. Track, variant and additional race information.
 * Laps, PR, Time. Number of Laps. Required PR. Time taken for event.
 * R$. Total R$ and R$ per minute. Does not include CRB.
 * Fame. Total Fame and Fame per minute.

! style="background-color: #6C93B1; color: white; width: 130px;" | Series

! style="background-color: #6C93B1; color: white; width: 120px;" class="unsortable" | Tier ! style="background-color: #6C93B1; color: white; width: 60px;" | Event

! style="background-color: #6C93B1; color: white; width: 170px;" | Location

! style="background-color: #6C93B1; color: white;" class="unsortable" | Laps PR Time ! style="background-color: #6C93B1; color: white;" data-sort-type="number" | R$ Fame

! style="background-color: #6C93B1; color: white;" data-sort-type="number" | Per Min

{{User:QuickNick/R/ProfitRaces3|2.2|NASCAR All-Star Series|19.2|Turbo Burst Speedway 40|NASCAR|Daytona International Speedway|S=Speedway|R=Y|L=10|PR=53|7:34|31700|5800|4189|767}} {{User:QuickNick/R/ProfitRaces3|2.2|NASCAR All-Star Series|20.1|Flag Racing Prime 39|NASCAR|Circuit de Catalunya|S=National Circuit|R=Y|L=8|PR=53|7:58|32400|5900|4067|741}}

{{End}} Notes:
 * Starting a table column entry with "!" causes the contents to be bold! Starting with "|" doesn't.
 * This and R/ProfitRaces3 use the same data, just a different template.
 * Added &lt;br&gt; to every sortable column header to push sort buttons to next line. I think it looks better.
 * Added column separator lines (removed invisible border) because it was looking rather cluttered.