Template:if then show
Jump to navigation
Jump to search
- The following documentation is located at Template:if then show/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
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.