Difference between revisions of "Template:Tree-Unit/Documentation"
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}} |
|
{{Tree-Unit|us_m4_sherman_calliope}} |
|
{{Tree-Unit|b_48_firecrest}} |
|
{{Tree-Unit|us_pt6|name=Higgins 81 ft PT-6}} |





