Difference between revisions of "Template:UcWords"
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- -->{{#arraymap:{{{1}}}|\s|a|<!-- -->{{#arraymap:a|/|b|<!-- -->{{#arraymap:b|#|c|<!-- -->{{#arraymap:b|:|c|<!-- -->{{ucfirst:c}}<!--...") |
|||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#arraymap:{{{1}}}|\s| | -->{{#vardefine:a|{{#arraymap:{{{1}}}|\s|part|{{ucfirst:part}}|\s}}}}<!-- | ||
-->{{#vardefine:b|{{#arraymap:{{#var:a}}|/|part|{{ucfirst:part}}|/}}}}<!-- | |||
-->{{#vardefine:c|{{#arraymap:{{#var:b}}|#|part|{{ucfirst:part}}|#}}}}<!-- | |||
-->{{#vardefine:d|{{#arraymap:{{#var:c}}|:|part|{{ucfirst:part}}|:}}}}<!-- | |||
-->{{#var:d}}<!-- | |||
--></includeonly><noinclude>Capitalize every word in the text. Considers spaces, /, # and : as seperators. | --></includeonly><noinclude>Capitalize every word in the text. Considers spaces, /, # and : as seperators. | ||
Example: | Example: | ||
<code><nowiki>{{</nowiki>UcWords | <code><nowiki>{{</nowiki>UcWords|this:should be capitalized}}<noinclude></code> | ||
Result: {{UcWords | Result: {{UcWords|this:should be capitalized}} |
Revision as of 08:29, 2 August 2021
Capitalize every word in the text. Considers spaces, /, # and : as seperators.
Example:
{{UcWords|this:should be capitalized}}
Result: This:Should Be Capitalized