FANDOM


[edit] Template-info Template documentation

This is the {{Game}} template. It accepts all common names and abbreviations of Asphalt games and returns the correct game name or game logo in any desired form. The default full name output is the corresponding page title on Asphalt Wiki, so it can be turned into a link just by adding [[ ]]. If the game name cannot be identified, nothing is returned.

Basic examples:

  • {{game|an}} → Asphalt Nitro
  • [[{{game|Asphalt 8}}]]Asphalt 8: Airborne
  • {{game|potato}}

Usage

{{game | game name | style | size =}}

Parameters

game name

  • Required. Text. First unnamed parameter.
  • Not case-sensitive, accepts all common names and abbreviations with or without whitespace and colons.
    Example: {{game|AsphALT4 eliteRac ing}} → Asphalt 4: Elite Racing

style

  • Optional. Second unnamed parameter.
  • Defaults to the full game name if omitted or not set to one of the following options:
    • medium returns the medium abbreviation.
      Example: {{game|a7|medium}} → Asphalt 7
      If no medium name exists (like for Asphalt Xtreme), the full name is displayed.
    • short returns the two-letter code in lower case as listed in Asphalt Wiki:Manual of style.
      Example: {{game|Asphalt Street Storm Racing|short}} → as
      This is useful to get unique game identifiers, for example for conditional formatting within templates. The abbreviations are the same as the pre- and suffixes for constants like a9tokens, colour names like a8legendary and CSS classes like table-ax.
    • logo displays the long rectangular game logo if available.
      Example: {{game|Asphalt 6|logo}}Logo long a6
      Default size: x21px, can be changed with size parameter.
      All long game logos listed in Category:Game logos have the same ratio of width to height so they can be used alongside each other for consistent layouts.
    • minimal displays the simplified square game logo if available.
      Example: {{game|Asphalt 7|minimal}}Logo square minimal a7
      Default size: x21px, can be changes with size parameter.
      The simplification mostly consists in the stylized game number being used without game name. For games that do not use a number icon, the full logo is displayed in a square (which makes it relatively small).
    • logo text combines logo and full game name and lets both link to the game page. This is meant especially for infobox lists of games a vehicle, item or track appears in.
      Example: {{game|Asphalt 3|logo text}}Logo long a3 Asphalt 3: Street Rules
      Size: x21px fixed.
    • heading works like logo but with a fixed size (length) of 90px. This is meant for leading game logos in h2 headings on article pages so editors do not have to add an extra size parameter.
      Example: {{game|Asphalt 1|heading}}Logo long a1
      Size: 90px fixed.

size

  • Optional, named parameter
  • Text in image size syntax like in [[File:Example.png|60px]]. Sets the size of the displayed image if applicable.
  • Defaults to 69px (which results in a height of 21px to fit in text lines).
  • Only used forlogo and minimal style.
  • size = 20px scales the image to a width of 20 pixels (px),
    size = x20px scales it to a height of 20 px.
    size = 20x20px scales the image to fit both width and height of 20 px.
  • Examples:
    {{game|a8|logo|size=150px}}Logo long a8
    {{game|a9|minimal|size=x60px}}Logo square minimal a9

Complete output overview

Tables are sorted in reverse chronological order of the games' release date.

Text only

Game Value of style parameter
default (omitted) medium short
Asphalt 9 China Asphalt 9: Legends China Asphalt 9 China 9c
Asphalt 9 Asphalt 9: Legends Asphalt 9 a9
Asphalt Streetstorm Asphalt Street Storm Racing Asphalt Streetstorm as
Asphalt Xtreme Asphalt Xtreme Asphalt Xtreme ax
Asphalt Nitro Asphalt Nitro Asphalt Nitro an
Asphalt Overdrive Asphalt Overdrive Asphalt Overdrive ao
Asphalt 8 Asphalt 8: Airborne Asphalt 8 a8
Asphalt 7 Asphalt 7: Heat Asphalt 7 a7
Asphalt Injection Asphalt Injection Asphalt Injection ai
Asphalt 3D Asphalt 3D Asphalt 3D ad
Asphalt Audi RS 3 Asphalt Audi RS 3 Asphalt Audi RS 3 ar
Asphalt 6 Asphalt 6: Adrenaline Asphalt 6 a6
Asphalt 5 Asphalt 5 Asphalt 5 a5
Asphalt 4 Asphalt 4: Elite Racing Asphalt 4 a4
Asphalt 3 Asphalt 3: Street Rules Asphalt 3 a3
Asphalt 2 Asphalt Urban GT 2 Asphalt 2 a2
Asphalt 1 Asphalt Urban GT Asphalt 1 a1

Game Value of style parameter
logo
x21px variable
minimal
x21px variable
logo text
x21px fixed
heading
90px fixed
Asphalt 9 China Logo long 9c Logo square minimal a9 Logo long 9c Asphalt 9: Legends China Logo long 9c
Asphalt 9 Logo long a9 Logo square minimal a9 Logo long a9 Asphalt 9: Legends Logo long a9
Asphalt Streetstorm Logo long as Logo square minimal as Logo long as Asphalt Street Storm Racing Logo long as
Asphalt Xtreme Logo long ax Logo square minimal ax Logo long ax Asphalt Xtreme Logo long ax
Asphalt Nitro Logo long an Logo square minimal an Logo long an Asphalt Nitro Logo long an
Asphalt Overdrive Logo long ao Logo square minimal ao Logo long ao Asphalt Overdrive Logo long ao
Asphalt 8 Logo long a8 Logo square minimal a8 Logo long a8 Asphalt 8: Airborne Logo long a8
Asphalt 7 Logo long a7 Logo square minimal a7 Logo long a7 Asphalt 7: Heat Logo long a7
Asphalt Injection Logo long placeholder Asphalt Injection
Asphalt 3D Logo long ad Logo square minimal ad Logo long ad Asphalt 3D Logo long ad
Asphalt Audi RS 3 Logo long placeholder Asphalt Audi RS 3
Asphalt 6 Logo long a6 Logo square minimal a6 Logo long a6 Asphalt 6: Adrenaline Logo long a6
Asphalt 5 Logo long a5 Logo square minimal a5 Logo long a5 Asphalt 5 Logo long a5
Asphalt 4 Logo long a4 Logo long a4 Asphalt 4: Elite Racing Logo long a4
Asphalt 3 Logo long a3 Logo long a3 Asphalt 3: Street Rules Logo long a3
Asphalt 2 Logo long a2 Logo square minimal a2 Logo long a2 Asphalt Urban GT 2 Logo long a2
Asphalt 1 Logo long a1 Logo square minimal a1 Logo long a1 Asphalt Urban GT Logo long a1

Advanced examples

  • {{currency|type={{game|asphalt 9|short}}tokens|100}}Tokens small a9 100
  • Usage with CSS classes:
{| class="table-{{game|Asphalt 8: Airborne|short}}"
! Header 1 !! Header 2
|-
| Cell 1 || Cell 2
|}
gives:
Header 1 Header 2
Cell 1 Cell 2
Community content is available under CC-BY-SA unless otherwise noted.