Šablon:Trim

Izvor: Викизворник


Ikona za dokumentaciju Dokumentacija šablona[vidi] [uredi] [istorija] [osveži]

Šablon: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 Šablon:Tlxs, the resulting wikicode is "clean".

Usage[uredi]

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

Example[uredi]

" produces "abc"

Template data[uredi]

Šablon:TemplateDataHeader

The template trims whitespace from a string.

Parametri šablona[Uredi podatke o šablonu]

ParametarOpisVrstaStatus
String1

The string to be trimmed of whitespace

tekstobavezno

See also[uredi]


Šablon:String-handling templates