Difference between revisions of "User:Flame2512/Tree-Group-Custom"

From War Thunder Wiki
Jump to: navigation, search
(Removed "ifexists" call to avoid any wiki issues)
(Added colour selection)
 
Line 1: Line 1:
 
<includeonly><div style="position:relative;"><div class="tree-group-collapse">{{{3|}}}</div>
 
<includeonly><div style="position:relative;"><div class="tree-group-collapse">{{{3|}}}</div>
<div class="tree-group"><div class="tree-group-text"><span class="tree-item-text-scroll">{{{2|}}}</span></div><div class="tree-group-img">{{{1|}}}</div></div></div></includeonly><noinclude>
+
<div class="tree-group"><div class="tree-item-background">{{#switch: {{{colour}}}
 +
| premium = https://wiki.warthunder.com/images/e/ed/Item_group_prem.png
 +
| squad = https://wiki.warthunder.com/images/7/7f/Item_group_squad.png
 +
}}</div><div class="tree-group-text"><span class="tree-item-text-scroll">{{{2|}}}</span></div><div class="tree-group-img">{{{1|}}}</div></div></div></includeonly><noinclude>
 
== Description ==
 
== Description ==
 
This template is the same as [[Template:Tree-Group]], but lets you have any image. You should specify an image URL or the name of an image on the wiki as the first parameter.
 
This template is the same as [[Template:Tree-Group]], but lets you have any image. You should specify an image URL or the name of an image on the wiki as the first parameter.
 +
 
</noinclude>
 
</noinclude>

Latest revision as of 21:12, 18 March 2021

Description

This template is the same as Template:Tree-Group, but lets you have any image. You should specify an image URL or the name of an image on the wiki as the first parameter.