Difference between revisions of "Template:Infobox zkunit"

From Zero-K
Jump to navigation Jump to search
m
(Don't want type icons to be clickable (at least for now).)
 
(40 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<noinclude>[[Category:ZK Infoboxes]]</noinclude>
 +
 
{{ infobox
 
{{ infobox
  
Line 5: Line 7:
 
  |subheaderstyle =
 
  |subheaderstyle =
 
  |title        =  
 
  |title        =  
  |above        = {{{name}}}
+
  |above        = {{{name}}}{{#if:{{{defname|}}}|&#32;({{{defname}}})}}
 
  |subheader    = {{{description|}}}
 
  |subheader    = {{{description|}}}
  
 
  |imagestyle  =  
 
  |imagestyle  =  
 
  |captionstyle =  
 
  |captionstyle =  
  | image     = {{{image|}}}
+
  |image       = {{unit image|{{{image|}}}|{{{name}}}}}{{#if:{{{icontype|}}}|&#32;{{#ifexist:File:Uniticon {{{icontype}}}.png|[[File:Uniticon {{{icontype}}}.png|x48px|link=]]|<img src="//manual.zero-k.info/icons/{{{icontype}}}.png" height="48">}}|}}
 +
<!--(disabled as thumbnails are not supported) [[File:Uniticon {{{icontype}}}.png|64px]] -->
 
  |caption      =  
 
  |caption      =  
  
Line 39: Line 42:
  
 
  | label8      = Vision Radius (elmo)
 
  | label8      = Vision Radius (elmo)
  | data8      = {{{vision|}}}
+
  | data8      = {{{sight|}}}
  
 
  | label9      = Sonar (elmo)
 
  | label9      = Sonar (elmo)
Line 48: Line 51:
  
 
  | label11    = Altitude (elmo)
 
  | label11    = Altitude (elmo)
  | data11      = {{{sonar|}}}
+
  | data11      = {{{altitude|}}}
  
 
  | label12    = Grid link range (elmo)
 
  | label12    = Grid link range (elmo)
  | data12      = {{{sonar|}}}
+
  | data12      = {{{gridlink|}}}
 +
 
 +
| header40    = {{#if: {{{abilities|}}} | Abilities | }}
 +
 
 +
| data41      = {{{abilities|}}}
  
  | header30   = Weapons
+
  | header50   = Weapons
 
   
 
   
  | data31     = {{{weapons|None}}}
+
  | data51     = {{{weapons|None}}}
 +
 
 +
| label95    = Unitname
 +
| data95      = {{{unitname|}}}
  
| header32    = {{#if: {{{abilities|}}} | Abilities |  }}
 
  
| data33      = {{{abilities|}}}
 
  
 
}}
 
}}

Latest revision as of 23:49, 26 December 2023


{{{name}}}
Stats
Weapons
None


Template documentation[view] [edit] [history] [purge]

Full blank syntax[edit]


{{ 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.