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

From War Thunder Wiki
Jump to: navigation, search
Line 4: Line 4:
 
  | #default = [[File:Item_own.png|link={{{link|}}}|class=tree-item-js]]
 
  | #default = [[File:Item_own.png|link={{{link|}}}|class=tree-item-js]]
 
}}</div><div class="tree-item-text"><span class="tree-item-text-scroll">{{{text|}}}</span></div><div class="tree-item-img">{{#if: {{{image|}}}|[[File:{{{image}}}|108x66px]]}}</div></div></includeonly><noinclude>
 
}}</div><div class="tree-item-text"><span class="tree-item-text-scroll">{{{text|}}}</span></div><div class="tree-item-img">{{#if: {{{image|}}}|[[File:{{{image}}}|108x66px]]}}</div></div></includeonly><noinclude>
 +
== Description ==
 +
This template is a fully customisable version of [[Template:Tree-Unit]].
  
A customizable version of the tree-unit template.
+
== Use ==
 +
{{Notice|For clarity template parameters are shown on separate lines. In practice this template is probably better used as a single line}}
 +
<pre>
 +
{{User:U13682523/Tree-Custom
 +
| text =
 +
| link =
 +
| image =
 +
| colour =
 +
}}</pre>
 +
 
 +
== Parameters ==
 +
* '''text''' - the text to display where the vehicle name would normally be (optional).
 +
* '''link''' - the name of the page the box should link to when clicked (optional).
 +
* '''image''' - the filename of the image to display where the vehicle icon would go (optional).
 +
* '''colour''' - the background colour, specify either '''premium''' or '''squad''' or ignore for default colour
 +
 
 +
== Examples of use ==
 +
Linking to the [[Lightning F.6]] page, with a squad coloured background, the text "Random Vehicle", and an image of a ship:
 +
 
 +
{{User:U13682523/Tree-Custom|link=Lightning_F.6|text=Random Vehicle|colour=squad|image=AIShipDM Battleship Tirpitz.png}}
 +
 
 +
<pre>
 +
{{User:U13682523/Tree-Custom
 +
| link = Lightning_F.6
 +
| text = Random Vehicle
 +
| colour = squad
 +
| image = AIShipDM Battleship Tirpitz.png
 +
}}
 +
</pre>
  
 
</noinclude>
 
</noinclude>

Revision as of 21:51, 28 January 2021

Description

This template is a fully customisable version of Template:Tree-Unit.

Use

Msg-info.png For clarity template parameters are shown on separate lines. In practice this template is probably better used as a single line
{{User:U13682523/Tree-Custom
| text =
| link =
| image =
| colour =
}}

Parameters

  • text - the text to display where the vehicle name would normally be (optional).
  • link - the name of the page the box should link to when clicked (optional).
  • image - the filename of the image to display where the vehicle icon would go (optional).
  • colour - the background colour, specify either premium or squad or ignore for default colour

Examples of use

Linking to the Lightning F.6 page, with a squad coloured background, the text "Random Vehicle", and an image of a ship:

Item own.png
{{{1}}}
{{User:U13682523/Tree-Custom
| link = Lightning_F.6
| text = Random Vehicle
| colour = squad
| image = AIShipDM Battleship Tirpitz.png
}}