{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}{{#if: | {{#ifeq: Trim | doc | |
}} }}
[[File:Template-{{#if: | no | {{#if: | bad }} }}info.png|50px|bottom]] Documentation
{{#if: | This template has no documentation. If you know how to use this template, please add some.{{#ifeq: Trim | doc | |}} |{{#if: | This template's documentation has been marked as bad. Please improve or add to it.{{#ifeq: Trim | doc | |}}}} }}
[purge]
This template trims whitespace from the beginning and end of the supplied value. It works by using the simple hack of filtering it through the #if
parser function.
Usage:
{{trim| value }}
{{#ifeq: Trim | doc |
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.
|The above documentation is transcluded from Template:Trim/doc. (edit | history)
}}