Template:Trim
Template page
More actions
Template documentation
This template returns its parameter without leading or trailing whitespace. It’s primarily for other templates to remove unwanted whitespace passed around an unnamed parameter (named parameters are automatically trimmed by MediaWiki).
Example:
| Markup | Renders as |
|---|---|
{{trim | {{{1}}} }} | {{{1}}} |