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
&#123;{#invoke:|upper|…}} &#123;{#invoke:|lower|…}} &#123;{#invoke:|sentence|…}} &#123;{#invoke:|title|…}}

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