FANDOM


This is a documentation subpage for Template:Yes.
It contains usage information, categories and other content that is not part of the original template page.

Usage

This template helps to eliminate all the {{#switch:{{{1}}}|Y|y|YES|yes|Yes=...}} terms in infobox and other templates, making them easier to read.

Just type {{#if:{{yes|{{{parameter|}}}}}|...}} and you can be sure

  • that the parameter is not empty
  • that it contains Y, y, YES, yes, Yes or 1.

The template gives back "Yes" if the parameter is Y, y, YES, yes; otherwise it gives back nothing.

See also


Community content is available under CC-BY-SA unless otherwise noted.