Template:Trim/doc: Difference between revisions

From Bonkipedia
[[mw:]]>ENeRZet
(text editing)
 
m (1 revision imported: Template documentation pages)
 
(No difference)

Latest revision as of 18:04, 12 November 2022

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}}} }}