Difference between revisions of "Template:UcWords"

From Epic Paths
Jump to navigation Jump to search
Line 5: Line 5:
-->{{#ifeq:{{#sub:{{#var:c}}|0|1}}|:|<!--
-->{{#ifeq:{{#sub:{{#var:c}}|0|1}}|:|<!--
   -->{{#vardefine:d|:{{#arraymap:{{#sub:{{#var:c}}|1}}|:|part|{{ucfirst:part}}|:}}}}|<!--
   -->{{#vardefine:d|:{{#arraymap:{{#sub:{{#var:c}}|1}}|:|part|{{ucfirst:part}}|:}}}}|<!--
   -->{{#vardefine:d|{{#arraymap:{{#var:c}}|:|part|{{ucfirst:part}}|:}}}}<!--
   -->{{#vardefine:d|dd{{#arraymap:{{#var:c}}|:|part|{{ucfirst:part}}|:}}}}<!--
-->}}<!--
-->}}<!--
-->{{#var:d}}<!--
-->{{#var:d}}<!--

Revision as of 15:18, 6 August 2021

Capitalize every word in the text. Considers spaces, /, # and : as seperators.

Example:

{{UcWords|this:should be capitalized}}

Result: ddThis:Should Be Capitalized