Template:Trim
Mataridziko
Template:Documentation subpage Template:High-risk Template: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 Template:Tlxs, the resulting wikicode is "clean".
Usage
[chinjirudza mabviro]{{trim|text}} = text with any leading or trailing whitespace removed.
Example
[chinjirudza mabviro]- "Template:Tlx" produces "abc"
Template data
[chinjirudza mabviro]The template trims whitespace from a string.
Parameter | Description | Type | Status | |
---|---|---|---|---|
String | 1 | The string to be trimmed of whitespace | String | required |
See also
[chinjirudza mabviro]- {{crop}}
Template:String-handling templates
The above documentation is transcluded from Template:Trim/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |