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

From War Thunder Wiki
Jump to: navigation, search
(Created page with "{{docpage}} The template inserts a navigating icon for a researchable vehicle into a table by placing a corresponding miniature copy and a link to a matching article in accor...")
 
m (update doc)
Line 1: Line 1:
 
{{docpage}}
 
{{docpage}}
  
The template inserts a navigating icon for a researchable vehicle into a table by placing a corresponding miniature copy and a link to a matching article in accordance with the parser data. To create an icon for a premium vehicle, use the [[Template:Tree-Unit-Prem|Tree-Unit-Prem]] template.
+
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 template must be defined by the following parameter: the in-game vehicle code.
Line 11: Line 11:
 
! Result
 
! Result
 
|-
 
|-
|
+
|<code><nowiki>{{Tree-Unit|us_m4a2_sherman}}</nowiki></code><br>
<code><nowiki>{{Tree-Unit|us_m4a2_sherman}}</nowiki></code><br>
+
|{{Tree-Unit|us_m4a2_sherman}}
|
+
|-
{{Tree-Unit|us_m4a2_sherman}}
+
|<code><nowiki>{{Tree-Unit|us_m4_sherman_calliope}}</nowiki></code><br>
 +
|{{Tree-Unit|us_m4_sherman_calliope}}
 +
|-
 +
|<code><nowiki>{{Tree-Unit|b_48_firecrest}}</nowiki></code><br>
 +
|{{Tree-Unit|b_48_firecrest}}
 
|}
 
|}

Revision as of 01:26, 5 September 2020

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