Difference between revisions of "Sc"

m
m (separator parameter)
Line 1: Line 1:
<includeonly>{{#arraydefine:words|{{lc:{{{1}}}}}|/\s*[ ]\s*/}}<!-- define array of strings separated by spaces
+
<includeonly>{{#arraydefine:words|{{lc:{{{1}}}}}|{{{2|/\s*[ ]\s*/}}}}}<!-- define array of strings separated by spaces
 
-->{{#arrayprint:words|&nbsp;|@|{{ucfirst:@}}}}<!-- print array with initial letters capitalised
 
-->{{#arrayprint:words|&nbsp;|@|{{ucfirst:@}}}}<!-- print array with initial letters capitalised
 
--></includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
--></includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 21:58, 4 September 2023

Description

Converts the input string into start case.

Usage

{{Sc|<input>}}

Parameters

Arrow.png1: The input string.
Required.
Arrow.png2: The delimiter.
Optional. Defaults to ' '.