Template:Yesno/doc: Difference between revisions
Template page
More actions
comment out default |
|||
| Line 7: | Line 7: | ||
*<tt><nowiki>{{yesno| </nowiki>''input''<nowiki> }}</nowiki></tt> | *<tt><nowiki>{{yesno| </nowiki>''input''<nowiki> }}</nowiki></tt> | ||
*<tt><nowiki>{{yesno| </nowiki>''input''<nowiki> | </nowiki>''default''<nowiki> }}</nowiki></tt><p>The default is applied when an unrecognised input is given, and itself defaults to "no". | |||
=== See also === | === See also === | ||
Revision as of 08:46, 1 May 2009
This template normalises an input to be a yes/no output.
Usage
- {{yesno| input }}
- {{yesno| input | default }}
The default is applied when an unrecognised input is given, and itself defaults to "no".