Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
m (Parameter Update (WIP) - defaults/autovalues in code)
(parameter update (finished))
Line 21: Line 21:
</tr>
</tr>
}}
}}
{{#if:{{{unlockcost|}}}|<tr>
<tr>
     <th>Unlock cost</th>
     <th>Unlock cost</th>
     <td>{{{unlockcost}}}</td>
     <td>{{{unlockcost|Free}}}</td>
</tr>
</tr>
}}
<tr>
<tr>
     <th>Units</th>
     <th>Units</th>
Line 46: Line 45:
{{#if:{{{atkint|}}}|<tr>
{{#if:{{{atkint|}}}|<tr>
     <th>Attack Interval</th>
     <th>Attack Interval</th>
     <td>{{{atkint}}}</td>
     <td>{{{atkint}}}s</td>
</tr>
</tr>
</tr>
}}
}}
<tr>
<tr>
     <th>Splash Damage</th>
     <th>Splash Damage</th>
     <td>{{#ifeq:{{{splashdmg|0}}}|0|No|{{{splashdmg}}} }}</td>
     <td>{{#ifeq:{{{splashdmg|0}}}|0|No|{{{splashdmg}}}m }}</td>
</tr>
</tr>
{{#if:{{{range|}}}|<tr>
<tr>
     <th>Range</th>
     <th>Range</th>
     <td>{{{range}}}</td>
     <td>{{#ifeq:{{{range|0}}}|0|Melee|{{{range}}}m }}</td>
</tr>
</tr>
</tr>
}}
{{#if:{{{speed|}}}|<tr>
{{#if:{{{speed|}}}|<tr>
     <th>Speed</th>
     <th>Speed</th>
     <td>{{{speed}}}</td>
     <td>{{{speed}}}m/s</td>
</tr>
</tr>
}}
}}
Line 79: Line 75:
"params": {
"params": {
"image": {},
"image": {},
"giant": {"autovalue":"No"},
"giant": {"default":"No"},
"type": {},
"type": {},
"cost": {},
"cost": {},
"units": {"autovalue":"1"},
"units": {"default":"1"},
"hp": {},
"hp": {},
"atk": {},
"atk": {},
"target": {"autovalue":"Ground Only"},
"target": {"default":"Ground Only"},
"atkint": {},
"atkint": {},
"range": {},
"range": {"default":"Melee"},
"speed": {},
"speed": {},
"igdesc": {},
"igdesc": {},
"mobility": {"autovalue":"Ground"},
"mobility": {"default":"Ground"},
"unlockcost": {},
"unlockcost": {"default":"Free"},
"splashdmg": {"autovalue":"0"}
"splashdmg": {"default":"No"}
},
},
"description": "Infobox for all ingame stats for this unit",
"description": "Infobox for all ingame stats for this unit",

Revision as of 12:16, 28 May 2023

UnitInfobox
Mobility Ground
Giant No
Unlock cost Free
Units 1
Target Ground Only
Splash Damage No
Range Melee

Infobox for all ingame stats for this unit

Template parameters

ParameterDescriptionTypeStatus
imageimage

no description

Unknownoptional
mobilitymobility

no description

Default
Ground
Unknownoptional
giantgiant

no description

Default
No
Unknownoptional
typetype

no description

Unknownoptional
unlockcostunlockcost

no description

Default
Free
Unknownoptional
costcost

no description

Unknownoptional
unitsunits

no description

Default
1
Unknownoptional
hphp

no description

Unknownoptional
atkatk

no description

Unknownoptional
splashdmgsplashdmg

no description

Default
No
Unknownoptional
targettarget

no description

Default
Ground Only
Unknownoptional
atkintatkint

no description

Unknownoptional
rangerange

no description

Default
Melee
Unknownoptional
speedspeed

no description

Unknownoptional
igdescigdesc

no description

Unknownoptional