FANDOM


[edit] Template-info Template documentation
Ambox content This template is used on 190+ pages.
To avoid any disruptions and to save server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. As a courtesy to other users, please discuss any changes at the talk page before implementing them.

This is the {{A8credits-tokens}} template.

It displays prices that can be paid in either credits or tokens and renders the provided parameters according to the {{A8Credits}} and {{A8Tokens}} templates. If no parameters are provided, only "A8 credits small or A8 tokens full" is displayed.

Usage

The car costs {{A8credits-tokens|10,000|160}} to purchase.

Which renders this:

The car costs A8 credits small 10,000 or A8 tokens full 160 to purchase.

Parameters

All parameters can be omitted. The first one represents credits, the second one tokens. If only one parameter is specified, the template behaves like {{A8Credits}} or {{A8Tokens}}.

  • {{A8credits-tokens|10,000|160}} produces: A8 credits small 10,000 or A8 tokens full 160
  • {{A8credits-tokens}} produces: A8 credits small or A8 tokens full
  • {{A8credits-tokens|10,000}} produces: A8 credits small 10,000
    (same as {{A8Credits|10,000}})
  • {{A8credits-tokens||160}} (with two | pipes) produces: A8 tokens full 160
    (same as {{A8Tokens|160}})

Handling interpreted characters

Templates have problems to handle parameter data that contains equal signs "=" or vertical bars "|".

For text that includes an equal sign "=", precede the text with 1=. For example:

{{A8credits-tokens|1=2 + 2 = 4}}

Which renders this:

A8 credits small 2 + 2 = 4

For text that includes a vertical bar "|", escape the bar(s) with | or {{!}}. For instance like this:

{{A8credits-tokens|&#124;2&#124; < 3}}

Or like this:

{{A8credits-tokens|{{!}}2{{!}} < 3}}

Which renders this:

A8 credits small |2| < 3

See also

Asphalt 8:

Asphalt 9:

Asphalt Nitro:

Asphalt Streetstorm:

Asphalt Xtreme:

Asphalt 7:

General:

  • {{Currency}}, the metatemplate called by all currency templates

</div>

Community content is available under CC-BY-SA unless otherwise noted.