Difference between revisions of "Sc"

m (different delimiter)
m
 
(3 intermediate revisions by the same user not shown)
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|<nowiki> </nowiki>|@|{{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>

Latest revision as of 22:01, 4 September 2023

Description[edit]

Converts the input string into start case.

Usage[edit]

{{Sc|<input>}}

Parameters[edit]

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