Module:String2/doc

The module “” contains 4 available calls that convert strings to upper, lower, sentence or title case.

The sentence case function finds the first letter and capitalises that, so it works properly with text containing wiki-markup. Compare  ->  with   -> Action game. Piped wiki-links are handled as well:  ->.

The title case function capitalises the first letter of each word in the text, apart from a number of short words recommended by The U.S. Government Printing Office Style Manual.

Further functions commonly used on strings would be useful additions.

Usage
 {#invoke:String2 | upper |…}} {#invoke:String2 | lower |…}} {#invoke:String2 | sentence |…}} {#invoke:String2 | title |…}}

Parameters
Just one unnamed parameter is used, representing the text to be converted to the required case.