Template:ISalvageImage

From Unofficial Homecoming Wiki
Revision as of 20:10, 7 May 2009 by imported>Fleeting Whisper (unknown salvage)
Jump to navigation Jump to search

[[Image:{{#ifeq:{{{1}}}|?|Icon clue generic|Salvage_{{{1}}}.png|{{{2}}}]]

Given the name of an invention salvage, returns an icon for the salvage. The second parameter is passed to the [[Image:...|]] as an additional parameter.

Examples

{{ISalvageImage|Boresight}}
[[Image:{{#ifeq:Boresight|?|Icon clue generic|Salvage_Boresight.png|{{{2}}}]]
{{ISalvageImage|Alchemical Silver|30px}}
[[Image:{{#ifeq:Alchemical Silver|?|Icon clue generic|Salvage_AlchemicalSilver.png|30px]]