Anonymous

Template:Trim/doc: Difference between revisions

From OS-Tan Collections Wiki
no edit summary
No edit summary
No edit summary
 
Line 3: Line 3:
This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named <code>{{{1}}}</code> if its value contains a <code>=</code> character.
This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named <code>{{{1}}}</code> if its value contains a <code>=</code> character.


You may substitute this template&mdash;that is, if this template is used as <code></code>, the resulting wikicode is "clean".
You may substitute this template&mdash;that is, if this template is used as <code><nowiki>{{subst:trim}}</nowiki></code>, the resulting wikicode is "clean".


== Usage ==
== Usage ==