Template:UnitInfobox: Difference between revisions
From Mechabellum Wiki
(add next/prev links) |
(add value calculation) |
||
Line 73: | Line 73: | ||
}} | }} | ||
</table> | </table> | ||
<small class="pull-right">[[Template:UnitData|v{{#var:update}}]]</small> | {{#ifeq:{{#var:cost|0}}|0|| | ||
<table class="infobox-table mw-collapsible mw-collapsed"> | |||
<caption style="padding:0;"></caption> | |||
<tr style="border-top:1px solid #0002;"> | |||
<td colspan="2"><small>Values are normalized to the supply cost of the unit to make it easier to compare units.</small> | |||
</td> | |||
</tr> | |||
<tr> | |||
<th>Unit Cost</th> | |||
<td> | |||
{{#expr: {{#var:cost}} / {{#var:units}} round 1}} | |||
{{#ifeq:{{#var:unlockcost}} | 0 || - {{#expr: ({{#var:cost}} + {{#var:unlockcost}}) / {{#var:units}} round 1}} }} | |||
</td> | |||
</tr> | |||
<tr> | |||
<th>HP Value</th> | |||
<td> | |||
{{#ifeq:{{#var:unlockcost}} | 0 || {{#expr: ({{#var:hp}} * {{#var:units}}) / ({{#var:cost}} + {{#var:unlockcost}}) round 1}} - }} | |||
{{#expr: ({{#var:hp}} * {{#var:units}}) / {{#var:cost}} round 1}} | |||
</td> | |||
</tr> | |||
<tr> | |||
<th>Burst Value</th> | |||
<td> | |||
{{#ifeq:{{#var:unlockcost}} | 0 || {{#expr: {{#var:burst}} / ({{#var:cost}} + {{#var:unlockcost}}) round 1}} - }} | |||
{{#expr: {{#var:burst}} / {{#var:cost}} round 1}} | |||
</td> | |||
</tr> | |||
<tr> | |||
<th>DPS Value</th> | |||
<td> | |||
{{#ifeq:{{#var:unlockcost}} | 0 || {{#expr: {{#var:dps}} / ({{#var:cost}} + {{#var:unlockcost}}) round 1}} - }} | |||
{{#expr: {{#var:dps}} / {{#var:cost}} round 1}} | |||
</td> | |||
</tr> | |||
</table> | |||
}}<small class="pull-right">[[Template:UnitData|v{{#var:update}}]]</small> | |||
</div> | </div> | ||
<noinclude> | <noinclude> |
Revision as of 22:54, 21 June 2023
Error: Unit "UnitInfobox" undefined!
UnitInfobox
|
Mobility | Ground |
---|---|
Giant | No |
Cost | 0 |
Unlock cost | Free |
Units | 1 |
HP | 0 |
Attack | 0 |
Target | Ground Only |
Attack Interval | 1s |
Splash Damage | No |
Burst Damage | Minimal |
Max DPS | 0 |
Range | Melee |
Speed | 0m/s |
Infobox for all ingame stats for this unit
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | File name | String | suggested |
Unit Type | type | A short description of the purpose
| String | suggested |
Description | igdesc | The in-game description
| String | suggested |