Template:A8box/doc

This is the A8Box template.

THIS TEMPLATE IS STILL UNDER DEVELOPMENT! Use at own risk!
 * It can be used for custom boxes that don't have their own first-level template yet.
 * First-level templates (e. g. ) are listed in the See also section below.
 * Further first-level templates will be added in the future.

Test:

This is an inline example of a and an  in a sentence. Oh, and here's an.

Again, as a list:

To do, plans

 * + Halloween Packages (with no standard Currency price disrupt table!
 * + Add table display mode (incl. !)
 * + Shadow/Overlay for discontinued boxes?
 * + Add type for R&D Boxes in tables? Who would like to sort this?
 * + Make price really sortable in table (separate currency icon and number?) data-sort-type="text" is the only thing that works in that column so far. Better not introduce another switch in currency templates, but split string in A8Box-meta? First word and Last word would do the job.
 * + Align top if only Box name is shown
 * + Let images link to Pro Kit Boxes page (best in A8Box-meta so only one template has to be changed if Pro Kit Boxes page name changes without redirect)
 * + Add icon display mode
 * + Add text/list display mode and find appropriate name
 * - Add Random Box templates
 * - Create New A8Box template

Draft/old text:

It contains data and image paths of Asphalt 8 Pro Kit Boxes. It can be used to display Furthermore, A8Box can display a box in three different styles:
 * (+) "fixed" boxes (for example the Super Racer Kit Box) with all data such as description, box info percentages, and price,
 * (+) "half-custom" boxes (like championship and R&D boxes) that have the same names and images, but the content of which can vary from event to event,
 * (+) "custom" boxes where all parameters including image path can be freely specified.


 * (-) just a box image, for example in an article where just a picture is needed without additional data,
 * (+) as a compact data block that can be used on championship and R&D pages,
 * (-) as a table row so that box properties can be compared and sorted in general overviews and lists.

Please note that box data can change if bla. Bla reflects the current state bla. If you want a box to be constant, choose the custom variant, so the displayed data will not change if the data in this template is updated.

Syntax
The complete syntax is as follows:

Custom

 * Required. If the box name is omitted, the template displays nothing.
 * Text. Any of the following box names. Not case sensitive, i. e. bla instead of Bla is also valid. Template calls with an unknown box name will be displayed +++bla.
 * Super Racer Kit Box
 * Super Racer Kit Box
 * Super Racer Kit Box
 * Super Racer Kit Box

Adding future currencies
Currency can easily be expanded for currencies of other Asphalt versions or future events. For example, if an Asphalt 8 event introduces the currency "Newcoins", you can add it as follows:

Create a new color definition
Go to the Color template and add a new color definition with the same name as your new currency (a8newcoins in our example) by following the instructions in the "Adding new colors" section.

Upload a new currency icon
The filename should ideally be A8newcoins.png or something similar.

Edits in this template
Copy and insert the following line below the  comment in the template: INSERT NEW CURRENCIES BELOW THIS LINE --> | a8newcoins =


 * Name of the currency in lower case. Any upper case combinations will be detected automatically.
 * Filename of the currency icon you have uploaded.
 * Height of the currency icon. Can be left unchanged in most cases.
 * Make sure to edit only the digits between x and px.
 * Caption of the icon that is displayed if the mouse pointer moves over it.
 * Vertical alignment. Can be left unchanged in most cases.
 * Sometimes,  fits better.
 * Pagename the icon links to if clicked.
 * Usually, currencies other than Credits and Tokens don't have their own pages. In this case, the whole parameter can be omitted.

New first-level template
To make it easier for others to use the new currency, a new first-level template named "A8NewCoins" can be created by copying the following line into a new template:

US$

Users can now type  which behaves exactly like  or other currency templates.

Parameters:


 * Name of the currency. Everything else has to be left unchanged.