Template:Trim/doc

< Template:Trim
Revision as of 12:29, 29 July 2011 by 89.212.98.163 (talk) (sl:Predloga:Trim)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Template:String templates see also