FANDOM


Line 3: Line 3:
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|upgrades)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|upgrades)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|mastery)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|mastery)|1}}
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|color customization)|1}}
+
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|colors)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|decals)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|decals)|1}}
  +
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|parts)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|gallery)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|gallery)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|miscellaneous)|1}}
 
{{#ifeq:{{last word|{{{1|}}}|sep=%(}}|miscellaneous)|1}}

Revision as of 20:54, September 10, 2019

[edit] Template-info Template documentation
Ambox content This template is used on 2,600+ 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 {{Vehicle name}} template. It is a helper template for {{Tabs vehicle}} and removes the last word in parentheses of a string if it equals one of the following words:

  • stats
  • upgrades
  • mastery
  • colors
  • decals
  • parts
  • gallery
  • miscellaneous
  • Championship
  • Drive Syndicate
  • Enduro Double Down
  • Festival
  • Grand Prix
  • Research & Development
  • Special Event
  • Special Project
  • World Tour

Other words in parentheses are left untouched.

Usage

{{vehicle name|string}}

Examples

  • {{vehicle name|BMW M2 (upgrades)}} → BMW M2
  • {{vehicle name|Nissan GT-R (R35) (upgrades)}} → Nissan GT-R (R35)
  • {{vehicle name|Nissan GT-R (R35) (something)}} → Nissan GT-R (R35) (something)
  • {{vehicle name|Nissan GT-R (R35)}} → Nissan GT-R (R35)
  • {{vehicle name|BMW M2}} → BMW M2

</div>

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