Difference between revisions of "Template:Infobox zkunit"

From Zero-K
Jump to navigation Jump to search
m
(Added a case for when there's no image.)
Line 7: Line 7:
 
  |subheaderstyle =
 
  |subheaderstyle =
 
  |title        =  
 
  |title        =  
−
  |above        = {{{name}}} {{#if:{{{defname|}}}|({{{defname}}})}}
+
  |above        = {{{name}}}{{#if:{{{defname|}}}| ({{{defname}}})}}
 
  |subheader    = {{{description|}}}
 
  |subheader    = {{{description|}}}
  
 
  |imagestyle  =  
 
  |imagestyle  =  
 
  |captionstyle =  
 
  |captionstyle =  
−
  |image        = {{#ifeq:{{#invoke:String|str_find|{{{image}}}|http}}|-1|<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      =  
Line 56: Line 56:
 
  | data12      = {{{gridlink|}}}
 
  | data12      = {{{gridlink|}}}
  
−
  | header40    = {{#if: {{{abilities|}}} | Abilities | }}  
+
  | header40    = {{#if: {{{abilities|}}} | Abilities | }}  
  
 
  | data41      = {{{abilities|}}}
 
  | data41      = {{{abilities|}}}

Revision as of 09:57, 5 October 2022


Lua error: Internal error: The interpreter exited with status 1.


Lua error: Internal error: The interpreter exited with status 1.