Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{UnitData|Fortress}}<div class="infobox" style="max-width: 100%;">
{{UnitData}}<div class="infobox" style="max-width: 100%;">
{| class="infobox-nav"
{| class="infobox-nav"
|[[{{#switch:{{PAGENAME}}|Marksman=Fortress|Vulcan=Marksman|Melting Point=Vulcan|Rhino=Melting Point|Wasp=Rhino|Mustang=Wasp|Steel Ball=Mustang|Fang=Steel Ball|Crawler=Fang|Overlord=Crawler|Stormcaller=Overlord|Sledgehammer=Stormcaller|Hacker=Sledgehammer|Arclight=Hacker|Phoenix=Arclight|Fortress=Phoenix|#default={{PAGENAME}}}}|<span class="carousel-control-prev-icon"></span>]]
|[[{{#switch:{{PAGENAME}}|Marksman=Fortress|Vulcan=Marksman|Melting Point=Vulcan|Rhino=Melting Point|Wasp=Rhino|Mustang=Wasp|Steel Ball=Mustang|Fang=Steel Ball|Crawler=Fang|Overlord=Crawler|Stormcaller=Overlord|Sledgehammer=Stormcaller|Hacker=Sledgehammer|Arclight=Hacker|Phoenix=Arclight|Fortress=Phoenix|#default={{PAGENAME}}}}|<span class="carousel-control-prev-icon"></span>]]
Line 114: Line 114:
     {{#ifeq: {{#var:splash}} | 0 | 1 | {{#var:splash}} }}  
     {{#ifeq: {{#var:splash}} | 0 | 1 | {{#var:splash}} }}  
     {{#if: {{#pos: {{#var:atk}} | * }} | * 4 }}
     {{#if: {{#pos: {{#var:atk}} | * }} | * 4 }}
     {{#if: {{#pos: {{#var:atk}} | - }} | * .1 }}
     {{#if: {{#pos: {{#var:atk}} | - }} | * .025 |
    {{#ifexpr: ({{#var:atk}}) > 350 | 1 | * (({{#var:atk}}) / 350) }}
      {{#ifexpr: ({{#var:atk}}) < 350 | * (({{#var:atk}}) / 350) }}
    }}
     * {{#var:units}}
     * {{#var:units}}
     / {{#var:atkint}}
     / {{#ifeq: {{PAGENAME}} | Hacker | 2 <!-- slow switching --> | {{#var:atkint}} ||
     round 1
     round 1
}}
}}

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

{{#ifeq:0|0||

Values are normalized to the supply cost of the unit to make it easier to compare units.
The Splash Index tries to calculate the effectiveness vs spam by multiply attacks with slash area and a penalty for damage below 350.
Unit Cost

Expression error: Unexpected / operator. - Expression error: Missing operand for +.

HP Value

Expression error: Unexpected * operator. - Expression error: Unexpected * operator.

Burst Value

Expression error: Unexpected / operator. - Expression error: Unexpected / operator.

DPS Value

Expression error: Unexpected / operator. - Expression error: Unexpected / operator.

Splash Index

Expression error: Unexpected < operator.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