« Modèle:Trim » : différence entre les versions

De Magnus Codex
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
{{#if:{{{1|}}}|{{{1|}}}}}<noinclude>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).
{{#if:{{{1|}}}|{{{1|}}}}}<noinclude>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).
[Edit template data]


Template parameters
This template prefers inline formatting of parameters.
Parameter Description Type Status
Parameter 1
The parameter to trim.
Content required
Usage
Usage


{{trim| {{{1}}} }}</noinclude>
`{{trim| {{{1}}} }}</noinclude>`

Version du 3 avril 2023 à 08:20

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).

Usage

`{{{1}}}``