Template:BaseStat: Difference between revisions

From Tower Defense Simulator Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Mentin123
No edit summary
imported>Mentin123
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="box">
<div class="box">
<div class="angled-header">'''Base Stats'''</div>
<div class="upgrade-header">
<div class="box-content">{{{Image}}}
<div class="upgrade-header-inner">
<div class="unisans upgrade-title">{{{Title|{{BASEPAGENAME}}}}}<br/><div class="upgrade-subtitle">{{#if:{{{Unlock Cost|}}}|Cost: {{{Unlock Cost}}}}}{{#if:{{{Map Unlock|}}}|Map: {{{Map Unlock}}}}}{{#if:{{{Level Unlock|}}}|Level: {{{Level Unlock}}}}}{{#if:{{{Category|}}}|&nbsp;• {{{Category}}}}}{{#if:{{{Role|}}}|&nbsp;• {{{Role}}}}}</div></div>
<div class="box-list">
</div>
<div>'''Cost'''<br/>{{{Cost}}}</div>
</div>
<div>'''Placement Footprint'''<br/>{{{Footprint}}}</div>
<div class="upgrade-body {{#if:{{{Image|}}}|upgrade-body-has-image}} {{#if:{{{Narrator|}}}|{{{Narrator}}}|{{#invoke:Randomizer|heeho}}}}">
<div>'''Sell Price'''<br/>{{{Sell Price}}}</div>
<div class="upgrade-info-wrapper">
<div>'''Placement Type'''<br/>{{{Placement Type}}}</div>
<div class="upgrade-info-content upgrade-list">
<div>'''Damage'''<br/>{{{Damage}}}</div>
<div>'''Damage Method'''<br/>{{{Damage Type}}}</div>
<div>'''Cost'''<br/>{{{Cost}}}</div>
<div>'''Placement Footprint'''<br/>{{#iferror:{{#expr:{{{Footprint}}}+0}}|{{{Footprint}}}|{{#invoke:NumName|placement|{{{Footprint}}}}} ({{{Footprint}}})}}</div>
<div>'''Firerate'''<br/>{{{Firerate}}}</div>
<div>'''Hidden Detection'''<br/>{{{Hidden}}}</div>
<div>'''Sell Price'''<br/>{{{Sell Price}}}</div>
<div>'''Range'''<br/>{{{Range}}}</div>
<div>'''Placement Type'''<br/>{{{Placement Type}}}</div>
<div>'''Lead Detection'''<br/>{{{Lead}}}</div>
<div>'''Damage'''<br/>{{{Damage}}}</div>
<div>'''Placement Limit'''<br/>{{{Placement}}}</div>
<div>'''Damage Method'''<br/>{{{Damage Type}}}</div>
<div>'''Flying Detection'''<br/>{{{Fly}}}</div>{{#if:{{{Title1|}}}|<nowiki/>
<div>'''Firerate'''<br/>{{{Firerate}}}</div>
<div>'''{{{Title1| }}}'''<br/>{{{Stat1| }}}</div>}}{{#if:{{{Title2|}}}|<nowiki/>
<div>'''Hidden Detection'''<br/>{{{Hidden}}}</div>
<div>'''{{{Title2| }}}'''<br/>{{{Stat2| }}}</div>}}{{#if:{{{Title3|}}}|<nowiki/>
<div>'''Range'''<br/>{{{Range}}}</div>{{#if:{{{Lead|}}}|<nowiki/>
<div>'''{{{Title3| }}}'''<br/>{{{Stat3| }}}</div>}}{{#if:{{{Title4|}}}|<nowiki/>
<div>'''Lead Detection'''<br/>{{{Lead}}}</div>}}
<div>'''{{{Title4| }}}'''<br/>{{{Stat4| }}}</div>}}
<div>'''Placement Limit'''<br/>{{{Placement}}}</div>{{#if:{{{Fly|}}}|<nowiki/>
<div>'''Flying Detection'''<br/>{{{Fly}}}</div>}}{{#if:{{{Title1|}}}|<nowiki/>
</div>
<div>'''{{{Title1| }}}'''<br/>{{{Stat1| }}}</div>}}{{#if:{{{Title2|}}}|<nowiki/>
</div>
<div>'''{{{Title2| }}}'''<br/>{{{Stat2| }}}</div>}}{{#if:{{{Title3|}}}|<nowiki/>
</div><noinclude><br/>{{Documentation}}[[Category:Data Templates]]</noinclude>
<div>'''{{{Title3| }}}'''<br/>{{{Stat3| }}}</div>}}{{#if:{{{Title4|}}}|<nowiki/>
<div>'''{{{Title4| }}}'''<br/>{{{Stat4| }}}</div>}}
</div>
</div>
{{#if:{{{Image|}}}|
<div class="upgrade-image-wrapper">
[[{{#invoke:StripNaked|heeho|{{{Image}}}}}|200px|center]]
</div>
}}
</div>
</div><noinclude><br/>{{Documentation|Lua=StripNaked|Lua2=Randomizer}}[[Category:Data Templates]]</noinclude>

Latest revision as of 11:19, 3 May 2026

BaseStat
Cost
{{{Cost}}}
Placement Footprint
{{{Footprint}}}
Sell Price
{{{Sell Price}}}
Placement Type
{{{Placement Type}}}
Damage
{{{Damage}}}
Damage Method
{{{Damage Type}}}
Firerate
{{{Firerate}}}
Hidden Detection
{{{Hidden}}}
Range
{{{Range}}}
Placement Limit
{{{Placement}}}


Template Documentation
Portions of this template may not be visible without parameter values provided
Lua Module: Module:StripNaked; Module:Randomizer

Description

[edit]

This template is used to add a tower's base stats.

Syntax & Usage

[edit]
{{BaseStat
|Image = <Tower Icon>
|Cost = <Placement Cost>
|Footprint = <Placement Footprint>
|Sell Price = <Sell Cost>
|Placement Type = <Placement Type>
|Damage = <Damage>
|Damage Type = <Damage Type>
|Firerate = <Firerate>
|Hidden = <Hidden Detection Level>
|Range = <Range>
|Lead = <Lead Penetration Level>
|Placement = <Placement Limit>
|Fly = <Flying Detection Level>
|Title1 = <Custom Stat Title>
|Stat1 = <Custom Stat Value>
|Title2 = <Custom Stat Title>
|Stat2 = <Custom Stat Value>
|Title3 = <Custom Stat Title>
|Stat3 = <Custom Stat Value>
|Title4 = <Custom Stat Title>
|Stat4 = <Custom Stat Value>
}}

The image parameter should be the tower icon. The various statistic parameters are used to add basic statistics to the template. These have to be filled out. If a tower does not have any of these statistics, such as a tower not having any range, it should be set to N/A. The title and stat parameters are used to add tower specific statistics, if a tower has any.

Examples

[edit]

No Custom Stats

[edit]
{{BaseStat
|Image=[[File:DefaultScout3.png|100px]]
|Cost = {{Money|200}}
|Footprint = Average (1.5)
|Sell Price = {{Money|66}}
|Placement Type = Ground
|Damage = [[File:Damage Icon.png|20px|Damage]]1
|Damage Type = Single
|Firerate = [[File:Cooldown Icon.png|20px|Firerate]]1.508
|Hidden = {{Hidden|Hidden Detection}}Level 2+
|Range = [[File:Range Icon.png|20px|Range]]12
|Lead = N/A
|Placement = N/A
|Fly = N/A
}}
BaseStat
Cost
Cash$200
Placement Footprint
Average (1.5)
Sell Price
Cash$66
Placement Type
Ground
Damage
Damage1
Damage Method
Single
Firerate
Firerate1.508
Hidden Detection
Hidden DetectionLevel 2+
Range
Range12
Lead Detection
N/A
Placement Limit
N/A
Flying Detection
N/A

Custom Stats

[edit]
{{BaseStat
|Image = [[File:DefaultAcceleratorIcon2.png|100px]]
|Cost = {{Money|4,250}}
|Footprint = Average (1.5)
|Sell Price = {{Money|1,416}}
|Placement Type = Ground
|Damage = [[File:Damage Icon.png|20px|Damage]]10
|Damage Type = Burst
|Firerate = [[File:Cooldown Icon.png|20px|Firerate]]0.208
|Hidden = {{Hidden|Hidden Detection}}Level 1+
|Range = [[File:Range Icon.png|20px|Range]]17.5
|Lead = {{Lead|Lead Penetration}}Level 0+
|Placement = [[File:PlacementLimit.png|20px|Placement Limit]]8
|Fly = N/A
|Title1 = Overcharge
|Stat1 = [[File:Cooldown Buff.png|20px|Overcharge]]180
|Title2 = Charge-Up
|Stat2 = [[File:Cooldown Icon.png|20px|Charge-Up]]3
|Title3 = Cooldown
|Stat3 = [[File:Cooldown Icon.png|20px|Cooldown]]2
}}
BaseStat
Cost
Cash$4,250
Placement Footprint
Average (1.5)
Sell Price
Cash$1,416
Placement Type
Ground
Damage
Damage10
Damage Method
Burst
Firerate
Firerate0.208
Hidden Detection
Hidden DetectionLevel 1+
Range
Range17.5
Lead Detection
Lead PenetrationLevel 0+
Placement Limit
Placement Limit8
Flying Detection
N/A
Overcharge
Overcharge180
Charge-Up
Charge-Up3
Cooldown
Cooldown2