Template:Trim/doc

From Pittsburgh Streets

The {{trim}} template trims leading and trailing whitespace from its argument. This is useful to remove unwanted whitespace from an unnamed parameter (named parameters are automatically trimmed by MediaWiki).

Usage examples

  • [{{trim|abc}}] → [abc]
  • [{{trim| abc }}] → [abc]
[{{trim|abc
}}]

[abc]