Template:Trim/doc: Difference between revisions
Jump to navigation
Jump to search
(sl:Predloga:Trim) |
(No difference)
|
Revision as of 12:29, 29 July 2011
| This is a documentation subpage for Template:Trim. It contains usage information, categories and other content that is not part of the original template page. |
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.
See also
- {{StripWhitespace}} which does nearly the exact same thing.
Template:String templates see also