Template:Upgrades table an/doc

This is the undefined template for pro upgrade prices in Asphalt Nitro.

It can handle incomplete data and builds sums automatically from the existing values.

Usage
The following code block is complete and can be be copied into pages.

Parameters

 * Optional. CSS margin specifications if needed, without quotes and semicolon.
 * Example:  will be rendered as


 * Optional. Only needed if the vehicle uses Vehicle Kit cards. If omitted, the Pro Kits table is displayed instead.
 * Any vehicle name. Not case-sensitive. Spaces and punctuation characters are ignored, so the parameter is quite tolerant.
 * If the name does not exist or the vehicle does not have a Kit card yet, a generic card back is displayed.
 * Example:,   and   will all display the Volkswagen I.D. R Kit card.


 * Optional.
 * ,  or any other currency identifier listed in Currency templates see also.


 * Optional. The number of pro upgrade levels the vehicle has.
 * Number between 1 and 10. Defaults to 10 if  is provided, otherwise defaults to 5.
 * Only needed if a Festival vehicle has other then 10 or a Pro Kit vehicle has other then 5 pro upgrade levels.


 * Required if the vehicle is a bike. Displays Bike Tires instead of Tires etc.
 * or  if the vehicle is a bike.


 * Optional. The vehicle class. Only needed for Pro Kit vehicles.
 * ,,  ,  ,  . Not case-sensitive.
 * If omitted, a generic card back is displayed instead of the Part cards.


 * Optional. The engine the vehicle uses. Only needed for Pro Kit vehicles.
 * Any engine name. Not case-sensitive. Spaces, punctuation characters and the word "engine" are ignored, so the parameter is quite tolerant.
 * If the name does not exist, a generic card back is displayed.
 * If the parameter is omitted, the engine column is not displayed.
 * Example:,   and   will all display the Forced Four-Stroke Engine card.

,,  ,  ,  ,  ,  ...
 * Optional. The number of Kits, Parts, Engines and the price for the respective level.
 * Number. Prices can be provided with our without thousands separators.
 * Example:  and   will both be rendered as 1,000.

,,  ,  ,  ,  ,  ...
 * Optional. The number and type of Tech cards for the respective level.
 * Number and one-letter identifier.
 * Identifiers: – Early Tech  – Initial Tech  – Mid-Tech  – Advanced Tech  – Common Tech  – Rare Tech  – Pro Tech
 * Case-sensitive! Spaces and any characters except numbers and the identifiers are ignored. Number and identifier can be combined in any order.
 * Example:,   and   will all display 4 Mid-Tech cards, but   (upper case) will not.
 * Note: Bikes use the same parameter names as cars, i. e.  instead of a non-existing  . The table automatically displays the correct Part names and images if   is set to   or.

Vehicle Kits
gives

Car
gives

Bike
gives

This template
undefined only checks, formats and processes the entered values and passes the calculated results to Pro upgrades table v4.2 a8 output vehicle kits or Pro upgrades table v4.2 a8 output pro kits which provide the graphical output.

Categories

 * This template adds the tracking category Category:Pages using template Pro upgrades table v4.2 a8.
 * The tracking category Category:Vehicle pages with extrapolated pro upgrade prices is not added by this template but by the subsequent Pro upgrades table v4.2 a8 output vehicle kits or Pro upgrades table v4.2 a8 output pro kits. This is triggered by the parameter  which is set to 1 if there are missing Fusion Coin prices.

Extrapolation
Extrapolation is done by Extrapolate pro upgrade price a8.