Difference between revisions of "Template:UcWords"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
-->{{#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. | ||
Example: <nowiki>{{UcWords|main sub ter}}</nowiki> = {{UcWords|main sub ter}} | Example: <nowiki>{{UcWords|main sub ter}}</nowiki> = {{UcWords|main sub ter}} | ||
Line 12: | Line 13: | ||
Example: <nowiki>{{UcWords|main#sub ter}}</nowiki> = {{UcWords|main#sub ter}} | Example: <nowiki>{{UcWords|main#sub ter}}</nowiki> = {{UcWords|main#sub ter}} | ||
Example: <nowiki>{{UcWords|main: sub}}</nowiki> = {{UcWords|main: sub}} | Example: <nowiki>{{UcWords|main: sub}}</nowiki> = {{UcWords|main: sub}} '''(Note)''' | ||
Example: <nowiki>{{UcWords|:Category:Combat}}</nowiki> = {{UcWords|:Category:Combat}} | Example: <nowiki>{{UcWords|:Category:Combat}}</nowiki> = {{UcWords|:Category:Combat}} '''(Note)''' | ||
Usage: | Usage: | ||
<code><nowiki>{{</nowiki>UcWords|this:should be capitalized}}<noinclude></code> | <code><nowiki>{{</nowiki>UcWords|this:should be capitalized}}<noinclude></code> |
Revision as of 15:58, 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 (Note)
Example: {{UcWords|:Category:Combat}} = Category:Combat (Note)
Usage:
{{UcWords|this:should be capitalized}}