Difference between revisions of "Template:UcWords"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
-->{{#vardefine:b|{{#arraymap:{{#var:a}}|/|part|{{ucfirst:part}}|/}}}}<!-- | -->{{#vardefine:b|{{#arraymap:{{#var:a}}|/|part|{{ucfirst:part}}|/}}}}<!-- | ||
-->{{#vardefine:c|{{#arraymap:{{#var:b}}|#|part|{{ucfirst:part}}|#}}}}<!-- | -->{{#vardefine:c|{{#arraymap:{{#var:b}}|#|part|{{ucfirst:part}}|#}}}}<!-- | ||
-->{{#vardefine:d|{{#arraymap:{{#var:c}}|:|part|{{ucfirst:part}}|:}}}}<!-- | -->{{#ifeq:{{#sub:{{#var:c}}|0|1}}|:|<!-- | ||
-->{{#vardefine:d|:{{#arraymap:{{#sub:{{#var:c}}|1}}|:|part|{{ucfirst:part}}|:}}}}|<!-- | |||
-->{{#vardefine:d|{{#arraymap:{{#var:c}}|:|part|{{ucfirst:part}}|:}}}}<!-- | |||
-->}}<!-- | |||
-->{{#var:d}}<!-- | -->{{#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. |
Revision as of 15:16, 6 August 2021
Capitalize every word in the text. Considers spaces, /, # and : as seperators.
Example:
{{UcWords|this:should be capitalized}}
Result: This:Should Be Capitalized