Difference between revisions of "Template:Unit image"

From Zero-K
Jump to navigation Jump to search
(debug)
m (Add alt as named parameter.)
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" alt="{{{2|}}}"{{#if:{{{style|}}}| style="{{{style|}}}"|}}>|
+
  {{#if:{{{1|}}}|<img src="//manual.zero-k.info/unitpics/{{{1}}}.png" alt="{{{2|{{{alt|}}}}}}"{{#if:{{{style|}}}| style="{{{style|}}}"|}}>|
 
  }}|{{#invoke:String|replace|{{{1|}}}|http:|https:}}<nowiki>​</nowiki>
 
  }}|{{#invoke:String|replace|{{{1|}}}|http:|https:}}<nowiki>​</nowiki>
 
}}<noinclude>
 
}}<noinclude>

Revision as of 21:05, 1 September 2024

Template documentation[create]