Template:Trim

Kubva Wikipedia


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 mabviro]

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

Example[chinjirudza mabviro]

Template data[chinjirudza mabviro]

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 mabviro]


Template:String-handling templates