Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
m (fix)
mNo edit summary
Line 113: Line 113:
{{#expr:  
{{#expr:  
     {{#ifeq: {{#var:splash}} | 0 | 1 | {{#var:splash}} }}  
     {{#ifeq: {{#var:splash}} | 0 | 1 | {{#var:splash}} }}  
     {{#ifexpr: {{#pos: {{#var:atk}} | * }} != -1 | * 4 }}
     {{#if: {{#pos: {{#var:atk}} | * }} | * 4 }}
     {{#ifexpr: {{#pos: {{#var:atk}} | - }} != -1 | * .1 }}
     {{#if: {{#pos: {{#var:atk}} | - }} | * .1 }}
     {{#ifexpr: ({{#var:atk}}) < 350 | 1 | * (({{#var:atk}}) / 350) }}
     {{#ifexpr: ({{#var:atk}}) < 350 | 1 | * (({{#var:atk}}) / 350) }}
     * {{#var:units}}
     * {{#var:units}}

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

v1.0

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