Template:Trim

From Wazeopedia

Revision as of 10:52, 30 November 2015 by Eljefe (talk | contribs) (3 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Documentation icon Template documentation[view] [edit] [history] [purge]

This template trims whitespace from a string. The string should be passed as the first unnamed parameter.

Usage

{{trim|text}} = text with any leading or trailing whitespace removed.

Example

  • {{trim| abc}} produces abc.
The above documentation is transcluded from Template:Trim/doc.
Please add categories to the /doc subpage.
Subpages of this template.