Difference between revisions of "Template:Tree-Unit/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Added description of the new parameter - name)
m (Reverted edits by U12017485 (talk) to last revision by blastedryan)
 
Line 4: Line 4:
 
   
 
   
 
The template must be defined by the following parameter: the in-game vehicle code.
 
The template must be defined by the following parameter: the in-game vehicle code.
 
The optional argument <code>name</code> can be used to denote the specific name of the vessel, for example when creating a historic version of the tech tree.
 
 
   
 
   
 
Example of use:
 
Example of use:
Line 21: Line 19:
 
|<code><nowiki>{{Tree-Unit|b_48_firecrest}}</nowiki></code><br>
 
|<code><nowiki>{{Tree-Unit|b_48_firecrest}}</nowiki></code><br>
 
|{{Tree-Unit|b_48_firecrest}}
 
|{{Tree-Unit|b_48_firecrest}}
|-
 
|<code><nowiki>{{Tree-Unit|us_pt6|name=Higgins 81 ft PT-6}}</nowiki></code><br>
 
|{{Tree-Unit|us_pt6|name=Higgins 81 ft PT-6}}
 
 
|}
 
|}

Latest revision as of 17:55, 18 July 2024

The template inserts a navigating icon for a vehicle into a table by placing a corresponding miniature copy and a link to a matching article in accordance with the parser data.

The template must be defined by the following parameter: the in-game vehicle code.

Example of use:

Code Result
{{Tree-Unit|us_m4a2_sherman}}
Item own.png
M4A2
us_m4a2_sherman.png
{{Tree-Unit|us_m4_sherman_calliope}}
Item prem.png
Calliope
us_m4_sherman_calliope.png
{{Tree-Unit|b_48_firecrest}}
Item squad.png
Firecrest
b_48_firecrest.png