Board Thread:Support Requests - Getting Technical/@comment-25523075-20160919172516/@comment-25357967-20160919173112

Most documentation about the #if parser-function can be found on MediaWiki.org, more specifically here: Help:Extension:ParserFunctions. About the template, here's the approach I would choose:

There are several things you could improve depending on the way you want your template to work, for example:
 * Should the input (for example: Gem) be case sensitive?
 * Does the input in the template directly relate to the name of the image? If so, the template could be much shorter, something like this: