Predefinição:Trim

Wikisource, a biblioteca livre
Saltar para a navegação Saltar para a pesquisa


Documentação da predefinição[ver] [editar] [histórico] [purgar]

Predefinição:Notice

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]

The template trims whitespace from a string.

Parâmetros da predefinição[Editar dados da predefinição]

ParâmetroDescriçãoTipoEstado
String1

The string to be trimmed of whitespace

Stringobrigatório

See also[editar]