Template:EnemyUnitStats: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
}} | }} | ||
|- | |- | ||
| colspan=2 class="statlabel statlabelgradient"|[[File:Icon_hp.png|25px|link=||Health]] Health | | colspan=2 class="statlabel {{#if:{{{repair|}}}|" style="background-color:rgba(127,127,127,0.4)|statlabelgradient}}" |[[File:Icon_hp.png|25px|link=||Health]] Health | ||
| colspan=2 class="statvalue"| <span data-tdoll-stat-id="max_hp">{{{max_hp|?}}}</span><sub>(x1)</sub>{{#ifeq:{{{classification|}}}|boss|| / <span data-tdoll-stat-id="hpmaxwd">{{#expr:5*{{{max_hp|200}}}}}</span><sub>(x5)</sub>}} | | colspan=2 class="statvalue"| <span data-tdoll-stat-id="max_hp">{{{max_hp|?}}}</span><sub>(x1)</sub>{{#ifeq:{{{classification|}}}|boss|| / <span data-tdoll-stat-id="hpmaxwd">{{#expr:5*{{{max_hp|200}}}}}</span><sub>(x5)</sub>}} | ||
{{#if:{{{repair|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 class="statlabel statlabelgradient"{{!}}<!--[[File:Icon_repair.png{{!}}25px{{!}}link={{!}}{{!}}Repair]]--> Repair | |||
{{!}} colspan=2 class="statvalue"{{!}} {{{repair|?}}} }} | |||
|- | |- | ||
|class="statlabel"|[[File:Icon_dmg.png|25px|link=||Damage]] Damage | |class="statlabel"|[[File:Icon_dmg.png|25px|link=||Damage]] Damage |
Latest revision as of 09:58, 15 November 2023
This template provides a simple table with several values describing the stats of an enemy unit.
Usage[edit]
Syntax:{{EnemyUnitStats |title=Title of the stats (unit name/variant) |classification=boss (this is optional) |max_hp=1000 |dmg=1 |eva=2 |acc=3 |rof=4 |mov=5 |armor=6 |range=4 |penetration=7 |cost=For Assimilated units |crit=For Assimilated units |critrate=For Assimilated units |repair=For Assimilated units |comment=Some text }}
If comment
is left unset or empty, the whole comment-row will not be shown.
The above documentation is transcluded from Template:EnemyUnitStats/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |