Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
(Undo revision 437 by HUBA (talk))
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">{{#if:{{{mobility|}}}|<tr>
<table class="infobox-table">
<tr>
     <th>Mobility</th>
     <th>Mobility</th>
     <td>{{{mobility}}}</td>
     <td>{{{mobility|Ground}}}</td>
</tr>}}{{#if:{{{giant|}}}|<tr>
</tr>
<tr>
     <th>Giant</th>
     <th>Giant</th>
     <td>{{{giant}}}</td>
     <td>{{{giant|No}}}</td>
</tr>}}{{#if:{{{type|}}}|<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>}}{{#if:{{{units|}}}|<tr>
</tr>
}}
<tr>
     <th>Units</th>
     <th>Units</th>
     <td>{{{units}}}</td>
     <td>{{{units|1}}}</td>
</tr>
</tr>
</tr>}}{{#if:{{{hp|}}}|<tr>
{{#if:{{{hp|}}}|<tr>
     <th>HP</th>
     <th>HP</th>
     <td>{{{hp}}}</td>
     <td>{{{hp}}}</td>
</tr>
</tr>
</tr>}}{{#if:{{{atk|}}}|<tr>
}}
{{#if:{{{atk|}}}|<tr>
     <th>Attack</th>
     <th>Attack</th>
     <td>{{{atk}}}</td>
     <td>{{{atk}}}</td>
</tr>
</tr>
</tr>}}{{#if:{{{target|}}}|<tr>
}}
<tr>
     <th>Target</th>
     <th>Target</th>
     <td>{{{target}}}</td>
     <td>{{{target|Ground Only}}}</td>
</tr>
</tr>
</tr>}}{{#if:{{{atkint|}}}|<tr>
{{#if:{{{atkint|}}}|<tr>
     <th>Attack Interval</th>
     <th>Attack Interval</th>
     <td>{{{atkint}}}</td>
     <td>{{{atkint}}}</td>
</tr>
</tr>
</tr>}}{{#if:{{{splashdmg|}}}|<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>
</tr>}}{{#if:{{{range|}}}|<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>
</tr>}}{{#if:{{{igdesc|}}}|<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

Template parameters

ParameterDescriptionTypeStatus
imageimage

no description

Unknownoptional
mobilitymobility

no description

Auto value
Ground
Unknownoptional
giantgiant

no description

Auto value
No
Unknownoptional
typetype

no description

Unknownoptional
unlockcostunlockcost

no description

Unknownoptional
costcost

no description

Unknownoptional
unitsunits

no description

Auto value
1
Unknownoptional
hphp

no description

Unknownoptional
atkatk

no description

Unknownoptional
splashdmgsplashdmg

no description

Auto value
0
Unknownoptional
targettarget

no description

Auto value
Ground Only
Unknownoptional
atkintatkint

no description

Unknownoptional
rangerange

no description

Unknownoptional
speedspeed

no description

Unknownoptional
igdescigdesc

no description

Unknownoptional