Difference between revisions of "Template:Display image/image"

From Wikispooks
Jump to navigation Jump to search
(Created page with "{{#if: {{{1|}}}| {{#ifexpr: {{#ask:[[-Has logo::{{{1}}}]]|format=count}}>0|haslogo|{{Display class icon|{{{1|}}}|}}}}}}")
 
(note to clarity intended function)
Line 1: Line 1:
{{#if: {{{1|}}}|
+
<noinclude>A sub-template of [[Template:Display image]]. If the argument does not have a [[Has image]] property (or that file does not exist), it gets an icon with [[Template:Display class icon]]</noinclude>{{#if: {{{1|}}}|{{#ifexpr: {{#ask:[[-Has logo::{{{1}}}]]|format=count}}>0|{{#ask:[[-Has logo::{{{1}}}]]}}|{{Display class icon|{{{1|}}}|}}}}}}
{{#ifexpr: {{#ask:[[-Has logo::{{{1}}}]]|format=count}}>0|haslogo|{{Display class icon|{{{1|}}}|}}}}}}
 

Revision as of 13:42, 15 July 2015

A sub-template of Template:Display image. If the argument does not have a Has image property (or that file does not exist), it gets an icon with Template:Display class icon