FANDOM


[edit] Template-info Template documentation
Ambox content This template is used on 1,100+ 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.

{{A8box-meta}} is the second-level template of the Pro Kit Box modular system. It is called by all first-level templates and routes their parameters to the correct third-level template according to the style parameter. It can also be used to extract a single parameter from first-level templates.

Parameters

There are three main parameter groups processed by {{A8box-meta}}:

  1. Content – All text and graphic elements.
  2. Pass-through – Not template-specific, but specified by the user inserting the template on a page in order to change its visual appearance.
  3. Statistics – Only used for statistical data. Updated automatically by WikiProject Statistics and of no practical use for editors.

Content

Main

|            <box name> 
|                  file = 
|          last checked = 
|                 price = 
|              currency = 
|                 items = 
|           description = 
|               boxinfo = 
|               article = 
|          templatename = 
|          discontinued = 
  • See {{A8box}} for parameter explanation.
  • style = inline only processes <box name>, suffix, discontinued, file, article. All other parameters are ignored.
  • style = icon only processes <box name>, discontinued, file, article. All other parameters are ignored.

Championship and R&D boxes

|               vehicle = 
|                  type = 
|                 tests = 
  • See {{A8box}} for parameter explanation.
  • vehicle is only processed by Championship box templates.
  • type and tests are only processed by R&D box templates.

Expand the table to see an overview of Championship and R&D box templates.

Championship R&D RDD

Availability

|       permanent offer = 
|    time-limited offer = 
|           daily bonus = 
|           daily tasks = 
|             daily ads = 
|            moto blitz = 
|                   tle = 
|               bundles = 
|              supplies = 
|                   rnd = 
|                   edd = 
|          championship = 
|            world tour = 
|              festival = 
|        mp race points = 
|             mp league = 
|               mastery = 
|         fusion system = 
|       vip daily login = 
|             vip level = 
|    finish line reward = 
|    availability other = 
  • See {{A8box}} for parameter explanation.
  • Availability parameters are only processed by style = compact and style = infobox.

Pass-through

Display style

