Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
(rework and update unit navigation)
mNo edit summary
Line 20: Line 20:
; 19 War Factory
; 19 War Factory
}}{{#vardefine:max | 19  
}}{{#vardefine:max | 19  
}}{{#vardefine:pos | {{#sub:{{#var:names}} | {{#expr: {{#pos:{{#var:names}}|Crawler}} - 3}} | 3}}
}}{{#vardefine:pos | {{#sub:{{#var:names}} | {{#expr: {{#pos:{{#var:names}}|{{PAGENAME}}}} - 3}} | 3}}
}}{{#vardefine:prev | {{#ifexpr: {{#var:pos}} = 1 | {{#var:max}} | {{#expr: {{#var:pos}} - 1}} }}
}}{{#vardefine:prev | {{#ifexpr: {{#var:pos}} = 1 | {{#var:max}} | {{#expr: {{#var:pos}} - 1}} }}
}}{{#vardefine:next | {{#ifexpr: {{#var:pos}} = {{#var:max}} | 1 | {{#expr: {{#var:pos}} + 1}} }}
}}{{#vardefine:next | {{#ifexpr: {{#var:pos}} = {{#var:max}} | 1 | {{#expr: {{#var:pos}} + 1}} }}

Revision as of 19:49, 18 January 2024

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