Template:If empty/doc: Revision history

Template page

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 March 2024

24 May 2023

  • curprev 05:3905:39, 24 May 2023Antt1995 talk contribs 1,063 bytes +1,063 Created page with "{{Documentation}} {{Wikipedia template}} This template is used inside other templates. It takes any number of parameters and returns the first found to be defined and non-empty. If none is found, nothing is returned. By writing <code><nowiki>{{if empty|a|b|c}}</nowiki></code> instead of <code><nowiki>{{#if:a|a|{{#if:b|b|c}}}}</nowiki></code>, expression a and b do not have to be repeated and evaluated twice. The template provides a fallback order, similar to a try catch..."
🍪 We use cookies to keep session information to provide you a better experience.