|                suffix = 
|               comment = 
|                 style = 
|                  size = 
  • See {{A8box}} for parameter explanation.
  • suffix is only processed by style = inline.
  • If suffix starts with a number sign (#), it is interpreted as a parameter to be displayed instead of a box (see below: § Single parameter call).
  • size is only processed by style = icon.

Statistics mini table

|                  main = 
|                engine = 
|                  tech = 
|                 class = 

Statistics

  • Statistics parameters are only processed by style = infobox and by statistics table templates with style =
    • table mini
    • table cards / table cards mincards
    • table common engines / table common engines mincards
    • table rare engines / table rare engines mincards
    • table legendary engines / table legendary engines mincards
    • table tech / table tech mincards
    • table parts / table parts mincards
    • table maintenance
  • All statistics parameter names except showstatistics and showdeviations start with an s prefix.
  • Parameters containing statistical values come in pairs:
  • Deviation parameters come in triples with additional prefixes:
    • sminparameterminimum number of cards per box
    • smeanparameteraverage number of cards per box
    • smaxparameter – maximum number of cards per box

Main

|                sitems = 
|        showstatistics = 
|         speriod start = 
|           speriod end = 
|                sboxes = 
|                scards = 
|               scommon = 
|              scommon2 = 
|                 srare = 
|                srare2 = 
|            slegendary = 
|           slegendary2 = 
|           sblueprints = 
|          sblueprints2 = 
|              sengines = 
|             sengines2 = 
|                 stech = 
|                stech2 = 
|                sparts = 
|               sparts2 = 

sitems

  • Number of items used for sample size when it differs from the official number of items in a box (items). This is only the case for
    • Split Boxes like the A8Box Optimal Split Box Optimal Split Box where all offered cards are included although the player can only choose one of a pair, and for
    • Festival Bundles like the A8Box Deluxe Festival Bundle Deluxe Festival Bundle that offer pairs of cards that officially count as 1 item, but actually consist of 2 cards.
  • If sitems is provided, it is placed above the "Statistics" comment in order to keep it out of the automated update area. Otherwise it would be overwritten.
  • Only used for style = infobox.

showstatistics

  • 1 or yes if statistical values are to be displayed.
  • Only used for style = infobox.

speriod start, speriod end

  • Date. Start and end date of the statistical sample. See {{Date}} for accepted formats.

sboxes

  • Number of opened boxes.

scards

  • Number of cards in opened boxes.
  • scards is the sample size. See {{Evaluate sample size}} for more details.

All other parameters are pairs and should have self-explaining names.

Engines

|        scustom racing = 
|       scustom racing2 = 
|             selectric = 
|            selectric2 = 
|          sexceptional = 
|         sexceptional2 = 
|                  sf12 = 
|                 sf122 = 
|                   sf6 = 
|                  sf62 = 
|   sforced four-stroke = 
|  sforced four-stroke2 = 
|  sforced-induction v8 = 
| sforced-induction v82 = 
|          sfour-stroke = 
|         sfour-stroke2 = 
|           shigh-grade = 
|          shigh-grade2 = 
|           shot wheels = 
|          shot wheels2 = 
|               shybrid = 
|              shybrid2 = 
|                   si3 = 
|                  si32 = 
|                   si4 = 
|                  si42 = 
|                   si5 = 
|                  si52 = 
|                   si6 = 
|                  si62 = 
|   slegendary electric = 
|  slegendary electric2 = 
|               srotary = 
|              srotary2 = 
|        sserial racing = 
|       sserial racing2 = 
|                  sv10 = 
|                 sv102 = 
|                  sv12 = 
|                 sv122 = 
|               sv12mpi = 
|              sv12mpi2 = 
|                  sv16 = 
|                 sv162 = 
|                   sv6 = 
|                  sv62 = 
|                   sv8 = 
|                  sv82 = 
|               sv-twin = 
|              sv-twin2 = 
|                  sw16 = 
|                 sw162 = 

Tech

|            searlytech = 
|           searlytech2 = 
|          sinitialtech = 
|         sinitialtech2 = 
|              smidtech = 
|             smidtech2 = 
|         sadvancedtech = 
|        sadvancedtech2 = 
|           scommontech = 
|          scommontech2 = 
|             sraretech = 
|            sraretech2 = 
|              sprotech = 
|             sprotech2 = 

Parts

|                stires = 
|               stires2 = 
|           ssuspension = 
|          ssuspension2 = 
|           sdrivetrain = 
|          sdrivetrain2 = 
|              sexhaust = 
|             sexhaust2 = 
|               sclassd = 
|              sclassd2 = 
|               sclassc = 
|              sclassc2 = 
|               sclassb = 
|              sclassb2 = 
|               sclassa = 
|              sclassa2 = 
|               sclasss = 
|              sclasss2 = 
|                  scar = 
|                 scar2 = 
|                 sbike = 
|                sbike2 = 

Deviations

|        showdeviations = 
|            smincommon = 
|           smeancommon = 
|            smaxcommon = 
|              sminrare = 
|             smeanrare = 
|              smaxrare = 
|         sminlegendary = 
|        smeanlegendary = 
|         smaxlegendary = 
|        sminblueprints = 
|       smeanblueprints = 
|        smaxblueprints = 
|           sminengines = 
|          smeanengines = 
|           smaxengines = 
|              smintech = 
|             smeantech = 
|              smaxtech = 
|             sminparts = 
|            smeanparts = 
|             smaxparts = 

showdeviations

  • 1 if deviations are to be displayed.
  • 0 to hide deviations for templates with multiple box sizes like A8Box Random Box 1-5 Random Box 1-5, A8Box Engine Box 1-5 Engine Box 1-5 and A8Box Tech Box 1-5 Tech Box 1-5 where per box values make no sense.
  • Should also be set to 0 when the sample consists of only 1 opened box because there can be no deviations for 1 single box.
  • Only used for style = infobox and style = table maintenance.

Single parameter call

It is possible to extract a single parameter from a first-level template instead of displaying the whole box. This function uses the suffix parameter which is the unnamed parameter of a first-level template. If it starts with a number sign (#), it is interpreted as a parameter name whose value will be displayed unformatted.

This is useful to keep articles up to date where only certain details of a box are mentioned without displaying the whole box. Example:

The Champion Kit Box currently contains {{Champion Kit Box|#items}} cards.
The Champion Kit Box currently contains 30 cards.

Single parameters calls can also be processed in further calculations (note the different usage of the suffix parameter with and without #):

Three {{Finish Line Box|es}} and one {{Champion Kit Box}} will grant a total of {{#expr:3*{{Finish Line Box|#items}}+{{Champion Kit Box|#items}}}} cards.
Three A8Box Finish Line Box Finish Line Boxes and one A8Box Champion Kit Box Champion Kit Box will grant a total of 39 cards.

As the output of a single parameter call is always unformatted, it may have to be adapted manually:

The last Ultra Box was opened on {{Ultra Box|#speriod end}}.
The last Ultra Box was opened on {{date|{{Ultra Box|#speriod end}}|mdy}}.
The last Ultra Box was opened on 2020-01-21.
The last Ultra Box was opened on Jan 21, 2020.

Templates are not parsed inside <math> tags. If you want to use box parameters in a LaTeX formula, use {{#tag:math|}} instead. Example for the average engine frequency of Finish Line Box and Champion Kit Box:

{{#tag:math|
  \bar x =
  \dfrac{ {{Finish Line Box|#sengines2}} + {{Champion Kit Box|#sengines2}} }2 =
  {{#expr: ({{Finish Line Box|#sengines2}} + {{Champion Kit Box|#sengines2}}) / 2}}
}}
gives
$ \bar x = \dfrac{ 43.85 + 11.93 }2 = 27.89 $

If no parameter with a name like the string following # exists, the string is displayed unparsed:

{{Finish Line Box|#es}} → {{{ es }}}

Third-level templates

The following overview shows the third-level templates called by {{A8box-meta}} depending on the style parameter:

Color explanation: First level Templates used by editors in articles
Second level  Metatemplate routing parameters to third-level template according to style parameter
Third level Metatemplates defining the final display style

Predefined boxes

A8Box Daily Kit Box {{Daily Kit Box}}
A8Box Finish Line Box {{Finish Line Box}}
A8Box Champion Kit Box {{Champion Kit Box}}
{{...}}
Half-custom boxes

A8Box R&amp;D Box {{R&D Basic Kit Box}}
A8Box Championship Rookie Box {{Championship Rookie Box}}
A8Box EDD Box {{EDD Rookie Box}}
{{...}}
Custom box

{{A8box}}
Table headers
↓ calls ↓ calls ↓ calls
{{A8box-meta}}
↓ calls with style =
inline · [omitted] → {{A8box inline}}
compact → {{A8box compact}}
list → {{A8box list}}
icon → {{A8box icon}}
template → {{A8box template}}
infobox → {{A8box infobox}}
table · table festival · table full {{A8box table}} is used with → {{A8box table header}}
table mini → {{A8box table statistics mini}} is used with → {{A8box table header statistics mini}}
table cards · table common engines · table rare engines · table legendary engines · table tech · table parts {{A8box table statistics}} is used with → {{A8box table header statistics}}
table cards mincards · table common engines mincards · table rare engines mincards · table legendary engines mincards · table tech mincards ·
table parts mincards
{{A8box table statistics mincards}} is used with →
table maintenance→ {{A8box table statistics maintenance}} is used with → {{A8box table header statistics maintenance}}

See also

</div>

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