Template:UnitInfobox: Difference between revisions
From Mechabellum Wiki
(remove noinclude and space) |
(remove parameter, use UnitData) |
||
Line 1: | Line 1: | ||
{{UnitData}}<div class="infobox" style="max-width: 100%;"> | |||
}} | |||
<div class="infobox-title">{{PAGENAME}}</div> | <div class="infobox-title">{{PAGENAME}}</div> | ||
{{#if:{{{type|}}}|<p class="text-center h5">{{{type}}}</p>}} | {{#if:{{{type|}}}|<p class="text-center h5">{{{type}}}</p>}} | ||
Line 28: | Line 7: | ||
<tr> | <tr> | ||
<th>Mobility</th> | <th>Mobility</th> | ||
<td>{{ | <td>{{#var:mobility|Ground}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Giant</th> | <th>Giant</th> | ||
<td>{{ | <td>{{#var:giant|No}}</td> | ||
</tr> | </tr> | ||
<tr> | |||
<th>Cost</th> | <th>Cost</th> | ||
<td>{{ | <td>{{#var:cost|0}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Unlock cost</th> | <th>Unlock cost</th> | ||
<td>{{ | <td>{{#var:unlockcost|Free}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Units</th> | <th>Units</th> | ||
<td>{{ | <td>{{#var:units|1}}</td> | ||
</tr> | </tr> | ||
<tr> | |||
<th>HP</th> | <th>HP</th> | ||
<td>{{ | <td>{{#var:hp|0}}</td> | ||
</tr> | </tr> | ||
<tr> | |||
<th>Attack</th> | <th>Attack</th> | ||
<td>{{#replace:{{ | <td>{{#replace:{{#var:atk|0}}|*| × }}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Target</th> | <th>Target</th> | ||
<td>{{ | <td>{{#var:target|Ground Only}}</td> | ||
</tr> | </tr> | ||
<tr> | |||
<th>Attack Interval</th> | <th>Attack Interval</th> | ||
<td>{{ | <td>{{#var:atkint|1}}s</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Splash Damage</th> | <th>Splash Damage</th> | ||
<td>{{#ifeq:{{ | <td>{{#ifeq:{{#var:splashdmg|0}}|0|No|{{#var:splashdmg}}m }}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Burst Damage</th> | <th>Burst Damage</th> | ||
<td>{{#ifexpr: | <td>{{#ifexpr: {{#var:burst|0}}<1 | Minimal | {{#var:burst}} }}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Max DPS</th> | <th>Max DPS</th> | ||
<td>{{# | <td>{{#var:dps|0}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Range</th> | <th>Range</th> | ||
<td>{{#ifeq:{{ | <td>{{#ifeq:{{#var:range|0}}|0|Melee|{{#var:range}}m }}</td> | ||
</tr> | </tr> | ||
<tr> | |||
<th>Speed</th> | <th>Speed</th> | ||
<td>{{ | <td>{{#var:speed|0}}m/s</td> | ||
</tr> | </tr> | ||
{{#if:{{{igdesc|}}}|<tr> | {{#if:{{{igdesc|}}}|<tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
Line 105: | Line 79: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"type": { | "type": { | ||
"label": "Unit Type", | "label": "Unit Type", | ||
Line 123: | Line 85: | ||
"example": "\"Light aircraft\" or \"High-speed anti-unit bot\"", | "example": "\"Light aircraft\" or \"High-speed anti-unit bot\"", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
Line 190: | Line 92: | ||
"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", | "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", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
} | } | ||
Line 224: | Line 98: | ||
"paramOrder": [ | "paramOrder": [ | ||
"image", | "image", | ||
"type", | "type", | ||
"igdesc" | "igdesc" | ||
] | ] |
Revision as of 15:00, 8 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 |
Infobox for all ingame stats for this unit
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | File name | String | suggested |
Unit Type | type | A short description of the purpose
| String | suggested |
Description | igdesc | The in-game description
| String | suggested |