Content deleted Content added
Line 15:
|arg1|arg2|arg3|argN}} -->
This module looks for a complete word in a comma-separated list of words. It then returns a True or False value, which can be used accordingly.
▲ The search can be ecxtended 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>.
A '''word''' is defined to be only of these characters: alphanumerics ('{{mono|1=a-z A-Z 0-9}}'), hyphen ('{{mono|1=-}}') and underscore ('{{mono|1=_}}'){{nbsp|1}}{{aye|12px}}. All other characters are non-word characters, and so possible word-separators (like {{nowrap|1='{{mono|1=;,()<space>}}'}}{{nbsp}}{{nay|12px}}).
== Usage ==
|