Difference between revisions of "Template:Infobox zkunit"
Jump to navigation
Jump to search
(test2) |
(test3) |
||
Line 12: | Line 12: | ||
|imagestyle = | |imagestyle = | ||
|captionstyle = | |captionstyle = | ||
− | |image = {{#ifeq:{{#invoke:String|str_find|{{{image}}}|http}}|-1|{{#if:{{{image|}}}|<img src="//manual.zero-k.info/unitpics/{{{image}}}.png" height="48">|}}|{{{image|}}}}} {{#if:{{{icontype|}}}|<img src="//manual.zero-k.info/icons/{{{icontype}}}.png" height="48">|}} | + | |image = {{#ifeq:{{#invoke:String|str_find|{{{image}}}|http}}|-1|{{#if:{{{image|}}}|<img src="//manual.zero-k.info/unitpics/{{{image}}}.png" height="48">|}}|{{{image|}}}}} |
+ | {{#if:{{{icontype|}}}|<img src="//manual.zero-k.info/icons/{{{icontype}}}.png" height="48">|}} | ||
<!--(disabled as thumbnails are not supported) [[File:Uniticon {{{icontype}}}.png|64px]] --> | <!--(disabled as thumbnails are not supported) [[File:Uniticon {{{icontype}}}.png|64px]] --> | ||
|caption = | |caption = |
Revision as of 11:31, 5 October 2022
{{{name}}} | |
---|---|
Stats | |
Weapons | |
None |
Full blank syntax
{{ Infobox zkunit <!-- Required fields --> name = <!-- Optional fields --> unitname = defname = description = image = icontype = cost = hitpoints = mass = movespeed = turnrate = energy = sight = sonar = transportable = altitude = gridlink = abilities = <!-- Get Template:Infobox zkability ### --> weapons = <!-- Get Template:Infobox zkweapon --> }}
Discrepancies between this representation and the context menu ingame: (The following list may not be exhaustive.)
- Ingame shields are represented as weapons.
- Ingame EMP/slow/disarm weapon damage is in the same entry as ordinary damage.
The above documentation is transcluded from Template:Infobox zkunit/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. |