Difference between revisions of "Template:Unit image"

From Zero-K
Jump to navigation Jump to search
(Unit icon template. The nowiki part includes a zero-width (invisible!) space to make sure that links are terminated in the right place.)
Line 1: Line 1:
 
{{#ifeq:{{#invoke:String|str_find|{{{1}}}|http}}|-1|
 
{{#ifeq:{{#invoke:String|str_find|{{{1}}}|http}}|-1|
  {{#if:{{{1|}}}|<img src="//manual.zero-k.info/unitpics/{{{1}}}.png" valign="middle">|
+
  {{#if:{{{1|}}}|<img src="//manual.zero-k.info/unitpics/{{{1}}}.png" alt="{{{2|}}}" valign="middle">|
 
  }}|{{{1|}}}<nowiki>​</nowiki>
 
  }}|{{{1|}}}<nowiki>​</nowiki>
 
}}
 
}}
 +
{{Documentation}}

Revision as of 15:41, 5 October 2022

Template documentation[create]