Difference between revisions of "Template:Infobox zkunit"

From Zero-K
Jump to navigation Jump to search
(Attempt to break up some long descriptions. Put internal name under name instead of inline.)
m (Add alt to type icons.)
Line 7: Line 7:
 
  |title        =  
 
  |title        =  
 
  |above        = {{{name}}}{{#if:{{{defname|}}}|<br>({{{defname}}})}}
 
  |above        = {{{name}}}{{#if:{{{defname|}}}|<br>({{{defname}}})}}
−
  |subheader    = {{#invoke:String|replace|{{{description|}}}| - |<hr>}}
+
  |subheader    = {{#invoke:String|replace|{{{description|}}}| - |<hr> }}
  
 
  |imagestyle  =  
 
  |imagestyle  =  
 
  |captionstyle =  
 
  |captionstyle =  
−
  |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">}}|}}  
+
  |image        = {{unit image|{{{image|}}}|{{{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|}}}
−
 
−
 
  
 
}}
 
}}

Revision as of 19:51, 1 September 2024

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

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