Documentation icon Template documentation[view] [edit] [history] [purge]

Template:Documentation subpage Template:High-risk Template:Notice

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 chinjirudza

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

Example chinjirudza

Template data chinjirudza

Template:TemplateDataHeader

The template trims whitespace from a string.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
String1

The string to be trimmed of whitespace

Stringrequired

See also chinjirudza


Template:String-handling templates