Wikisage, the free encyclopedia of the second generation, is digital heritage

Template:Trim: Difference between revisions

From Wikisage
Jump to navigation Jump to search
(Templateinfo instead of Documentation)
(cat)
 
Line 10: Line 10:
<nowiki>"{{trim| a b  c}}"</nowiki> produces "abc"
<nowiki>"{{trim| a b  c}}"</nowiki> produces "abc"
}}
}}
[[Category:Wikisage:Template:Auxiliary]]
</noinclude>
</noinclude>

Latest revision as of 22:48, 1 February 2017

Template description
Purpose

This template is for trimming whitespace from strings.

Use

The string should be passed as the first unnamed parameter. You may substitute this template - that is, if used as {{subst:trim}}, the resulting wikicode is "clean".

Example

"{{trim| a b c}}" produces "abc"