Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:If empty

Template page
Revision as of 16:18, 13 April 2024 by Forte (talk | contribs) (Added description of the template in case I forget again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template takes a series of arguments and returns the first non-empty argument.

Example:

{{If empty|a|b|c|d}}

In this situation, if a is not empty, it would return a, if it is empty, it would return b, unless it was also empty, then it would return c, and so on.