Template:Trim

From Lotro-Wiki.com
Jump to navigation Jump to search
This is the template documentation for {{Trim}}. It is transcluded from Template:Trim/doc and may be directly edited there.

Description

This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be numbered '1' if its value contains a = character.

Usage

{{trim|text}}

Examples

  • {{trim| abc}} produces "abc"
  • {{trim|xyz }} produces "xyz"
  • {{trim| abc xyz }} produces "abc xyz"