Difference between revisions of "Template:UcWords"

From Epic Paths
Jump to navigation Jump to search
Line 17: Line 17:
Example: <nowiki>{{UcWords|main: sub}}</nowiki> = {{UcWords|main: sub}}
Example: <nowiki>{{UcWords|main: sub}}</nowiki> = {{UcWords|main: sub}}


Example: <nowiki>{{UcWords|:main: sub}}</nowiki> = {{UcWords|:main: sub}}
Example: <nowiki>{{UcWords|:Category:Combat}}</nowiki> = {{UcWords|:Category:Combat}}


Example: <nowiki>{{UcWords|templates,:Category:Combat}}</nowiki> = {{UcWords|templates,:Category:Combat}}
Example: <nowiki>{{UcWords|templates,:Category:Combat}}</nowiki> = {{UcWords|templates,:Category:Combat}}

Revision as of 15:46, 6 August 2021

Capitalize every word in the text. Considers spaces, /, # and : as seperators. Example: {{UcWords|main sub ter}} = Main Sub Ter

Example: {{UcWords|main/sub ter}} = Main/Sub Ter

Example: {{UcWords|main#sub ter}} = Main#Sub Ter

Example: {{UcWords|main: sub}} = Main:Sub

Example: {{UcWords|:Category:Combat}} = :Category:Combat

Example: {{UcWords|templates,:Category:Combat}} = Templates,:Category:Combat

Usage:

{{UcWords|this:should be capitalized}}