Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
(add value calculation)
(add splash index)
Line 76: Line 76:
<table class="infobox-table mw-collapsible mw-collapsed">
<table class="infobox-table mw-collapsible mw-collapsed">
<caption style="padding:0;"></caption>
<caption style="padding:0;"></caption>
<tr style="border-top:1px solid #0002;">
<tr style="border-top:1px solid #0002;line-height:1.1">
     <td colspan="2"><small>Values are normalized to the supply cost of the unit to make it easier to compare units.</small>
     <td colspan="2"><small>Values are normalized to the supply cost of the unit to make it easier to compare units.<br>The Splash Index tries to calculate the effectiveness vs spam by multiply attacks with slash area and a penalty for damage below 350.</small>
     </td>
     </td>
</tr>
</tr>
Line 106: Line 106:
{{#ifeq:{{#var:unlockcost}} | 0 || {{#expr: {{#var:dps}} / ({{#var:cost}} + {{#var:unlockcost}}) round 1}} - }}
{{#ifeq:{{#var:unlockcost}} | 0 || {{#expr: {{#var:dps}} / ({{#var:cost}} + {{#var:unlockcost}}) round 1}} - }}
{{#expr: {{#var:dps}} / {{#var:cost}} round 1}}
{{#expr: {{#var:dps}} / {{#var:cost}} round 1}}
    </td>
</tr>
<tr>
    <th>Splash Index</th>
    <td>
{{#expr:
    {{#ifeq: {{#var:splash}}|0|1|{{#var:splash}} }}
    {{#if: {{#pos: {{#var:atk}} | * }} | * 4 }}
    {{#if: {{#pos: {{#var:atk}} | - }} | * .1 }}
    {{#ifeq: {{#expr: ({{#var:atk}}) < 350 }} | 1 | * (({{#var:atk}}) / 350) }}
    * {{#var:units}}
    / {{#var:atkint}}
    round 1
}}
     </td>
     </td>
</tr>
</tr>

Revision as of 13:12, 24 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

v0.7.42

Infobox for all ingame stats for this unit

Template parameters

ParameterDescriptionTypeStatus
Imageimage

File name

Stringsuggested
Unit Typetype

A short description of the purpose

Example
"Light aircraft" or "High-speed anti-unit bot"
Stringsuggested
Descriptionigdesc

The in-game description

Example
A high-speed and high HP unit that attacks enemies at close range with a laser beam that gradually grows in size. The bane of all high HP units
Stringsuggested