User:Flame2512/Tree-Custom

From War Thunder Wiki
Jump to: navigation, search

Description

This template is a fully customisable version of Template:Tree-Unit.

Use

{{User:U13682523/Tree-Custom|Text|Link|Colour|img=|img_url=}}

Parameters

All parameters are optional and can be left blank if not desired:

  • Text - The first parameter is the text to display
  • Link - The second parameter is the name of the page the box should link to when clicked
  • Colour - The background colour, specify either premium or squad or ignore for default colour
  • img - The filename of the image to display where the vehicle icon would go
  • img_url - The URL of an external file to display, a vehicle code is also accepted. This has no effect if img is used.

Examples of use

Example #1

Linking to the Lightning F.6 page, with a squad coloured background, the text "Random Vehicle", and an image specified by wiki file name:

Item squad.png
Random vehicle
AIShipDM Battleship Tirpitz.png
{{User:U13682523/Tree-Custom|Random vehicle|Lightning F.6|squad|img=AIShipDM Battleship Tirpitz.png}}

Example #2

Linking to the Lightning F.6 page, with a premium coloured background, the text "Random Vehicle", and an image specified by an external URL:

Item prem.png
Random vehicle
b-17g.png
{{User:U13682523/Tree-Custom|Random vehicle|Lightning F.6|premium|img_url=http://encyclopedia.warthunder.com/slots/b-17g.png}}

Example #3

Linking to the Lightning F.6 page, with a regular coloured background, the text "Random Vehicle", and an image specified using a vehicle code:

Item own.png
Random vehicle
a6m5otsu.png
{{User:U13682523/Tree-Custom|Random vehicle|Lightning F.6||img_url=a6m5otsu}}