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

From War Thunder Wiki
Jump to: navigation, search
(Created page with "{{docpage}} This template is used to create a header for a vehicle navigation table. There is a parameter that must be set for the template to function properly, which is the...")
 
(Added Tree-Arrow-Right)
Line 9: Line 9:
 
!Example
 
!Example
 
!Code
 
!Code
!Result
+
!colspan="3" | Result
 
|-
 
|-
 
|width=200px|
 
|width=200px|
Line 17: Line 17:
 
{{Tree-Arrow}}
 
{{Tree-Arrow}}
 
{{Tree-Unit|p-26a_33}}</pre>
 
{{Tree-Unit|p-26a_33}}</pre>
|style="width:150px;text-align:center;"|
+
|style="width:150px;text-align:center;" colspan="3" |
{{Tree-Unit|p-26a_34_m2}}
+
{{Tree-Unit|p-26a_34_m2}}
 
{{Tree-Arrow}}
 
{{Tree-Arrow}}
 
{{Tree-Unit|p-26a_33}}
 
{{Tree-Unit|p-26a_33}}
 
|-
 
|-
 
|
 
|
The [[Template:Tree-Skip]] is usually used in between premium and gift vehicles. It should contain no spaces or <nowiki><br></nowiki> tags as well.
+
|-
 +
|width=400px|
 +
The [[Template:Tree-Arrow-Right]] used in between vertical vehicles is the same one as the one used in the client. There must be no spaces or <nowiki><br></nowiki> tags present. If necessary, it’s possible to make the arrow longer by setting an additional parameter.
 +
| <pre>{{Tree-Unit|p-26a_34_m2}} || {{Tree-Arrow-Right}} || {{Tree-Unit|p-26a_33}}</pre>
 +
|style="width:150px;text-align:center;"| {{Tree-Unit|p-26a_34_m2}} || {{Tree-Arrow-Right}} || {{Tree-Unit|p-26a_33}}
 +
|-
 +
|
 +
The [[Template:Tree-Skip]] is usually used in between premium and gift vehicles. It should contain no spaces or <nowiki><br></nowiki> tags as well. If necessary, it’s possible to make the space shorter or longer by setting an additional parameter.
 
|
 
|
 
<pre>{{Tree-Unit-Prem|p-26a_34}}
 
<pre>{{Tree-Unit-Prem|p-26a_34}}
 
{{Tree-Skip}}
 
{{Tree-Skip}}
 
{{Tree-Unit-Prem|b_10b}}</pre>
 
{{Tree-Unit-Prem|b_10b}}</pre>
|style="text-align:center;"|
+
|style="text-align:center;" colspan="3" |
 
{{Tree-Unit-Prem|p-26a_34}}
 
{{Tree-Unit-Prem|p-26a_34}}
 
{{Tree-Skip}}
 
{{Tree-Skip}}
Line 41: Line 48:
 
{{Tree-Unit|f4f-4}}
 
{{Tree-Unit|f4f-4}}
 
{{Tree-Group-End|f4f_group|F4F}}</pre>
 
{{Tree-Group-End|f4f_group|F4F}}</pre>
|style="text-align:center;vertical-align:top;height:170px;"|
+
|style="text-align:center;vertical-align:top;height:170px;" colspan="3" |
 
{{Tree-Group-Start}}
 
{{Tree-Group-Start}}
 
{{Tree-Unit|f4f-3}}
 
{{Tree-Unit|f4f-3}}

Revision as of 17:53, 17 May 2020

This template is used to create a header for a vehicle navigation table. There is a parameter that must be set for the template to function properly, which is the number of vehicle columns (5, 6, or 7). There is also an optional second parameter, which removes the header with the “Researchable Vehicles” and “Premium Vehicles” lines.

The template is used in combination with the Template:Tree-Line and Template:Tree-End templates. It can also be used together with the Template:Tree-Group-Start template.

Main rules of using the template:

Example Code Result

The Template:Tree-Arrow used in between linear vehicles is the same one as the one used in the client. There must be no spaces or <br> tags present. If necessary, it’s possible to make the arrow longer by setting an additional parameter.

{{Tree-Unit|p-26a_34_m2}}
{{Tree-Arrow}}
{{Tree-Unit|p-26a_33}}
Item own.png
P-26A-34 M2
p-26a_34_m2.png
Arrow.png
Item own.png
P-26A-33
p-26a_33.png

The Template:Tree-Arrow-Right used in between vertical vehicles is the same one as the one used in the client. There must be no spaces or <br> tags present. If necessary, it’s possible to make the arrow longer by setting an additional parameter.

{{Tree-Unit|p-26a_34_m2}} || {{Tree-Arrow-Right}} || {{Tree-Unit|p-26a_33}}
Item own.png
P-26A-34 M2
p-26a_34_m2.png
Arrow-left.png
Item own.png
P-26A-33
p-26a_33.png

The Template:Tree-Skip is usually used in between premium and gift vehicles. It should contain no spaces or <br> tags as well. If necessary, it’s possible to make the space shorter or longer by setting an additional parameter.

{{Tree-Unit-Prem|p-26a_34}}
{{Tree-Skip}}
{{Tree-Unit-Prem|b_10b}}
Item prem.png
P-26A-34
p-26a_34.png
Item prem.png
B-10B
b_10b.png

For more information about folders that merge vehicle groups, please see the corresponding template page.

{{Tree-Group-Start}}
{{Tree-Unit|f4f-3}}
{{Tree-Arrow}}
{{Tree-Unit|f4f-4}}
{{Tree-Group-End|f4f_group|F4F}}
Item own.png
F4F-3
f4f-3.png
Arrow.png
Item own.png
F4F-4
f4f-4.png
F4F
f4f_group.png

The Template-Arrow used in between linear vehicles is the same one as the one used in the client. There must be no spaces or
tags present. If necessary, it’s possible to make the arrow longer by setting an additional parameter.

The Template-Gap is usually used in between premium and gift vehicles. It should contain no spaces or
tags as well.

For more information about folders that merge vehicle groups, please see the corresponding template page.

Clean template source codes: