Permanently protected template

Template:Trim

From mediawiki.org
Jump to navigation Jump to search
Template documentation

This template returns its parameter without leading or trailing whitespace. It’s primarily for other templates to remove unwanted whitespace passed around an unnamed parameter (named parameters are automatically trimmed by MediaWiki).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
parameter1

The parameter to trim

Unknownrequired

Usage

{{trim| {{{1}}} }}