Template:CollapsibleUpgrade

From Tower Defense Simulator Wiki
Jump to navigation Jump to search

{{{Description}}}

Template Documentation
Portions of this template may not be visible without parameter values provided

Description

[edit]

This template is used to add collapsibles to tower upgrades.

Usage & Syntax

[edit]
{{CollapsibleUpgrade|Title = <Title>|Style = <Style>|ToggleColor = <Hex Code>|Toggle Color Hover = <Hex Code>|Description = <Description>}}
  • Title is the toggle's title. It will be surrounded on both sides by arrows, pointing up or down depending on if its expanded or collapsed. Titles should be short so that it can fit in a single line on smaller screens.
  • Style is an optional parameter used to apply style changes to the collapsible. This is the preferred method of changing colors of them to make sets of multiple collapsibles easier to tell apart. There are only five color options, DJPurple, DJGreen, DJRed, Fire and Frost.
  • ToggleColor and ToggleColorHover are optional parameters used to change the color of the collapsible. Former is the base color, while the latter is the color it changes to when hovered. Colors are picked using hex color codes. This is not meant to be used on main pages due to this not working on mobile, but can be greatly useful on fan made tower blogs.
  • Description is the list of changes made to a specific part of the tower, such as a unit.

Examples

[edit]
{{Upgrade|Upgrade Title = Level 5 - X-Mas Army - {{Money|9,500}}|Image = [[File:ElfCampLevel5Icon.png|100px]]|Information =

{{CollapsibleUpgrade|Title = Spawns Ripped Elf|Description = •800 Health [[File:Medic Ability.png|20px|Health]]

•140 Splash Damage [[File:SplashDamage.png|20px|Splash Damage]]

•40 Range [[File:Range Icon.png|20px|Firerate]]

•4.008 Firerate [[File:Cooldown Icon.png|20px|Firerate]]

•80 Spawnrate [[File:VehicleSpawn.png|20px|Spawnrate]]

•12 Explosion Range [[File:ExplosiveRange.png|20px|Explosion Range]]

•Hidden Detection {{Hidden|Hidden Detection}}}}

{{CollapsibleUpgrade|Title = Spawns Two Gunner Elves|Description = Replaces [[Cannoneer Elf|Cannoneer Elves]]

•25 Health [[File:Medic Ability.png|20px|Health]]

•6 Damage [[File:Damage Icon.png|20px|Damage]]

•6 Burst [[File:Damage Icon.png|20px|Burst]]

•0.208 Firerate [[File:Cooldown Icon.png|20px|Firerate]]

•1 Cooldown [[File:Cooldown Icon.png|20px|Cooldown]]

•25 Range [[File:Range Icon.png|20px|Range]]

•25 Spawnrate [[File:VehicleSpawn.png|20px|Spawnrate]]

•Hidden Detection {{Hidden|Hidden Detection}}}}

{{CollapsibleUpgrade|Title = Spawns Gift Bomber|Description = Replaces [[Bomber Elf (Unit)|Bomber Elf]]

•100 Health [[File:Medic Ability.png|20px|Health]]

•40 Splash Damage [[File:SplashDamage.png|20px|Splash Damage]]

•2.008 Firerate [[File:Cooldown Icon.png|20px|Firerate]]

•14 Range [[File:Range Icon.png|20px|Range]]

•50 Spawnrate [[File:VehicleSpawn.png|20px|Spawnrate]]

•8 Explosion Range [[File:ExplosiveRange.png|20px|Explosion Range]]

•Does not collide with smaller enemies

•Hidden Detection {{Hidden|Hidden Detection}}}}


Sell Price changes to {{Money|5,091}}}}
Script error: No such module "StripNaked".
Script error: No such module "StripNaked". • Cost: Script error: No such module "StripNaked".

<div class="upgrade-body upgrade-body-has-image Script error: No such module "Randomizer".">

•800 Health Health

•140 Splash Damage Splash Damage

•40 Range Firerate

•4.008 Firerate Firerate

•80 Spawnrate Spawnrate

•12 Explosion Range Explosion Range

•Hidden Detection Hidden Detection

Replaces Cannoneer Elves

•25 Health Health

•6 Damage Damage

•6 Burst Burst

•0.208 Firerate Firerate

•1 Cooldown Cooldown

•25 Range Range

•25 Spawnrate Spawnrate

•Hidden Detection Hidden Detection

Replaces Bomber Elf

•100 Health Health

•40 Splash Damage Splash Damage

•2.008 Firerate Firerate

•14 Range Range

•50 Spawnrate Spawnrate

•8 Explosion Range Explosion Range

•Does not collide with smaller enemies

•Hidden Detection Hidden Detection


Sell Price changes to CashScript error: No such module "Money".

[[Script error: No such module "StripNaked".|200px|center]]