Template:Yesno/doc

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
This is the documentation subpage of Template:Yesno. It contains usage information that is not part of the underlying template.
{{yesno|something}}

Converts the parameter into a normalized boolean value of either yes or the empty string. Intended to be used with {{#if:...}} as:

{{#if: {{yesno|{{{some parameter|}}}}} | ...}}

The following values are interpreted as logical "false" and result in the empty string being the output:

  • 0
  • false
  • f
  • no
  • n
  • off
  • Empty or whitespace-only inputs

Any other input will be interpreted as logical "true" and result in an output of yes.