Difference between revisions of "Modèle:Trim/doc"

From Wazeopedia
(Created Redirect)
 
(Page créée avec « {{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> This template trims whitespace from a string. The string should be passed as the first unnamed parameter. == U... »)
 
Line 1: Line 1:
#REDIRECT [[Editing rank]]
+
{{doc subpage}}
 +
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
 +
 
 +
This template trims whitespace from a string. The string should be passed as the first unnamed parameter.
 +
 
 +
== Usage ==
 +
<nowiki>{{trim|</nowiki>''text''<nowiki>}}</nowiki> = ''text'' with any leading or trailing whitespace removed.
 +
 
 +
== Example ==
 +
* <nowiki>{{trim| abc}}</nowiki> produces {{trim| abc}}.

Latest revision as of 15:06, 23 February 2017

This is a documentation subpage for Modèle:Trim.
It contains usage information, categories and other content that is not part of the original modèle page.

This template trims whitespace from a string. The string should be passed as the first unnamed parameter.

Usage

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

Example

  • {{trim| abc}} produces abc.