User:QuickNick/R/dbCar

|- <!-- The table has 43 columns! If you change this template please change the header (User:QuickNick/H/dbCar) and footer (User:QuickNick/T/dbCar) and comments accordingly ... thank you.

This is a test using ONLY named fields/parameters AND a first stab at an all-cars database. There are more fields than there are columns because the template formats the data as necessary and places it in the relevant columns.

The order of the fields doesn't matter All fields go on separate lines and use the format ... |FieldName=data Numeric fields don't need irrelevant decimal places e.g. |Grip=1 is the same as |Grip=1.00 Numeric fields don't need 000s comma separators e.g. |CostCash=25,000 or |CostCash=25000 A field can be omitted if not relevant or the details are not (yet) known e.g. CostGold is not relevant for a car which is purchased with R$

Fields ...
 * Car         Full car name
 * Ver         Game version the car was added
 * FMnum       The FM internal number for the car!

If not specified this will be the first word of the |Car field If not specified this will the same as the |Make field If not specified this will be the rest of the |Car field This will be used to specify the ALTernate car name
 * Make        Make used in the car name  e.g. Aston Martin or Mercedes-AMG
 * Make2       Make used in the car selection/purchase screens
 * Model       Car name excluding any special details  e.g. team or driver
 * Info1       Additional Model details  e.g. NASCAR team name
 * Info2       Additional Model details  e.g. NASCAR driver number/name


 * CostCash    Purchase price for car in R$
 * CostGold    Purchase price for car in Gold


 * Class       As per the car screen  e.g. S for Sport or R for Race
 * Type        As per the car screen  e.g. RR


 * SvcMins     Service time in minutes
 * SvcCash    Service cost R$

Special Details NASCAR, LMP1, LMPGTEPRO,
 * Ltd         Y = Limited Edition
 * Electric    Y = Electric
 * R3spec      Y = R3 Spec
 * RaceSeries  Unofficial data ...

Series, number of and names, currently allows for maximum of 9 series
 * Series=2
 * Series1=Open Sky Challenge
 * Series2=Open Sky Challenge II

Base Specfications ... no upgrades
 * BasePR      PR
 * BaseMph     Speed in Mph
 * BaseKph     Speed in Kph
 * BaseAcc     Acceleration
 * BaseFeet    Stopping distance in Feet
 * BaseMtrs    Stopping distance in Metres
 * BaseGrip    Grip

R$-Only Upgraded Specifications
 * CashUpgCnt  Number of Upgrades
 * CashUpgStr  Upgrade String
 * CashUpgCash Upgrade Cost R$
 * CashPR      PR
 * CashMph     Speed in Mph
 * CashKph     Speed in Kph
 * CashAcc     Acceleration
 * CashFeet    Stopping distance in Feet
 * CashMtrs    Stopping distance in Metres
 * CashGrip    Grip

Fully Upgraded Specifications
 * FullUpgCnt  Number of Upgrades
 * FullUpgStr  Upgrade String
 * FullUpgCash Upgrade Cost R$ ... using R$ where possible
 * FullUpgGold Upgrade Cost Gold ... where not possible to use R$
 * FullUpgGMax Upgrade Cost ALL Gold!
 * FullPR      PR
 * FullMph     Speed in Mph
 * FullKph     Speed in Kph
 * FullAcc     Acceleration
 * FullFeet    Stopping distance in Feet
 * FullMtrs    Stopping distance in Metres
 * FullGrip    Grip

Comments / Additional Info -->
 * MoreInfo    As yet unspecified data, information or comments
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}






 * {{#if:{{{BasePR|}}}|{{Format1DP|{{{BasePR}}}|-}}
 * {{#if:{{{BaseMph|}}}|{{FormatNo|{{{BaseMph}}} mph|-}} {{#if:{{{BaseKph|}}}|{{FormatNo|{{{BaseKph}}} kph|-}}
 * {{#if:{{{BaseAcc|}}}|{{Format2DP|{{{BaseAcc}}} s|-}}
 * {{#if:{{{BaseFeet|}}}|{{Format1DP|{{{BaseFeet}}} ft|-}} {{#if:{{{BaseMtrs|}}}|{{Format1DP|{{{BaseMtrs}}} m|-}}
 * {{#if:{{{BaseGrip|}}}|{{Format2DP|{{{BaseGrip}}} g|-}}
 * {{#if:{{{BaseGrip|}}}|{{Format2DP|{{{BaseGrip}}} g|-}}


 * {{#if:{{{CashUpgCnt|}}}|{{FormatNo|{{{CashUpgCnt}}}}} {{{CashUpgStr|}}}|-}}
 * {{#if:{{{CashUpgCash|}}}|{{R$}}{{FormatNo|{{{CashUpgCash}}}}}|-}}
 * {{#if:{{{CashPR|}}}|{{Format1DP|{{{CashPR}}}|-}}
 * {{#if:{{{CashMph|}}}|{{FormatNo|{{{CashMph}}} mph|-}} {{#if:{{{CashKph|}}}|{{FormatNo|{{{CashKph}}} kph|-}}
 * {{#if:{{{CashAcc|}}}|{{Format2DP|{{{CashAcc}}} s|-}}
 * {{#if:{{{CashFeet|}}}|{{Format1DP|{{{CashFeet}}} ft|-}} {{#if:{{{CashMtrs|}}}|{{Format1DP|{{{CashMtrs}}} m|-}}
 * {{#if:{{{CashGrip|}}}|{{Format2DP|{{{CashGrip}}} g|-}}
 * {{#if:{{{CashGrip|}}}|{{Format2DP|{{{CashGrip}}} g|-}}


 * {{#if:{{{FullUpgCnt|}}}|{{FormatNo|{{{FullUpgCnt}}}}} {{{FullUpgStr|}}}|-}}
 * {{#if:{{{FullUpgCash|}}}|{{R$}}{{FormatNo|{{{FullUpgCash}}}}}|-}} {{#if:{{{FullUpgGold|}}}|{{FormatNo|{{{FullUpg}}}}} {{Gold}}|-}}
 * {{#if:{{{FullPR|}}}|{{Format1DP|{{{FullPR}}}|-}}
 * {{#if:{{{FullMph|}}}|{{FormatNo|{{{FullMph}}} mph|-}} {{#if:{{{FullKph|}}}|{{FormatNo|{{{FullKph}}} kph|-}}
 * {{#if:{{{FullAcc|}}}|{{Format2DP|{{{FullAcc}}} s|-}}
 * {{#if:{{{FullFeet|}}}|{{Format1DP|{{{FullFeet}}} ft|-}} {{#if:{{{FullMtrs|}}}|{{Format1DP|{{{FullMtrs}}} m|-}}
 * {{#if:{{{FullGrip|}}}|{{Format2DP|{{{FullGrip}}} g|-}}
 * {{#if:{{{FullGrip|}}}|{{Format2DP|{{{FullGrip}}} g|-}}

Test Data {{User:QuickNick/H/dbCar|Title=All Cars Database}}
 * {{{MoreInfo|}}}
 * {{{MoreInfo|}}}

{{User:QuickNick/R/dbCar
 * Car=Ariel Atom 3.5
 * Ver=2.2
 * FMnum=149
 * Make=Ariel
 * Model=Atom 3.5
 * CostCash=25500
 * Class=S
 * Type=RR


 * BasePR=44.4
 * BaseMph=155
 * BaseAcc=2.7
 * BaseFeet=100
 * BaseGrip=1


 * SvcMins=140
 * SvcCash=1170


 * CashUpgCnt=15
 * CashUpgStr=3222222
 * CashUpgCash=226800
 * CashPR=54.2
 * CashMph=
 * CashAcc=
 * CashFeet=
 * CashGrip=


 * FullUpgCnt=29
 * FullUpgStr=8444333
 * FullUpgCash=565000
 * FullUpgGold=138
 * FullUpgGMax=282
 * FullPR=62.9
 * FullMph=185
 * FullAcc=2.2
 * FullFeet=91
 * FullGrip=1.29

}}
 * Series=2
 * Series1=Open Sky Challenge
 * Series2=Open Sky Challenge II

{{User:QuickNick/dbCar
 * Car=Aston Martin VULCAN
 * Ver=4.0
 * FMNum=199
 * Ltd=Y

}}

{{User:QuickNick/dbCar
 * Car=Audi R18 e-tron quattro (2015)
 * Ver=3.4
 * FMnum=182
 * RaceSeries=LMP1

}}

{{User:QuickNick/dbCar
 * Car=Chevrolet SS (Hendrick Motorsports - 2015)
 * Make=Chevrolet
 * Model=SS
 * Info1=Hendrick Motorsports - 2015
 * Info2=88: Dale Earnhardt, Jr.

}}

{{User:QuickNick/dbCar }}
 * Car=Mercedes-AMG A 45
 * Ver=5.0.5
 * FMnum=239
 * Make=Mercedes-Benz
 * Make2=Mercedes-AMG
 * Model=A 45

{{User:QuickNick/T/dbCar}}