Template:Trim: Difference between revisions

From Campaigns
Jump to navigation Jump to search
Fix for |=foo bug
m 1 revision imported
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{safesubst:#if:1|{{{x|{{{1|}}}}}}}}</includeonly><noinclude>
{{#if:{{{1|}}}|{{{1|}}}}}<noinclude>{{doc}}</noinclude>
 
{{Documentation}}
</noinclude>

Latest revision as of 00:46, 4 November 2021

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[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Parameter1

The parameter to trim.

Contentrequired

Usage

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