Difference between revisions of "User:Flame2512/Tree-Text"

From War Thunder Wiki
Jump to: navigation, search
(A copy of the tree-unit template for now)
 
(Changed to nameless parameters)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="tree-item"><div class="tree-item-background">{{#ifeq: {{#unit:{{{1|}}}|premium}} | 1 | [[File:Item_prem.png|link={{#unit:{{{1|}}}|статья}}|class=tree-item-js]] | {{#ifeq: {{#unit:{{{1|}}}|squadron}} | 1 | [[File:Item_squad.png|link={{#unit:{{{1|}}}|article}}|class=tree-item-js]] | [[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">{{#unit:{{{1|}}}|icon}}</div></div></includeonly>
+
<includeonly><div class="tree-item"><div class="tree-item-background">{{#switch: {{{3}}}
 +
| premium = [[File:Item_prem.png|link={{{2|}}}|class=tree-item-js]]
 +
| squad = [[File:Item_squad.png|link={{{2|}}}|class=tree-item-js]]
 +
| #default = [[File:Item_own.png|link={{{2|}}}|class=tree-item-js]]
 +
}}</div><div class="tree-item-text" style="float: none; text-align: center; display: table; height: 48px"><div style="display:table-cell;vertical-align:middle;">{{{1}}}</div></div></div></includeonly>

Latest revision as of 14:42, 30 January 2021