Difference between revisions of "Template:Infobox zkunit"

From Zero-K
Jump to navigation Jump to search
(Subbox experiment/removed spaces before and after.)
m
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>[[Category:ZK Infoboxes]]</noinclude>
 
<noinclude>[[Category:ZK Infoboxes]]</noinclude>
{{ infobox | subbox = yes
+
{{ infobox
  
 
  |titlestyle  =  
 
  |titlestyle  =  
Line 6: Line 6:
 
  |subheaderstyle =
 
  |subheaderstyle =
 
  |title        =  
 
  |title        =  
  |above        = {{{name}}} {{#if:{{{defname|}}}|({{{defname}}})}}
+
  |above        = {{{name}}}{{#if:{{{defname|}}}|<br>({{{defname}}})}}
  |subheader    = {{{description|}}}
+
  |subheader    = {{#invoke:String|replace|{{{description|}}}| - |<hr> }}
  
 
  |imagestyle  =  
 
  |imagestyle  =  
 
  |captionstyle =  
 
  |captionstyle =  
  |image        = {{{image|}}} {{#if:{{{icontype|}}}|<img src="http://manual.zero-k.info/icons/{{{icontype}}}.png" height="48" align="middle"/>|}}  
+
  |image        = {{unit image|{{{image|}}}|alt={{{name}}}}}{{#if:{{{icontype|}}}|&#32;{{#ifexist:File:Uniticon {{{icontype}}}.png|[[File:Uniticon {{{icontype}}}.png|x48px|alt={{{icontype|}}}|link=]]|<img src="//manual.zero-k.info/icons/{{{icontype}}}.png" height="48" alt="{{{icontype|}}}">}}|}}
<!--(disabled as thumbnails are not supported) [[File:Uniticon {{{icontype}}}.png|64px]] -->
+
<!--(was disabled as thumbnails were not supported) [[File:Uniticon {{{icontype}}}.png|64px]] -->
 
  |caption      =  
 
  |caption      =  
  
Line 55: Line 55:
 
  | data12      = {{{gridlink|}}}
 
  | data12      = {{{gridlink|}}}
  
  | header40    = {{#if: {{{abilities|}}} | Abilities | }}  
+
  | header40    = {{#if: {{{abilities|}}} |Abilities|}}
  
 
  | data41      = {{{abilities|}}}
 
  | data41      = {{{abilities|}}}
Line 65: Line 65:
 
  | label95    = Unitname
 
  | label95    = Unitname
 
  | data95      = {{{unitname|}}}
 
  | data95      = {{{unitname|}}}
 
 
  
 
}}
 
}}

Latest revision as of 20:06, 1 September 2024

{{{name}}}
Stats
Weapons
None
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.