Template:Trim

Revision as of 04:06, June 26, 2020 by Locke (talk | contribs) (not sure how this works tbh, copied it from MW. Unnamed params aren't supposed to be trimmed but I guess the #if does something magical?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Want an adless experience? Log in or Create an account.

[Edit Documentation] Trims whitespace from the beginning and end of the input.

Usage

{{Trim| input }}

Examples

"{{Trim| hello world }}" → "hello world"