“ The Template:One2a is a convenience wrapper for the one2a function.findpagetext The findpagetext function returns the position of a piece of text in the wikitext source of a page. It takes up to four parameters:First positional parameter or |text is the text to be searched for. Optional parameter |title is the page title, defaults to the current page. Optional parameter |plain is either true for a plain search (default) , or false for a Lua pattern search. Optional parameter |nomatch is the value returned when no match is found; default is nothing. ”
Summary
“String2/doc”, is a work by . It explores elements such as invoke, parameter and Stringsplit.
Quotes from String2/doc ()
“ The module contains three case-related calls that convert strings to first letter uppercase, sentence case or title case and two calls that are useful for working with substrings. There are other utility calls that strip leading zeros from padded numbers and transform text so that it is not interpreted as wikitext, and several other calls that solve specific problems for template developers such as finding the position of a piece of text on a given page. ”
“ Accept-this-as-written markup is supported, e.g. {{#invoke:String2|hyphen2dash|1= ( (1-2) ) ; 4–10}} returns 1-2, 4–10.By default, a normal space is inserted after the separating comma in lists. An optional second parameter allows to change this to a different character (i.e. a thin space or hair space) .Usage {{#invoke:String2 | sentence |...}} - Capitalizes the first character and shifts the rest to lowercase Although similar to magic words' {{ucfirst:}} function, this call works even with piped wiki-links because it searches beyond leading brackets and other non-alphanumeric characters. ”
