Module:Yesno/doc: Difference between revisions

Content deleted Content added
Line 60:
</syntaxhighlight>
 
===Undefined input ('foo')===
You can specify a default value if yesno receives input other than that listed above. If you don't supply a default, the module will return <code>nil</code> for these inputs.
 
Line 93 ⟶ 94:
Although the empty string usually evaluates to false in wikitext, it evaluates to true in Lua. This module prefers the Lua behaviour over the wikitext behaviour. If treating the empty string as false is important for your module, you will need to convert empty strings to a value that evaluates to false before passing them to this module. In the case of arguments received from wikitext, this can be done by using [[Module:Arguments]].
 
===Handling nil returnsresults===
By definition
:<syntaxhighlight lang="lua">