Template:YesNo/en

From Palia Wiki
Jump to navigation Jump to search
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Usage

{{YesNo}} is a very very simple language template. It will simply output Yes or No

Syntax

{{YesNo|value}}
  • As long as the value is "truthy" is will return Yes
  • value is case-insensitive

Examples

  • {{YesNo|True}} -> Yes
  • {{YesNo|False}} -> No
  • {{YesNo|1}} -> Yes
  • {{YesNo|0}} -> No
  • {{YesNo|yes}} -> Yes
  • {{YesNo|no}} -> No
  • {{YesNo|Y}} -> Yes
  • {{YesNo|N}} -> No
  • {{YesNo}} -> No
  • {{YesNo|Invalid Value}} -> No