Template:Str letter/trim

From UBC Wiki
Documentation icon Template documentation[view] [edit] [history] [purge]
Lua String-based templates

This is the {{Str letter/trim}} template.

It takes a string as parameter, and returns the string trimmed to the 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ğ}} → ÁbČĐÈęFğ
  • {{str letter/trim|abcdefghijklmnopqrst}} → abcdefghijklmnopqrst
  • {{str letter/trim|abcdefghijklmnopqrstuvwxyz}} → abcdefghijklmnopqrstuvwxyz
  • {{str letter/trim| abcdefghijklmnopqrstuvwxyz}} → abcdefghijklmnopqrstuvwxyz
  • {{str letter/trim|NR<ref>a reference</ref>}} → NR

See also

Script error: The function "navbox" does not exist.

References

  1. a reference