Template:Trim

From Bonkipedia
Revision as of 19:55, 20 August 2020 by [[mw:]]>Tacsipacsi (move documentation to subpage—this template may appear several times on a page, so every byte counts, and eventual further edits to the documentation not invalidating tens of thousands of pages is also significant)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Contentrequired

Usage

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