الگو:Ucfirstletter/doc: تفاوت میان نسخهها
fa>Jonesey95 (←Examples: compare) |
(بدون تفاوت)
|
نسخهٔ ۸ فوریهٔ ۲۰۲۲، ساعت ۲۰:۱۸
پرونده:Edit-copy green.svg | This is a documentation subpage for الگو:Ucfirstletter. It contains usage information, categories and other content that is not part of the original الگو page. |
پرونده:Lua-Logo.svg | This template uses Lua: |
صفحه الگو:Ombox/styles.css محتوایی ندارد.
This template should always be substituted in the article namespace. |
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
- {{lcfirstletter}}, converts first ASCII letter to lowercase