Saltar para o conteúdo

Predefinição:Trim/doc

Wikisource, a biblioteca livre

This template trims whitespace from a string. The string should be passed as the first unnamed parameter. You may substitute this template - that is, if used as {{subst:trim}}, the resulting wikicode is "clean".

Usage

[editar]

{{trim|text}} = text with any leading or trailing whitespace removed.

Example

[editar]
  • {{trim|abc}} produces abc.

Template data

[editar]
This is the TemplateData for this template used by TemplateWizard, Editor Visual and other tools.

TemplateData for Trim


The template trims whitespace from a string.

Parâmetros da predefinição

ParâmetroDescriçãoTipoEstado
String1

The string to be trimmed of whitespace

Stringobrigatório

See also

[editar]