Template documentationedit source

This template is used in other templates for evaluating "truthy" or "falsy" values.

Examples[edit source]

  • {{TRUE|1}} → 1
  • {{TRUE|true}} → 1
  • {{TRUE|TRUE}} → 1
  • {{TRUE|yes}} → 1
  • {{TRUE|Yes}} → 1
  • {{TRUE|si}} → 1
  • {{TRUE|sí}} → 1
  • {{TRUE|whatever}} → 1

While "no", "not", "false", "0" or an empty string, all return an empty string.

  • {{TRUE|0}}
  • {{TRUE|false}}
  • {{TRUE|FALSE}}
  • {{TRUE|NO}}
  • {{TRUE|not}}
  • {{TRUE|}}