Difference between revisions of "Template:Infobox zkunit"

From Zero-K
Jump to navigation Jump to search
m
m (Image fixes)
Line 12: Line 12:
 
  |imagestyle  =  
 
  |imagestyle  =  
 
  |captionstyle =  
 
  |captionstyle =  
  |image        = {{{image|}}} <img src='http://manual.zero-k.info/icons/{{{icontype}}}.png' height='48' align='middle'/> <!--(disabled as thumbnails are not supported) [[File:Uniticon {{{icontype}}}.png|64px]] -->
+
  |image        = {{#if:{{{image}}}|<img src='{{{image}}} 'width='80' height='64'|}} {{#if:{{{icontype}}}|<img src='http://manual.zero-k.info/icons/{{{icontype}}}.png' height='48' align='middle'/>|}}
 +
<!--(disabled as thumbnails are not supported) [[File:Uniticon {{{icontype}}}.png|64px]] -->
 
  |caption      =  
 
  |caption      =  
  

Revision as of 21:40, 5 August 2017


{{{name}}}
<img src='{{{image}}} 'width='80' height='64'
Stats
Weapons
None


Error creating thumbnail: File missing
Template documentation
[view] [edit] [history] [purge]

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.