Template:UnitInfobox: Difference between revisions
From Mechabellum Wiki
Tag: Undo |
m (Parameter Update (WIP) - defaults/autovalues in code) |
||
Line 2: | Line 2: | ||
<div class="infobox-title">{{PAGENAME}}</div>{{#if:{{{image|}}}| | <div class="infobox-title">{{PAGENAME}}</div>{{#if:{{{image|}}}| | ||
<div class="infobox-image" style="max-width: 100%; overflow: auto; background-color: #0003;">[[File:{{PAGENAME:{{{image}}}}}]]</div>}} | <div class="infobox-image" style="max-width: 100%; overflow: auto; background-color: #0003;">[[File:{{PAGENAME:{{{image}}}}}]]</div>}} | ||
<table class="infobox-table"> | <table class="infobox-table"> | ||
<tr> | |||
<th>Mobility</th> | <th>Mobility</th> | ||
<td>{{{mobility}}}</td> | <td>{{{mobility|Ground}}}</td> | ||
</tr> | </tr> | ||
<tr> | |||
<th>Giant</th> | <th>Giant</th> | ||
<td>{{{giant}}}</td> | <td>{{{giant|No}}}</td> | ||
</tr> | </tr> | ||
{{#if:{{{type|}}}|<tr> | |||
<th>Unit Type</th> | <th>Unit Type</th> | ||
<td>{{{type}}}</td> | <td>{{{type}}}</td> | ||
</tr>}}{{#if:{{{cost|}}}|<tr> | </tr> | ||
}} | |||
{{#if:{{{cost|}}}|<tr> | |||
<th>Cost</th> | <th>Cost</th> | ||
<td>{{{cost}}}</td> | <td>{{{cost}}}</td> | ||
</tr>}}{{#if:{{{unlockcost|}}}|<tr> | </tr> | ||
}} | |||
{{#if:{{{unlockcost|}}}|<tr> | |||
<th>Unlock cost</th> | <th>Unlock cost</th> | ||
<td>{{{unlockcost}}}</td> | <td>{{{unlockcost}}}</td> | ||
</tr>}} | </tr> | ||
}} | |||
<tr> | |||
<th>Units</th> | <th>Units</th> | ||
<td>{{{units}}}</td> | <td>{{{units|1}}}</td> | ||
</tr> | </tr> | ||
{{#if:{{{hp|}}}|<tr> | |||
<th>HP</th> | <th>HP</th> | ||
<td>{{{hp}}}</td> | <td>{{{hp}}}</td> | ||
</tr> | </tr> | ||
}} | |||
{{#if:{{{atk|}}}|<tr> | |||
<th>Attack</th> | <th>Attack</th> | ||
<td>{{{atk}}}</td> | <td>{{{atk}}}</td> | ||
</tr> | </tr> | ||
}} | |||
<tr> | |||
<th>Target</th> | <th>Target</th> | ||
<td>{{{target}}}</td> | <td>{{{target|Ground Only}}}</td> | ||
</tr> | </tr> | ||
{{#if:{{{atkint|}}}|<tr> | |||
<th>Attack Interval</th> | <th>Attack Interval</th> | ||
<td>{{{atkint}}}</td> | <td>{{{atkint}}}</td> | ||
</tr> | </tr> | ||
</tr>}} | </tr> | ||
}} | |||
<tr> | |||
<th>Splash Damage</th> | <th>Splash Damage</th> | ||
<td>{{#ifeq:{{{splashdmg}}}|0|No|{{{splashdmg}}} }}</td> | <td>{{#ifeq:{{{splashdmg|0}}}|0|No|{{{splashdmg}}} }}</td> | ||
</tr> | </tr> | ||
{{#if:{{{range|}}}|<tr> | |||
<th>Range</th> | <th>Range</th> | ||
<td>{{{range}}}</td> | <td>{{{range}}}</td> | ||
</tr> | </tr> | ||
</tr>}}{{#if:{{{speed|}}}|<tr> | </tr> | ||
}} | |||
{{#if:{{{speed|}}}|<tr> | |||
<th>Speed</th> | <th>Speed</th> | ||
<td>{{{speed}}}</td> | <td>{{{speed}}}</td> | ||
</tr> | </tr> | ||
}} | |||
{{#if:{{{igdesc|}}}|<tr> | |||
<td colspan="2"> | <td colspan="2"> | ||
<dt>Description</dt> | <dt>Description</dt> | ||
Line 55: | Line 71: | ||
</td> | </td> | ||
</tr> | </tr> | ||
}}</table> | }} | ||
</table> | |||
</div> | </div> | ||
<noinclude> | <noinclude> |
Revision as of 11:49, 28 May 2023
UnitInfobox
Mobility | Ground |
---|---|
Giant | No |
Units | 1 |
Target | Ground Only |
Splash Damage | No |
Infobox for all ingame stats for this unit
Parameter | Description | Type | Status | |
---|---|---|---|---|
image | image | no description | Unknown | optional |
mobility | mobility | no description
| Unknown | optional |
giant | giant | no description
| Unknown | optional |
type | type | no description | Unknown | optional |
unlockcost | unlockcost | no description | Unknown | optional |
cost | cost | no description | Unknown | optional |
units | units | no description
| Unknown | optional |
hp | hp | no description | Unknown | optional |
atk | atk | no description | Unknown | optional |
splashdmg | splashdmg | no description
| Unknown | optional |
target | target | no description
| Unknown | optional |
atkint | atkint | no description | Unknown | optional |
range | range | no description | Unknown | optional |
speed | speed | no description | Unknown | optional |
igdesc | igdesc | no description | Unknown | optional |