Board Thread:Support Requests - Getting Technical/@comment-188.24.119.154-20151103181142/@comment-4731443-20151110191357

188.24.73.36 wrote: If name exists, show the panoramic view icon. If both name and name2 exist, show the landscape icon. If name, name2 and title exist and ONLY if title has an exact value (i.e. {{template ) show the image4 icon. Since you only want to use "title" if it has one specific value, you don't need to test its existence, so I removed that step for simplicity. For the rest, you were close but you closed your functions too early and the "elses" had to be moved up one step each, so to speak.

{{#if:{{{name|}}}| {{#if:{{{name2|}}}| {{#ifeq:{{{title|}}}|value in the form of a template| {{icon|image4}}| {{icon|landscape}} }}|	{{icon|panoramic view}} }} }}