Template:Yesno/doc

This template normalises an input to be a yes/no output.

Usage
The template discerns five possible logical outputs depending on the first parameter (input if you will).

In its simplest usage these will all be either "yes" or "" (blank - nothing no characters).


 * 1)     result ""  (also applies to "Yes", "YeS", etc, "Y", "y" and "1")
 * 2)    result "" (also applies to "No", "NO", "nO", "N", "n" and "0")
 * 3)    result ""
 * 4)    result ""
 * 5)    result "" (also applies to any other value not given above).

Each of these can be over-ridden.


 * 1)     result "" (also applies to "Yes", "YeS", etc, "Y", "y" and "1")
 * 2)    result "": (also applies to "No", "NO", "nO", "N", "n" and "0")
 * 3)    result ""
 * 4) but   </tt> result ""
 * 5) and   </tt> result ""
 * 6)   </tt> result ""
 * 7)   </tt> result "" (also applies to any other value not given above).
 * 8) but   </tt> result ""
 * 9) but   </tt> result ""

This may be used (apparently perversely) thus:


 *  </tt>  result ""
 *  </tt>  result ""

This creates a logical inversion.

Full parameter list
Unnamed parameter 1= the input value to be evaluated. The other parameters (all named, all optional), are the return values for their respective logical outcome. When set, each one overrules their default return value.

id:Templat:Yesno sl:Predloga:Yesno