Template:if then show/documentation
Appearance
Usage
[edit]{{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.