Template:if then show

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search


{{if then show|VAL1|ELSE|PREFTEXT|SUFTEXT}} returns the concatenation of PREFTEXT .. VAL1 .. SUFTEXT if VAL1 is non-empty, otherwise ELSE. It is useful e.g. when displaying the output of a template call, prefixed by some explanatory text, but only when the template output is non-empty.