[edit] Template-info.png 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}}Asphalt 6: Adrenaline
      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}}Asphalt 7: Heat
      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}}Asphalt 3: Street Rules 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}}Asphalt Urban GT
      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}}Asphalt 8: Airborne
    {{game|a9|minimal|size=x60px}}Asphalt 9: Legends

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 Asphalt 9: Legends China Asphalt 9: Legends China Asphalt 9: Legends China Asphalt 9: Legends China Asphalt 9: Legends China
Asphalt 9 Asphalt 9: Legends Asphalt 9: Legends Asphalt 9: Legends Asphalt 9: Legends Asphalt 9: Legends
Asphalt Streetstorm Asphalt Street Storm Racing Asphalt Street Storm Racing Asphalt Street Storm Racing Asphalt Street Storm Racing Asphalt Street Storm Racing
Asphalt Xtreme Asphalt Xtreme Asphalt Xtreme Asphalt Xtreme Asphalt Xtreme Asphalt Xtreme
Asphalt Nitro Asphalt Nitro Asphalt Nitro Asphalt Nitro Asphalt Nitro Asphalt Nitro
Asphalt Overdrive Asphalt Overdrive Asphalt Overdrive Asphalt Overdrive Asphalt Overdrive Asphalt Overdrive
Asphalt 8 Asphalt 8: Airborne Asphalt 8: Airborne Asphalt 8: Airborne Asphalt 8: Airborne Asphalt 8: Airborne
Asphalt 7 Asphalt 7: Heat Asphalt 7: Heat Asphalt 7: Heat Asphalt 7: Heat Asphalt 7: Heat
Asphalt Injection Asphalt Injection Asphalt Injection Asphalt Injection Asphalt Injection Asphalt Injection
Asphalt 3D Asphalt 3D Asphalt 3D Asphalt 3D Asphalt 3D AspAsphalt 3D
Asphalt Audi RS 3 Asphalt Audi RS 3 Asphalt Audi RS 3
Asphalt 6 Asphalt 6: Adrenaline Asphalt 6: Adrenaline Asphalt 6: Adrenaline Asphalt 6: Adrenaline Asphalt 6: Adrenaline
Asphalt 5 Asphalt 5 Asphalt 5 Asphalt 5 Asphalt 5 Asphalt 5
Asphalt 4 Asphalt 4: Elite Racing Asphalt 4: Elite Racing Asphalt 4: Elite Racing Asphalt 4: Elite Racing
Asphalt 3 Asphalt 3: Street Rules Asphalt 3: Street Rules Asphalt 3: Street Rules Asphalt 3: Street Rules
Asphalt 2 Asphalt Urban GT 2 Asphalt Urban GT 2 Asphalt Urban GT 2 Asphalt Urban GT 2 Asphalt Urban GT 2
Asphalt 1 Asphalt Urban GT Asphalt Urban GT Asphalt Urban GT Asphalt Urban GT Asphalt Urban GT

Advanced examples

  • {{currency|type={{game|asphalt 9|short}}tokens|100}}Tokens 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.