Template:Str letter/trim/doc

From Railway Knowledge Base for New Zealand
< Template:Str letter‎ | trim
Revision as of 05:23, 2 May 2023 by Robert (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{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

  1. A reference for test purposes.