Asphalt Wiki
Asphalt Wiki
Line 3: Line 3:
 
-->|<span style="{{#switch:{{lc:{{{1}}}}}<!--
 
-->|<span style="{{#switch:{{lc:{{{1}}}}}<!--
 
Asphalt specific colors -->
 
Asphalt specific colors -->
| a8rare | rare =
+
| a8rare =
color:#d18dfa">{{{2}}}
+
color:#d18dfa">
| a8legendary | legendary =
+
| a8legendary =
color:#faa400">{{{2}}}
+
color:#faa400">
  +
| a8credits =
  +
color:#f7bc00">
  +
| a8tokens =
  +
color:#7fffd4">
  +
| a8coins =
  +
color:#fa2822">
  +
| a8licenses =
  +
color:#e09529">
  +
| a8hcoins =
  +
color:#e16213">
  +
| ancredits =
  +
color:#0eb7d1">
  +
| antokens =
  +
color:#3bc214">
 
| ">{{{2}}} <span style{{=}}"color:#ff0000">[unknown color: {{{1}}}]<!--
 
| ">{{{2}}} <span style{{=}}"color:#ff0000">[unknown color: {{{1}}}]<!--
-->}}</span><!--
+
-->}}{{{2}}}</span><!--
 
-->|{{{1}}} <span style="color:#ff0000">[no color]</span><!--
 
-->|{{{1}}} <span style="color:#ff0000">[no color]</span><!--
 
-->}}</includeonly><!--
 
-->}}</includeonly><!--

Revision as of 11:49, 28 October 2018

[edit] Template-info.png Template documentation
Ambox content.png This template is used on 3,400+ 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 template can be used to specify the foreground color of a span of text. Acceptable values are

  • Asphalt-specific colors like a8rare, a8legendary, etc.,
  • RGB hex codes, e. g. #c9e72a, or
  • any of the web colors red, blue, green, moccasin, darkorchid, etc.

To set the background color of a span of text, use {{Background color}}.

Usage

{{color | <name of color> or <hex code of color> | <text>}}

Examples

  • {{color|a8rare|Hello, world!}}Hello, world!
  • {{color|#00f000|Hello, world!}}Hello, world! [unknown color: #00f000]Hello, world!

If the second parameter is omitted, the color value is displayed as text:

  • {{color|#00f000}}
  1. 00f000 [no color]
  • {{color|red}} → red [no color]

Web colors

  • See Wikipedia: Web colors for a complete overview.

Asphalt colors

In-game text colors
Name Color Used for Corresponding text color template
a7highlight #ffc600 [no color] Asphalt 7 highlighted text
a8common5 #bcd2fe [no color] Asphalt 8 common items (5.0) {{a8common5|Text}}Text [unknown color: a8common5]Text
a8uncommon5 #00dac2 [no color] Asphalt 8 uncommon items (5.0) {{a8uncommon5|Text}}Text [unknown color: a8uncommon5]Text
a8rare5 #0084ff [no color] Asphalt 8 rare items (5.0) {{a8rare5|Text}}Text [unknown color: a8rare5]Text
a8epic5 #ad00d6 [no color] Asphalt 8 epic items (5.0) {{a8epic5|Text}}Text [unknown color: a8epic5]Text
a8legendary5 #ff8300 [no color] Asphalt 8 legendary items (5.0) {{a8legendary5|Text}}Text [unknown color: a8legendary5]Text
a8common #abd2ff [no color] Asphalt 8 common items (pre 5.0) {{a8common|Text}}Text [unknown color: a8common]Text
a8rare #cf8df9 [no color] Asphalt 8 rare items (pre 5.0) {{a8rare|Text}}Text
a8legendary #f8a400 [no color] Asphalt 8 legendary items (pre 5.0) {{a8legendary|Text}}Text
a8optimal #c3835b [no color] Asphalt 8 optimal items {{a8optimal|Text}}Text [unknown color: a8optimal]Text
a8prime #94b1d4 [no color] Asphalt 8 prime items {{a8prime|Text}}Text [unknown color: a8prime]Text
a8superb #ffbf50 [no color] Asphalt 8 superb items {{a8superb|Text}}Text [unknown color: a8superb]Text
a8festival #f77f21 [no color] Asphalt 8 Festival items {{a8festival|Text}}Text [unknown color: a8festival]Text
a9uncommon #14bbe7 [no color] Asphalt 9 uncommon items {{a9uncommon|Text}}Text [unknown color: a9uncommon]Text
a9rare #bf4cdc [no color] Asphalt 9 rare items {{a9rare|Text}}Text [unknown color: a9rare]Text
a9epic #ffd800 [no color] Asphalt 9 epic items {{a9epic|Text}}Text [unknown color: a9epic]Text
asgray #9cbebb [no color] Asphalt Streetstorm gray items {{asgray|Text}}Text [unknown color: asgray]Text
asgreen #55c78e [no color] Asphalt Streetstorm green items {{asgreen|Text}}Text [unknown color: asgreen]Text
asorange #ff714f [no color] Asphalt Streetstorm orange items {{asorange|Text}}Text [unknown color: asorange]Text
asblue #8fbdff [no color] Asphalt Streetstorm blue items {{asblue|Text}}Text [unknown color: asblue]Text
asred #ff3464 [no color] Asphalt Streetstorm red items {{asred|Text}}Text [unknown color: asred]Text
a8comet #f182e6 [no color] Asphalt 8 Comet
a8disruptor #7151ee [no color] Asphalt 8 Disruptor
a8forcefield #13f7a7 [no color] Asphalt 8 Force Field
a8hyperboost #ffbe00 [no color] Asphalt 8 Hyperboost
a8pulsewave #2b9dfe [no color] Asphalt 8 Pulsewave
a8surgestrike #ff0000 [no color] Asphalt 8 Surge Strike
a6highlight #7be2ff [no color] Asphalt 6 highlighted text
a8highlight #ff9600 [no color] Asphalt 8 highlighted text
a9highlight #ff0054 [no color] Asphalt 9 highlighted text, primary
anhighlight #ffc600 [no color] Asphalt Nitro highlighted text
aohighlight #ec008c [no color] Asphalt Overdrive highlighted text
aoblue #00aeef [no color] Asphalt Overdrive blue text, secondary
aodarkblue #0d7095 [no color] Asphalt Overdrive dark blue text, secondary
aopower #00ff00 [no color] Asphalt Overdrive power increase text
axhighlight #ffa904 [no color] Asphalt Xtreme highlighted text
a9green #c3fb12 [no color] Asphalt 9 green, primary
a9cyan #33eff9 [no color] Asphalt 9 cyan text, secondary
a9blue #2152ad [no color] Asphalt 9 blue text, secondary
a9grey #3f4b57 [no color] Asphalt 9 grey text, secondary
a9yellow #ffd300 [no color] Asphalt 9 yellow text, secondary
Asphalt Wiki currency text colors
Name Color Used for Corresponding currency template
a7dollars #a1e157 [no color] Asphalt 7 Dollars {{a7dollars|Text}}Dollars Text [unknown color: a7dollars]Text
a8bpcc #abd2ff [no color] Asphalt 8 common car Blueprints {{a8bpcc|Text}}Common Car Blueprints Text [unknown color: a8bpcc]Text
a8bpbc #abd2ff [no color] Asphalt 8 common bike Blueprints {{a8bpbc|Text}}Common Bike Blueprints Text [unknown color: a8bpbc]Text
a8bpcr #cf8df9 [no color] Asphalt 8 rare car Blueprints {{a8bpcr|Text}}Rare Car Blueprints Text [unknown color: a8bpcr]Text
a8bpcl #f8a400 [no color] Asphalt 8 legendary car Blueprints {{a8bpcl|Text}}Legendary Car Blueprints Text [unknown color: a8bpcl]Text
a8bpbl #f8a400 [no color] Asphalt 8 legendary bike Blueprints {{a8bpbl|Text}}Legendary Bike Blueprints Text [unknown color: a8bpbl]Text
a8coins #faa706 [no color] Asphalt 8 5th Anniversary Coins {{a8coins|Text}}Anniversary Coins Text
a86coins #faa706 [no color] Asphalt 8 6th Anniversary Coins {{a86coins|Text}}Festival Coins Text [unknown color: a86coins]Text
a8credits #fddc05 [no color] Asphalt 8 Credits {{a8credits|Text}}Credits Text
a8enduro #fdab00 [no color] Asphalt 8 Enduro Points {{a8enduro|Text}}Enduro Points Text [unknown color: a8enduro]Text
a8fcoins #0072ff [no color] Asphalt 8 Snowflurry Festival Coins {{a8fcoins|Text}}Festival Coins Text [unknown color: a8fcoins]Text
a8flcoins #faa706 [no color] Asphalt 8 Fast-Lane Festival Coins {{a8flcoins|Text}}Festival Coins Text [unknown color: a8flcoins]Text
a8nycoins #faa706 [no color] Asphalt 8 New Year Festival Coins {{a8nycoins|Text}}Festival Coins Text [unknown color: a8nycoins]Text
a8fuel #faa706 [no color] Asphalt 8 Fuel {{a8fuel|Text}}Fuel Text [unknown color: a8fuel]Text
a8fusion #fead00 [no color] Asphalt 8 Fusion Points {{a8fusion|Text}}Fusion Points Text [unknown color: a8fusion]Text
a8fusioncoins #dd81fe [no color] Asphalt 8 Fusion Coins {{a8fusioncoins|Text}}Fusion Coins Text [unknown color: a8fusioncoins]Text
a8hcoins #faa706 [no color] Asphalt 8 Halloween Festival Coins {{a8hcoins|Text}}Halloween Coins Text
a8fan #faa706 [no color] Asphalt 8 World Tour Fan Points {{a8fan|Text}}Fan Points Text [unknown color: a8fan]Text
a8helmets #ffca00 [no color] Asphalt 8 Helmets {{a8helmets|Text}}Helmets Text [unknown color: a8helmets]Text
a8licenses #e09529 [no color] Asphalt 8 Licenses {{a8licenses|Text}}Licenses Text
a8scoins #e00f7f [no color] Asphalt 8 Showdown Festival Coins {{a8scoins|Text}}Festival Coins Text [unknown color: a8scoins]Text
a8stars #faa706 [no color] Asphalt 8 Stars {{a8stars|Text}}Stars Text [unknown color: a8stars]Text
a8bluestars #35d0fe [no color] Asphalt 8 Blue Stars {{a8bluestars|Text}}Blue Stars Text [unknown color: a8bluestars]Text
a8tickets #a4b9cB [no color] Asphalt 8 Season Tickets {{a8tickets|Text}}Season Tickets Text [unknown color: a8tickets]Text
a8gauntlettickets #ffffff [no color] Asphalt 8 Gauntlet Tickets {{a8gauntlettickets|Text}}Gauntlet Tickets Text [unknown color: a8gauntlettickets]Text
a8goldengauntlettickets #f5c106 [no color] Asphalt 8 Golden Gauntlet Tickets {{a8goldengauntlettickets|Text}}Golden Gauntlet Tickets Text [unknown color: a8goldengauntlettickets]Text
a8gauntletbadges #ff474a [no color] Asphalt 8 Gauntlet Badges {{a8gauntletbadges|Text}}Gauntlet Badges Text [unknown color: a8gauntletbadges]Text
a8tokens #31f3fa [no color] Asphalt 8 Tokens {{a8tokens|Text}}Tokens Text
a8viplevel #d5d4d4 [no color] Asphalt 8 VIP Level {{a8viplevel|Text}}VIP LevelText [unknown color: a8viplevel]Text
a8vippoints #d5d4d4 [no color] Asphalt 8 VIP Points {{a8vippoints|Text}}VIP Points Text [unknown color: a8vippoints]Text
a9credits #ffc600 [no color] Asphalt 9 Credits {{a9credits|Text}}Credits Text [unknown color: a9credits]Text
a9seriesscore #7e38ce [no color] Asphalt 9 Series Score {{a9seriesscore|Text}}Series Score Text [unknown color: a9seriesscore]Text
a9tickets #ffffff [no color] Asphalt 9 Tickets {{a9tickets|Text}}Tickets Text [unknown color: a9tickets]Text
a9tokens #0090ff [no color] Asphalt 9 Tokens {{a9tokens|Text}}Tokens Text [unknown color: a9tokens]Text
a9syndcoins #ad9bf3 [no color] Asphalt 9 Syndicate Coins {{a9syndcoins|Text}}Syndicate Coins Text [unknown color: a9syndcoins]Text
a9syndpoints #00defd [no color] Asphalt 9 Syndicate Points {{a9syndpoints|Text}}Syndicate Points Text [unknown color: a9syndpoints]Text
a9hazard #fa0452 [no color] Asphalt 9 Hazard {{a9hazard|Text}}Hazard Text [unknown color: a9hazard]Text
a9keys #3865c42 [no color] Asphalt 9 Keys {{a9keys|Text}}Keys Text [unknown color: a9keys]Text
a9lp #ffffff [no color] Asphalt 9 Legend Points {{a9lp|Text}}Text [unknown color: a9lp]Text Legend Points
a9tradecoins #ff0054 [no color] Asphalt 9 Trade Coins {{a9tradecoins|Text}}Trade Coins Text [unknown color: a9tradecoins]Text
a9bp #d5d4d4 [no color] Asphalt 9 Blueprints (neutral) {{a9bp|Text}}Blueprints Text [unknown color: a9bp]Text
a9bpu #14bbe7 [no color] Asphalt 9 uncomon Blueprints {{a9bpu|Text}}Uncommon Blueprints Text [unknown color: a9bpu]Text
a9bpr #bf4cdc [no color] Asphalt 9 rare Blueprints {{a9bpr|Text}}Rare Blueprints Text [unknown color: a9bpr]Text
a9bpe #ffd800 [no color] Asphalt 9 epic Blueprints {{a9bpe|Text}}Epic Blueprints Text [unknown color: a9bpe]Text
9cvouchers #e78915 [no color] Asphalt 9 China Vouchers {{9cvouchers|Text}}Vouchers Text [unknown color: 9cvouchers]Text
ancredits #2697cc [no color] Asphalt Nitro Credits {{ancredits|Text}}Credits Text
ancreditswhite #ffffff [no color] Asphalt Nitro Credits white {{ancreditswhite|Text}}Credits Text [unknown color: ancreditswhite]Text
antokens #3bc214 [no color] Asphalt Nitro Tokens {{antokens|Text}}Tokens Text
anfuel #00aadf [no color] Asphalt Nitro Fuel {{anfuel|Text}}Fuel Text [unknown color: anfuel]Text
anstars #f7bb00 [no color] Asphalt Nitro Stars {{anstars|Text}}Stars Text [unknown color: anstars]Text
anvipcoins #f9bd00 [no color] Asphalt Nitro VIP Coins {{anvipcoins|Text}}VIP Coins Text [unknown color: anvipcoins]Text
anviplevel #f9bd00 [no color] Asphalt Nitro VIP Level {{anviplevel|Text}}VIP Level Text [unknown color: anviplevel]Text
aobills #56a03b [no color] Asphalt Overdrive Bills {{aobills|Text}}Text [unknown color: aobills]Text Bills
aoenergy #f755b5 [no color] Asphalt Overdrive Energy {{aoenergy|Text}}Text [unknown color: aoenergy]Text Energy
aogold #ef9a10 [no color] Asphalt Overdrive Gold {{aogold|Text}}Text [unknown color: aogold]Text Gold
aostars #efc229 [no color] Asphalt Overdrive Stars {{aostars|Text}}Text [unknown color: aostars]Text Stars
ascash #84c6d2 [no color] Asphalt Streetstorm Cash {{ascash|Text}}Text [unknown color: ascash]Text Cash
asdiamonds #00def0 [no color] Asphalt Streetstorm Diamonds {{asdiamonds|Text}}Text [unknown color: asdiamonds]Text Diamonds
asbp #00adf1 [no color] Asphalt Streetstorm Blueprints {{asbp|Text}}Text [unknown color: asbp]Text Blueprints
assubscribers #70ffff [no color] Asphalt Streetstorm Subscribers {{assubscribers|Text}}Text [unknown color: assubscribers]Text Subscribers
aseventpoints #70ffff [no color] Asphalt Streetstorm Event Points {{aseventpoints|Text}}Text [unknown color: aseventpoints]Text Event Points
asdriverrating #70ffff [no color] Asphalt Streetstorm Driver Rating {{asdriverrating|Text}}Text [unknown color: asdriverrating]Text Driver Rating
axcredits #ffa904 [no color] Asphalt Xtreme Credits {{axcredits|Text}}Credits Text [unknown color: axcredits]Text
axtokens #31f3fa [no color] Asphalt Xtreme Tokens {{axtokens|Text}}Tokens Text [unknown color: axtokens]Text
axtickets #e99e13 [no color] Asphalt Xtreme Tickets {{axtickets|Text}}Tickets Text [unknown color: axtickets]Text
axbp #d5d4d4 [no color] Asphalt Xtreme Blueprints (neutral) {{axbp|Text}}Blueprints Text [unknown color: axbp]Text
axbpd #618d91 [no color] Asphalt Xtreme Class-D Blueprints {{axbpd|Text}}Class-D Blueprints Text [unknown color: axbpd]Text
axbpc #0885c0 [no color] Asphalt Xtreme Class-C Blueprints {{axbpc|Text}}Class-C Blueprints Text [unknown color: axbpc]Text
axbpb #674f96 [no color] Asphalt Xtreme Class-B Blueprints {{axbpb|Text}}Class-B Blueprints Text [unknown color: axbpb]Text
axbpa #ee810a [no color] Asphalt Xtreme Class-A Blueprints {{axbpa|Text}}Class-A Blueprints Text [unknown color: axbpa]Text
axbps #f8c21e [no color] Asphalt Xtreme Class-S Blueprints {{axbps|Text}}Class-S Blueprints Text [unknown color: axbps]Text
axstars #ffa904 [no color] Asphalt Xtreme Stars {{axstars|Text}}Stars Text [unknown color: axstars]Text

Technical details

Before applying a color, {{Color}} calls {{Color code}} to see if there is an Asphalt-specific color name to be used.

To add a new color definition, go to {{Color code}} and follow the instructions in the "Adding new colors" section.

See also

Text color templates: Asphalt 9:

  • {{A9uncommon}}, {{9u}} for uncommon [unknown color: a9uncommon]uncommon rarity
  • {{A9rare}}, {{9r}} for rare [unknown color: a9rare]rare rarity
  • {{A9epic}}, {{9e}} for epic [unknown color: a9epic]epic rarity

Asphalt Streetstorm:

  • {{Asgray}} for gray [unknown color: asgray]gray rarity
  • {{Asgreen}} for green [unknown color: asgreen]green rarity
  • {{Asorange}} for orange [unknown color: asorange]orange rarity
  • {{Asblue}} for blue [unknown color: asblue]blue rarity
  • {{Asred}} for red [unknown color: asred]red rarity

Asphalt 8 (v5.0 onward):

  • {{A8common5}}, {{8c}} for common [unknown color: a8common5]common rarity
  • {{A8uncommon5}}, {{8u}} for uncommon [unknown color: a8uncommon5]uncommon rarity
  • {{A8rare5}}, {{8r}} for rare [unknown color: a8rare5]rare rarity
  • {{A8epic5}}, {{8e}} for epic [unknown color: a8epic5]epic rarity
  • {{A8legendary5}}, {{8l}} for legendary [unknown color: a8legendary5]legendary rarity

Asphalt 8 Vehicle Kits:

  • {{A8optimal}} for optimal [unknown color: a8optimal]optimal rarity
  • {{A8prime}} for prime [unknown color: a8prime]prime rarity
  • {{A8superb}} for superb [unknown color: a8superb]superb rarity
  • {{A8festival}} for festival [unknown color: a8festival]festival rarity

Asphalt Nitro and Asphalt 8 (until v4.9):

General:

  • {{Color}}, the main template called by all text color templates
  • {{Color code}}, the container template for Asphalt-specific color definitions
  • {{Background color}}, sets the background color only
  • {{Font}}, can set font face, text color and background color

Currency templates: Asphalt 9 China:

Asphalt 9:

Asphalt Streetstorm:

Asphalt Xtreme:

Asphalt Nitro:

Asphalt Overdrive:

Asphalt 8:

Asphalt 7:

General:

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

Redirects