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


Usage
===Usage===


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

Version du 3 avril 2023 à 09: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}}}`