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

From War Thunder Wiki
Jump to: navigation, search
m (update doc)
(Added description of the new parameter - name)
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 19: Line 21:
 
|<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}}
 
|}
 
|}

Revision as of 15:44, 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.

The optional argument name 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:

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
{{Tree-Unit|us_pt6|name=Higgins 81 ft PT-6}}
Item own.png
PT-6
us_pt6.png