Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
m (test)
m (test)
Line 34: Line 34:
}}{{#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}} }}
}}{{UnitData}}<div class="infobox" width: 400px; style="max-width: 100%;">
}}{{UnitData}}<div class="infobox" ; style="width:800px;">
{| class="infobox-nav"
{| class="infobox-nav"
|[[{{#sub: {{#explode: {{#var:names}} | ; | {{#var:prev}} }} | 2 }}|<span class="carousel-control-prev-icon"></span>]]
|[[{{#sub: {{#explode: {{#var:names}} | ; | {{#var:prev}} }} | 2 }}|<span class="carousel-control-prev-icon"></span>]]
Line 42: Line 42:
{{#if:{{{type|}}}|<p class="text-center h5">{{{type}}}</p>}}
{{#if:{{{type|}}}|<p class="text-center h5">{{{type}}}</p>}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
<div class="infobox-image" style="width:333px; overflow: auto; background-color: #0003;">[[File:{{PAGENAME:{{{image}}}}}]]</div>}}
<div class="infobox-image" style="width:340px; overflow: auto; background-color: #0003;">[[File:{{PAGENAME:{{{image}}}}}]]</div>}}
<table class="infobox-table">
<table class="infobox-table">
<tr>
<tr>

Revision as of 04:31, 1 April 2025

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