Difference between revisions of "Template:Infobox zkunit"

From Zero-K
Jump to navigation Jump to search
(test2)
m (Trying to remove unwanted line break from autoinfobox)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>[[Category:ZK Infoboxes]]</noinclude>
 
<noinclude>[[Category:ZK Infoboxes]]</noinclude>
 
 
{{ infobox
 
{{ infobox
  
Line 12: Line 11:
 
  |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        = {{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]] -->
 
<!--(disabled as thumbnails are not supported) [[File:Uniticon {{{icontype}}}.png|64px]] -->
 
  |caption      =  
 
  |caption      =  
Line 70: Line 69:
  
 
}}
 
}}
 
 
<noinclude>
 
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
 
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 02:07, 18 May 2024

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