Wikisage, the free encyclopedia of the second generation, is digital heritage
Template:Trim: Difference between revisions
Jump to navigation
Jump to search
(https://en.wikipedia.org/w/index.php?title=Template:Trim&oldid=668935791) |
(Templateinfo instead of Documentation) |
||
Line 1: | Line 1: | ||
<includeonly>{{ {{{|safesubst:}}}#if:1|{{{x|{{{1|}}}}}}}}</includeonly><noinclude> | <includeonly>{{ {{{|safesubst:}}}#if:1|{{{x|{{{1|}}}}}}}}</includeonly><noinclude> | ||
{{templateinfo|1= | |||
;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 <nowiki>{{subst:trim}}</nowiki>, the resulting wikicode is "clean". | |||
;Example | |||
<nowiki>"{{trim| a b c}}"</nowiki> produces "abc" | |||
}} | |||
</noinclude> | </noinclude> |
Revision as of 13:35, 31 January 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"