Template:Trim

Revision as of 11:39, 20 November 2012 by Waahlis (talk | contribs) (Created page with "<includeonly>{{ {{{|safesubst:}}}#if:1|{{{1|}}}}}</includeonly><noinclude> Category:TemplatesCategory:FunctionalityCategory:Colour templates {{Documentation}} </no...")
(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. You may substitute this template - that is, if used as Template:Tlxs, the resulting wikicode is "clean".

Usage

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

Example

  • {{trim| abc}} produces abc.