قالب:Str letter/trim
This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page قبل تنفيذهم. |
Uses Lua: |
{{Str letter/trim}} returns a string trimmed to its "beginning letters".
Examples
{{str letter/trim}}
→{{str letter/trim |12345}}
→{{str letter/trim |123abc}}
→{{str letter/trim |abcdef?}}
→ abcdef{{str letter/trim |abc def}}
→ abc{{str letter/trim |ABcD123}}
→ ABcD{{str letter/trim |abc, def}}
→ abc{{str letter/trim |abc(def)}}
→ abc{{str letter/trim |(def)}}
→{{str letter/trim |~def}}
→{{str letter/trim |ÁbČĐÈęFğ}}
→ ÁbČĐÈęFğ{{str letter/trim |abcdefghijklmnopqrst}}
→ abcdefghijklmnopqrst{{str letter/trim |abcdefghijklmnopqrstuvwxyz}}
→ abcdefghijklmnopqrstuvwxyz{{str letter/trim | abcdefghijklmnopqrstuvwxyz}}
→ abcdefghijklmnopqrstuvwxyz{{str letter/trim |NR<ref>A reference for test purposes.</ref>}}
→ NR
See also
- {{str number/trim}}
The above documentation is transcluded from قالب:Str letter/trim/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |