Module:String2/doc: Difference between revisions

Content deleted Content added
Functions: documentation for split function
Examples: Stringsplit template
Line 172:
|}
 
=== posnqPosnq ===
[[Template:Posnq]] is a convenience wrapper for the posnq function.
* <code><nowiki>{{Posnq |This is a piece of text to be searched |piece of }}</nowiki></code> → {{Posnq |This is a piece of text to be searched |piece of }}
Line 178:
* <code><nowiki>{{Posnq |This is a piece of text to be searched |"piece of "}}</nowiki></code> → {{Posnq |This is a piece of text to be searched |"piece of "}}
* <code><nowiki>{{Posnq |This is a piece oftext to be searched |"piece of "}}</nowiki></code> → {{Posnq |This is a piece oftext to be searched |"piece of "}}
 
=== Stringsplit ===
[[Template:Stringsplit]] is a convenience wrapper for the split function.
* <code><nowiki>{{Stringsplit |This is a piece of text to be split |" "}}</nowiki></code> → {{Stringsplit |This is a piece of text to be split |" "}}
* <code><nowiki>{{Stringsplit |This is a piece of text to be split |" "|4}}</nowiki></code> → {{Stringsplit |This is a piece of text to be split |" "|4}}
 
== See also ==