Template:Trim/doc: Difference between revisions
Template page
More actions
=== See also === {{String templates see also}} |
Prefix language interwiki links with w: |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | This template trims whitespace from a string. The string should be passed as the first unnamed parameter. One may [[:w:WP:SUBST|substitute]] this template - that is, if used as {{tlxs|trim}}, the resulting wikicode is "clean". | ||
=== See also === | |||
=== Usage === | |||
<nowiki>{{trim|</nowiki>''text''<nowiki>}}</nowiki> = ''text'' with any leading or trailing whitespace removed. | |||
=== Example === | |||
*{{tlx|trim| abc}} produces {{trim| abc}}. | |||
===See also=== | |||
*{{tl|Crop}} | |||
{{String templates see also}} | {{String templates see also}} | ||