Module:Str find word/doc: Difference between revisions

Content deleted Content added
No edit summary
Line 5:
Implements {{tl|Str find word}}.
 
This module looks for a full word 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.
:
 
:The search can be extended to check for multiple words being present.
 
For example, in the string '{{mono|1=alpha, foobar}}' the word '{{mono|1=alpha}}' appears, but the word '{{mono|1=foo}}' does not: there only is the complete word '{{mono|1=foobar}}'. The module is aimed at template code usage. <small>(The editor does not have to apply Lua patterns like {{code|1=[%a%d]*}})</small>.
 
:The search can be extended to check for multiple words being present.
 
== Usage ==
:{{red|This documentation is not up to date}}. See template {{tl|Str find word}}.