Module:Str find word/doc: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 9:
A '''word''' is defined to be consisting of: alphanumerics (a-z, A-Z, 0-9), the hyphen (-) and the underscore (_). For example: {{mono|1=foobar, foo-bar, foo_bar, foo123, _foo, 12, -x}}. All other characters are non-word-characters (like: {{nowrap|1='{{mono|1=, ; ( ) <space>}}'}}).
 
The module is designed for template-usage. For example, a template has these parameter {{para|format}} options:
:{{para|format| bg-green, ucfirst, wikilink}}
This module then can handle formatting like this:
:<code><nowiki>{{#invoke:sfw|main|string={{{format|}}}|word=ucfirst|yes=&lt;make bg green code&gt;|no=&lt;do nothing&gt;}}</nowiki><code>
 
ucfirst, wikilink, bg-green|
 
== Usage ==
<code><nowiki>{{</nowiki>#invoke:User:DePiep/sfw|''function_name''<nowiki>}}</nowiki></code>
 
==parameters==
<pre>