Jump to content

Template:if then show/documentation

From Wiktionary, the free dictionary
Documentation for Template:if then show. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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.