Template:if then show

From Wiktionary, the free dictionary
Jump to navigation Jump to search



Usage

{{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.