Predefinição:Trim
Saltar para a navegação
Saltar para a pesquisa
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âmetro | Descrição | Tipo | Estado | |
---|---|---|---|---|
String | 1 | The string to be trimmed of whitespace | String | obrigatório |
See also[editar]
- {{StripWhitespace}} which does nearly the exact same thing, but which should not be substituted.
A documentação acima é transcluída de Predefinição:Trim/doc. (editar | histórico) Editores podem experimentar nas páginas de teste (criar | espelhar) e de exemplos para testes (criar) desta predefinição. Por favor adicione categorias à subpágina /doc. Subpáginas desta predefinição. |