Template:Trim: Difference between revisions
From TTSK
m x parameter not needed |
m 1 revision imported |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}}|{{{1|}}}}}<noinclude>{{doc}}</noinclude> | |||
{{ | |||
</noinclude> | |||
Latest revision as of 23:44, 22 November 2024
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).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Parameter | 1 | The parameter to trim. | Content | required |
Usage
{{trim| {{{1}}} }}
