Module:Str find word/doc: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
{{Module rating|alpha}}
{{Lua|Module:Yesno|Module:TableTools|Module:String}}
Implements {{tl|Str find word}}.
This module looks for a word being present in a comma-separated list of words. It then returns a {{code|True}} or {{code|False}} value.
This module looks for a word being present in a comma-separated list of words. It then returns a {{code|True}} or {{code|False}} value. By default, the True-value returned is the found word itself; the False-value is a blank string. Implements {{tl|Str find word}}.
 
For example, in the source string '{{mono|1=foo, bar}}' the word '{{mono|1=bar}}' appears, but the word '{{mono|1=november}}' does not.