"سانچہ:Ucfirstletter" کے نسخوں کے درمیان فرق
ur>Wikivahdat م (Swpb moved page Template:Ucfirst to Template:Ucfirstletter: Avoiding confusion with ucfirst magic word) |
م (1 نسخہ درآمد کیا گیا) |
(کوئی فرق نہیں)
|
حالیہ نسخہ بمطابق 05:56، 4 دسمبر 2022ء
فائل:Lua-Logo.svg | This template uses Lua: |
فائل:Information icon4.svg | 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