Template:Str letter/trim/doc

From Kerbal Space Program Wiki
< Template:Str letter‎ | trim
Revision as of 21:30, 31 May 2015 by Murph (talk | contribs) (Import from Wikipedia (CC BY-SA license))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{Str letter/trim}} returns a string trimmed to its "beginning letters".

Examples

  • {{str letter/trim}}
  • {{str letter/trim |12345}}
  • {{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 |ÁbČĐÈęFğ}}
  • {{str letter/trim |abcdefghijklmnopqrst}} → abcdefghijklmnop
  • {{str letter/trim |abcdefghijklmnopqrstuvwxyz}} → abcdefghijklmnop
  • {{str letter/trim | abcdefghijklmnopqrstuvwxyz}} → abcdefghijklmnop
  • {{str letter/trim |NR<ref>A reference for test purposes.</ref>}} → NRNRNRNRNRNRNRNR

See also

  1. A reference for test purposes.