Template:UnitInfobox: Difference between revisions
From Mechabellum Wiki
(smaller title for Sledgehammer) |
No edit summary |
||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{UnitData}}<div class="infobox" style="max-width: 100%;"> | {{#vardefine:names | | ||
; 1 Crawler | |||
; 2 Fang | |||
; 3 Marksman | |||
; 4 Arclight | |||
; 5 Wasp | |||
; 6 Mustang | |||
; 7 Sledgehammer | |||
; 8 Steel Ball | |||
; 9 Stormcaller | |||
; 10 Phoenix | |||
; 11 Rhino | |||
; 12 Hacker | |||
; 13 Wraith | |||
; 14 Scorpion | |||
; 15 Vulcan | |||
; 16 Fortress | |||
; 17 Melting Point | |||
; 18 Overlord | |||
; 19 War Factory | |||
; 20 Tarantula | |||
; 21 Sandworm | |||
; 22 Fire Badger | |||
; 23 Sabertooth | |||
; 24 Typhoon | |||
; 25 Farseer | |||
; 26 Larva | |||
; 27 Spider Mine | |||
}}{{#vardefine:max | 27 | |||
}}{{#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:next | {{#ifexpr: {{#var:pos}} = {{#var:max}} | 1 | {{#expr: {{#var:pos}} + 1}} }} | |||
}}{{UnitData}}<div class="infobox" style="max-width: 100%;"> | |||
{| class="infobox-nav" | {| class="infobox-nav" | ||
|[[{{# | |[[{{#sub: {{#explode: {{#var:names}} | ; | {{#var:prev}} }} | 2 }}|<span class="carousel-control-prev-icon"></span>]] | ||
|<div class="infobox-title" {{#ifeq: {{PAGENAME}} | Sledgehammer | style="font-size: 1.75em;" }}>{{PAGENAME}}</div> | |<div class="infobox-title" {{#ifeq: {{PAGENAME}} | Sledgehammer | style="font-size: 1.75em;" }}>{{PAGENAME}}</div> | ||
| style="text-align:right;" | [[{{# | | style="text-align:right;" | [[{{#sub: {{#explode: {{#var:names}} | ; | {{#var:next}} }} | 2 }}|<span class="carousel-control-next-icon"></span>]] | ||
|} | |} | ||
{{#if:{{{type|}}}|<p class="text-center h5">{{{type}}}</p>}} | {{#if:{{{type|}}}|<p class="text-center h5">{{{type}}}</p>}} | ||
Line 21: | Line 53: | ||
<td>{{#var:cost|0}}</td> | <td>{{#var:cost|0}}</td> | ||
</tr> | </tr> | ||
{{#ifeq:{{#var:upkeep|0}}|0|| | |||
<tr> | |||
<th>Upkeep</th> | |||
<td>{{#var:upkeep|Free}}</td> | |||
</tr> | |||
}} | |||
<tr> | <tr> | ||
<th>Unlock cost</th> | <th>Unlock cost</th> | ||
Line 83: | Line 121: | ||
<th>Unit Cost</th> | <th>Unit Cost</th> | ||
<td> | <td> | ||
{{#var:min_cost}} | |||
{{#ifeq:{{#var:unlockcost}} | 0 || - | {{#ifeq:{{#var:unlockcost}} | 0 || - {{#var:max_cost}} }} | ||
</td> | </td> | ||
</tr> | </tr> | ||
Line 90: | Line 128: | ||
<th>HP Value</th> | <th>HP Value</th> | ||
<td> | <td> | ||
{{#ifeq:{{#var:unlockcost}} | 0 || | {{#ifeq:{{#var:unlockcost}} | 0 || {{#var:min_hp_val}} - }} | ||
{{#var:max_hp_val}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
Line 97: | Line 135: | ||
<th>Burst Value</th> | <th>Burst Value</th> | ||
<td> | <td> | ||
{{#ifeq:{{#var:unlockcost}} | 0 || | {{#ifeq:{{#var:unlockcost}} | 0 || {{#var:min_burst_val}} - }} | ||
{{#var:max_burst_val}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
Line 104: | Line 142: | ||
<th>DPS Value</th> | <th>DPS Value</th> | ||
<td> | <td> | ||
{{#ifeq:{{#var:unlockcost}} | 0 || | {{#ifeq:{{#var:unlockcost}} | 0 || {{#var:min_dps_val}} - }} | ||
{{#var:max_dps_val}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
Line 111: | Line 149: | ||
<th>Splash Index</th> | <th>Splash Index</th> | ||
<td> | <td> | ||
{{#var:splash_index}} | |||
}} | |||
</td> | </td> | ||
</tr> | </tr> |
Latest revision as of 11:32, 19 October 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 |
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 |