Template:Trim
Jump to navigation
Jump to search
Template documentation (for the above template, sometimes hidden or invisible)[view] [edit] [history] [refresh]
- Definition
- 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" (quotes are simply to show result, the template does not add quotes).
The above text is transcluded from Template:Trim/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?) Please add categories and interwikis to Template:Trim/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text. (Why?) Please add categories and interwikis to Template:Trim/doc. (View all subpages of this page.)