Template:Trim: Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
(Created page with "<includeonly>{{#if: {{{1|}}} |{{ {{{|safesubst:}}}#if:1|{{{1|}}}}} |{{Error|Trim|unnamed}} }}</includeonly><noinclude> {{Documentation}} </noinclude>")
 
m (Protected "Template:Trim" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(No difference)

Latest revision as of 10:12, 16 December 2016

[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template to trim whitespace from a string.

Parameters

unnamed
some text with any leading or trailing whitespace removed.

Usage

See the template's testcases:


Parameter: unnamed
Wiki code {{Trim| abc}}

Main version abc
Sandbox version
Note
The above documentation is transcluded from Template:Trim/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.