Template:Trim View history

(Added Category)
(Moved category to doc page)
 
Line 2: Line 2:


{{Documentation}}
{{Documentation}}
</noinclude><noinclude>
<!-- This category is only for the template itself -->
[[Category:Page Formatting Templates]]
[[Category:Expand Template Documentation]]
</noinclude>
</noinclude>

Latest revision as of 16:35, 1 March 2014


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.