This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

^capitalize( data )^ (DEPRECATED)

This pages describes features, codes or syntax whose use is now DEPRECATED, i.e. not advised either for new or continued pre-existing use.

Deprecated aspects of Tinderbox may be supported on a legacy basis but the latter support can't be presumed to be indefinite. Therefore you should update your active TBX documents to latest practice as soon as practical.


Code Type: 

Code Scope of Action: 

Code First Added: 

Code Altered: 

 Export Mark-up   [other codes of this type]

 n/a   [codes with similar scope]

 Already in v5.0.0

 format"


DEPRECATED - use ^value(capitalize())^. See ^value^, capitalize().

^capitalize( data )^

This text transform "filter" evaluates and transforms the data argument, by capitalizing the first letter of each word.

^capitalize(an example)^ outputs An Example

For note "a sample note"

^capitalize(^value($Name^)^ outputs A Sample Note

Characters other than the first in each word aren't touched.

^capitalize(aN exaMple)^ outputs AN ExaMple

In the latter case you may need to lowercase the string first.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Deprecated Usage : Deprecated Export Codes : ^capitalize( data )^ (DEPRECATED)