Šablon:Trim/dok
Appearance
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]- "{{trim| abc}}
" produces "abc"
Template data
[uredi]The template trims whitespace from a string.
Parametar | Opis | Vrsta | Status | |
---|---|---|---|---|
String | 1 | The string to be trimmed of whitespace | tekst | obavezno |
See also
[uredi]- {{crop}}
Šablon:String-handling templates