Difference between revisions of "Template:Tree-Unit"
blastedryan (talk | contribs) (this should remove the need for template:tree-unit-prem with the #unit:|gift automatically choosing the right background) |
Inceptor57 (talk | contribs) (Edit turns every premium into a gold background, ex. the LVTA4 ZIS2, M24 TL, and E-100 which do not have gold backgrounds (are not premiums)) |
||
Line 1: | Line 1: | ||
− | <includeonly><div class="tree-item"><div class="tree-item-background">[[File: | + | <includeonly><div class="tree-item"><div class="tree-item-background">[[File:Item_own.png|link={{#unit:{{{1|}}}|article}}|class=tree-item-js]]</div><div class="tree-item-text"><span class="tree-item-text-scroll">{{#if:{{#unit:{{{1|}}}|pseudonym}}|{{#unit:{{{1|}}}|pseudonym}}|{{{1|}}}}}</span></div><div class="tree-item-img">https://encyclopedia.warthunder.com/slots/{{#unit:{{{1|}}}|image}}.png</div></div></includeonly><noinclude> |
{{doc}} | {{doc}} | ||
[[Category:Trees]]</noinclude> | [[Category:Trees]]</noinclude> |
Revision as of 16:37, 9 June 2019
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}} |
|
{{Tree-Unit|us_m4_sherman_calliope}} |
|
{{Tree-Unit|b_48_firecrest}} |