Template:Ucfirstletter/doc

From MOASSpedia
< Template:Ucfirstletter
Revision as of 11:48, 8 February 2022 by Wikipedia>Jonesey95 (→‎Examples: compare)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

Converts the first ASCII letter character of a string to uppercase. This behavior is different from the magic word ucfirst, which affects the first character of a string regardless of whether it is a letter or not.

Examples

{{ucfirstletter|test}} → Test

{{ucfirstletter|(test)}} → (Test)

{{ucfirstletter|6th century}} → 6Th century

(compare to {{ucfirst:6th century}} → 6th century)

See also