Template:Trim: Difference between revisions
From TTSK
Template:Trim>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 |
m x parameter not needed |
||
| Line 1: | Line 1: | ||
{{#if: | <includeonly>{{safesubst:#if:1|{{{1|}}}}}</includeonly><noinclude> | ||
{{Documentation}} | |||
</noinclude> | |||
Revision as of 15:01, 26 October 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).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Parameter | 1 | The parameter to trim. | Content | required |
Usage
{{trim| {{{1}}} }}
